• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How would I combine Related connections an MASQ/NAT? (linux 2.4/iptables)

Buddha Bart

Diamond Member
I've found howto's and articles on either topic independantly, but not combined. Essentially I want to be able to use active-mode ftp from behind my gateway.

Here's my current "firewall" script if it helps.

### Begin ###
/sbin/modprobe iptable_nat
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
### End ###

(route verification and ipforwarding are turned on elsewhere)

bart

 
yea I read that one, but I don't understand enough to combine it with NAT.

That one is based on a default-deny firewall, and designed to allow related connections through the deny rules.

I need something that can listen for the PORT command in an FTP session, and forward that port to the NAT'd client.

bart
 
For ipchains there's a kernel module that does the watching/modifying of FTP commands seperate from ipchains, maybe iptables has one too?
 
Originally posted by: Nothinman
For ipchains there's a kernel module that does the watching/modifying of FTP commands seperate from ipchains, maybe iptables has one too?

Thats exactly what I was thinking, but I haven't been able to find anything. The closest was this http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO-5.html#ss5.2
but its very short, talks mostly of fxp, and is in a section on "new" connection tracking things. Where are the old ones!?!

bart
 
Back
Top