ipfw and ssh

Dennis Olvany dennisolvany at gmail.com
Thu Apr 6 02:50:40 UTC 2006


>         # Allow person SSH access
>         mip="xxx.xxx.xxx.xxx"
>         ${fwcmd} allow tcp from any to any 22 out setup keep-state

I see two reasons that egress sshd traffic will not match the above 
rule. The destination port is incorrect and a syn/ack will not match.

>         ${fwcmd} add pass tcp from ${mip} to me 22 setup limit src-addr 2


More information about the freebsd-questions mailing list