$ uname -a FreeBSD shadow.josh-call.com 4.6.1-RC2 FreeBSD 4.6.1-RC2 #0: Sun Oct 13 17:03:00 MDT 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/SHADOW i386
$ cat /etc/ipnat.rules map ste0 192.168.111.0/28 -> 0/32 proxy port ftp ftp/tcp map ste0 192.168.111.0/28 -> 0/32 portmap tcp/udp 10000:40000 OK, here's the first issue. Ipnat does not appear to map 192.168.111.0/28 addresses to the 0/32 address. Now, this is not a major issue, as all I have had to do is add more rules to ipf to allow incoming and outgoing packets to said addresses. The second, and probably not related issue is one of the proxy port. I am currently allowing all outbound traffic from my box, and keeping state on it. But I run into problems when ftp-ing to a site from both the firewall box and the internal clients. I can usually connect, but when I try to 'ls' or 'cd' the firewall rules do not allow return packets back in. Most likely because the ftp server to which I am connecting is responding with a different port, so keep state does not seem to cover this contingency. For example, here are logs relating to an attempted connection to ftp2.freebsd.org: This stuff is from the connection (username and pass) 16/11/2002 21:27:55.309247 ste0 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 109 -AP K-S IN 16/11/2002 21:27:55.309274 ste1 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 109 -AP K-S OUT 16/11/2002 21:27:55.402238 ste1 @150:12 p 192.168.111.2,1112 -> 130.94.149.162,2 1 PR tcp len 20 52 -A K-S IN 16/11/2002 21:28:01.343385 ste0 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 110 -AP K-S IN 16/11/2002 21:28:01.343431 ste1 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 110 -AP K-S OUT 16/11/2002 21:28:01.345589 ste0 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 52 -A K-S IN 16/11/2002 21:28:01.345611 ste1 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 52 -A K-S OUT 16/11/2002 21:28:01.441685 ste1 @150:12 p 192.168.111.2,1112 -> 130.94.149.162,2 1 PR tcp len 20 52 -A K-S IN 16/11/2002 21:28:02.387826 ste0 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 100 -AP K-S IN 16/11/2002 21:28:02.387869 ste1 @150:12 p 130.94.149.162,21 -> 192.168.111.2,111 2 PR tcp len 20 100 -AP K-S OUT Login is now successful, so I type ls and press return 16/11/2002 21:28:02.389052 ste1 @150:12 p 192.168.111.2,1112 -> 130.94.149.162,2 1 PR tcp len 20 58 -AP K-S IN 16/11/2002 21:28:08.420637 ste0 @0:15 b 130.94.149.162,52675 -> 192.168.111.2,11 13 PR tcp len 20 60 -AS IN 16/11/2002 21:28:11.484523 ste0 @0:15 b 130.94.149.162,52675 -> 192.168.111.2,11 13 PR tcp len 20 60 -AS IN As you can see, the server responds from a different port, and the packet gets dropped by my last rule "block in log on ste0 from any to any." Am I doing something wrong? Thanks, -jc __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com
