I have a machine running 8.2-REL configured as my router.
I'm doing egress filtering and have restricted what ports outbound connections can be made to. For machines on the lan I'm using ftp-proxy to allow ftp connections. What is the best way to permit the router itself to make ftp connections?
So, I can currently make control connections (to port 21), but data connections will be blocked.
Thanks.
I'm doing egress filtering and have restricted what ports outbound connections can be made to. For machines on the lan I'm using ftp-proxy to allow ftp connections. What is the best way to permit the router itself to make ftp connections?
Code:
udp_egress = "53 123 1194"
tcp_egress = "21 53 80 443 8080"
pass out on $wan0 inet proto tcp from ($wan0) to !<priv_nets> port {$tcp_egress}
pass out on $wan0 inet proto udp from ($wan0) to !<priv_nets> port {$udp_egress}
pass out on $wan0 inet proto icmp from ($wan0)
pass out on $wan0 tagged NAT
So, I can currently make control connections (to port 21), but data connections will be blocked.
Thanks.