Hello,
each time I reload my pf.conf using the command:
my ssh session dies. It does not just hang for a few seconds. It simply dies and I have to launch a new one. This happens even though both the old and the new configurations allow incoming connexion to the ssh port. This happens even if don't change my pf.conf at all.
This happens, for example, with such a pf.conf:
With this pf.conf, if I run
my ssh session dies.
Is there a way to avoid that?
Thanks for your help.
each time I reload my pf.conf using the command:
pfctl -F all -f /etc/pf.conf
my ssh session dies. It does not just hang for a few seconds. It simply dies and I have to launch a new one. This happens even though both the old and the new configurations allow incoming connexion to the ssh port. This happens even if don't change my pf.conf at all.
This happens, for example, with such a pf.conf:
Code:
tcp_internet_out="{53, 80, 443, 123}"
udp_internet_out="{53}"
ext_if=em0
set skip on lo0
block in log (all)
block out log (all)
pass in quick on $ext_if inet proto tcp from any to ($ext_if) port 22
pass out quick on $ext_if inet proto tcp from ($ext_if) to any port $tcp_internet_out
pass out quick on $ext_if inet proto udp from ($ext_if) to any port $udp_internet_out
pass in quick on $ext_if inet proto icmp from any to ($ext_if) icmp-type echoreq
With this pf.conf, if I run
pfctl -F all -f /etc/pf.conf
my ssh session dies.
Is there a way to avoid that?
Thanks for your help.