On Fri, Oct 17, 2003 at 01:07:27PM +0200, Lenk, Guido wrote: > i am quite new to ipf and i get one thing not working: ftp > > can you give me a hand on that, please? > > i want active and passive outgoing ftp (clients inside, server outside) > > i have: > pass out quick on EXTIF proto tcp from any to any port = 20 flags S keep state > pass out quick on EXITF proto tcp from any to any port = 21 flags S keep state No, you really want: pass out quick on EXTIF proto tcp from any to any port = 21 flags S keep state
You allso need the following ipnat rule (assuming your net is 192.168.6.0/24): map EXTIF 192.168.6.0/24 -> 0/32 proxy port ftp ftp/tcp If you're doing NAT for a network, you'll probably also want: map EXTIF 192.168.6.0/24 -> 0/32 portmap tcp/udp 10000:65000 map EXTIF 192.168.6.0/24 -> 0/32 > BTW: what does the flags S mean? Make sure that the first packet seen has a SYN flag set and nothing else (as per any normal TCP connection startup). You almost certainly need to read: http://www.phildev.net/ipf/ http://www.obfuscation.org/ipf/
