You should know how to use iptables before proceeding. Having said that...
Here is what I have in my router to forward ftp
iptables -A FORWARD -p tcp -d 176.16.1.101 --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 21 -j DNAT --to-destination 176.16.1.101
That may not be the best way to do it, but those would be the lines I would use in MY setup. Yours may be slightly diiferent keeping these from working.
|