Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to setup iptable for active FTP
Name: katsu Date: November 24, 2002 at 23:48:45 Pacific OS: Redhat 7.2J CPU/Ram: Pentium
Comment:
We use a Linux server to act as router for local network accessing Internet and it's necessary to let local machine access ftp server on the Internet. How to setup iptables when using active ftp connection (that's PORT mode not PASV mode). Thanks in advance.
The iptable is as following. *nat :PREROUTING ACCEPT [19679:1112350] :POSTROUTING ACCEPT [47:2939] :OUTPUT ACCEPT [549:33489] -A POSTROUTING -o ppp0 -j MASQUERADE -A POSTROUTING -s 192.168.1.0/255.255.255.0 -o ppp0 -j MASQUERADE COMMIT # Completed on Mon Nov 25 16:20:25 2002 # Generated by iptables-save v1.2.3 on Mon Nov 25 16:20:25 2002 *filter :INPUT ACCEPT [24909:3228138] :FORWARD ACCEPT [806467:523158528] :OUTPUT ACCEPT [22048:8745798] -A INPUT -p tcp -m tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT -A INPUT -p tcp -m tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT -A INPUT -p tcp -m tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT -A INPUT -p tcp -m tcp --sport 20 -m state --state RELATED,ESTABLISHED -j ACCEPT COMMIT
Summary: Folowing many introductions about how to setup adsl for Linux ,I have setup adsl for Linux many times,but it cannot connected to internet.What should I do? ...
Summary: how to setup a iptables, squid(proxy), ldap and nat on linux whitebox... i installed all the components and everything works ok... i made a iptables script but i have some problems... and i can't make...
Summary: Hi folks, RH 9.0 ======== I am prepared to config/setup iptables which has already been installed and running. From [url]http://www.netfilter.org/documentation/[/url] I found follow...