pass in on fxp0 proto tcp from any to any port ssh flags S/SA
pass in on fxp0 proto tcp from any to any port ssh
As flags S/SA is set by default, the above rules are equivalent
You are correct. A bit simplified it is as you said - "pass in all". It seems to me like it should have been the "pass out" rule.usdmatt said:Maybe I'm way off having never used pf but all the firewalls have similar syntax and it seems a very strange rule.
pass in all allow-opts
usdmatt said:You say you can't imagine how that rule matched but why did you add that rule to your firewall/what do you expect it to do? To me it seems to allow any inbound connection setup requests, then maintain state so further packets in the same connection are allowed
That is done by implicit default keep state part of the rule.jnojr said:"allow in any packets that are part of an already-established connection"
pass in quick proto tcp from any to $IP_PUB port 22
pass out all
pass in quick inet proto tcp from any to 172.31.1.253 port = 22 flags S/SA keep state