Linux journal had an interresting article about ftp proxy. And specified the iptables command: http://www.linuxjournal.com/modules.php?op=modload&name=NS-lj-issues/issue104&file=6333l2 iptables -t nat -A PREROUTING -p tcp -i eth2 \ --dport 21 -j REDIRECT iptables -t nat -A PREROUTING -p tcp -i eth0 \ --dport 21 -j REDIRECT # snip... iptables -A INPUT -p tcp -d $PUBLIC_FTP \ --dport 21 -m state --state NEW,RELATED -j ACCEPT iptables -A INPUT -p tcp -s $INTERNAL_HOSTS \ --dport 21 -m state --state NEW,RELATED -j ACCEPT # snip... iptables -A OUTPUT -p tcp -d $PUBLIC_FTP \ --dport 21 -m state --state NEW,RELATED -j ACCEPT iptables -A OUTPUT -p tcp -o eth2 --dport 21 \ -m state --state NEW,RELATED -j ACCEPT Should help you on the way.... Jon Biddell wrote:
OK - now HOW do I do it with iptables ???
Jon
=> -----Original Message----- => From: Tom Nielsen [mailto:tom@neuro-logic.com] => Sent: Wednesday, 4 December 2002 3:16 AM => To: SuSE Linux-e => Subject: Re: [SLE] How do I forward a port to a computer => using IPChains => => => Thanks for the information. Quick question: does it matter => what port I use if I'm SSH'ing in? Whoops, one more: is => there anything I should do on my SuSE box?
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com