1, try client
pass out port = 22 can use "keep state", can not use "flags S keep state"
pass out port = 21 need pass other high port, for example: port > 1024
my rules:
pass out port = 22 can use "keep state", can not use "flags S keep state"
pass out port = 21 need pass other high port, for example: port > 1024
my rules:
Code:
pass in quick on lo0 all
pass out quick on lo0 all
pass out quick on bge0 proto udp from 192.168.1.123/32 to any port = 53 keep state
pass out quick on bge0 proto tcp from 192.168.1.123/32 to any port = 80 flags S keep state
pass out quick on bge0 proto tcp from any to any port = 21 flags S keep state
pass out quick on bge0 proto tcp from 192.168.1.123/32 to any port > 1024 flags S keep state
pass out quick on bge0 proto tcp from 192.168.1.123/32 to any port = 22 keep state
pass out quick on bge0 proto tcp from 192.168.1.123/32 to any port = 25 flags S keep state
pass out quick on bge0 proto tcp from 192.168.1.123/32 to any port = 110 flags S keep state
pass out quick on bge0 proto tcp from 192.168.1.123/32 to any port = 3389 flags S keep state
pass out quick on bge0 proto icmp from 192.168.1.123/32 to any icmp-type 8 keep state
pass in quick on bge0 proto tcp from any to 192.168.1.123/32 port = 21 flags S keep state
#pass in quick on bge0 proto tcp from any to 192.168.1.123/32 icmp-type 8 keep state # bug with "proto tcp"
pass in quick on bge0 proto icmp from any to 192.168.1.123/32 icmp-type 8 keep state
block in log first quick on bge0 all
block out log first quick on bge0 all