pf, ssh related question
Dánielisz László
laszlo_danielisz at yahoo.com
Sat Oct 17 09:53:33 UTC 2009
Hello,
I have the following annoying thing: all the time I runpfctl -F all -f /etc/pf.conf I got disconnected from my remote machine.
Do you have any idea how can I avoid this?
Here is my pf.conf
#MACROS
ext_if="rl0"
int_if="rl1"
good_ip="{192.168.1.0/24}"
icmp_types="echoreq"
set skip on lo
scrub in
block in
pass out keep state
antispoof quick for { lo $int_if }
#incoming ssh
pass in log quick on $int_if inet proto tcp from $good_ip to ($int_if) port 22 flags S/SA keep state
#incoming http
pass in log quick on $int_if inet proto tcp from $good_ip to ($int_if) port 80 flags S/SA keep state
pass in inet proto icmp all icmp-type $icmp_types keep state
More information about the freebsd-questions
mailing list