On Tue, 21 Oct 2003, Lenk, Guido wrote:
> > > > > 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 > > > > > > I don't see any difference! > > > > > > > There is some obvious differences but not knowing how your > > system is setup > > a variation on the suggestion provided to you might be > > > > pass in quick on INTIF proto tcp from any to any port = 21 > > flags S keep > > state > > There is no difference between those rules. Or do you mean the > additional port 20 rule? > > Your rule for port 20 is incorrectly written as for active FTP it is from port 20 of the FTP server back to some port on the client, not port 20 on the client. The rule is not required for active FTP when the IP-Filter in-kernel FTP proxy is used. > > > > > > > > > > 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 > > > > > > doesn't work. Do i have to do that nating on inner and outer Filter? > > > > > > > Assuming I have interpreted the next section correctly, you > > have public > > ip-addresses on your internal systems and natting isn't > > required hence the > > following nat rule may be what you are after. > > > > map EXTIF 0/0 -> 0/0 proxy port ftp ftp/tcp > > tried that also, did not work either. > You really need to enable logging and work on the info that is being blocked to fine tune your rules. > > > > > 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 > > > > > > you mean real NAT? no they all have their own right ip. > > > > > > > Output from ipnat -l would be helpful. We don't know what you > > are seeing > > in the way of natted connections on your outgoing interface. > > > > i 'normaly' have no nat rules sine i am not nating, so without the ftp > proxy rule i have nothing i could put here. > > my complete ruleset and layout i posted a few days ago as 'newbie: is > this firewall OK?' > Found them. Mnemonics are great but they need to be defined with values to be of more informational value. The layout doesn't show what range of ip-addresses are used for each segment of the networks nor if your are using something like PPPoE somewhere along the way. It is concievable you have a fragmentation issue and because you are not logging anything it is going to be hard to determine if one of your existing rules is preventing the returned data. Use ipfstat -ihh and ipfstat -ohn to see which rules are getting hit. If one of the block rules is getting hit use the log directive to see what is being blocked. Don't forget to get ipmon running. Cheers, Larry.
