Iptables and FTP traffic.

Jorge Rocha jrocha@node1.com.br
Thu, 05 Jul 2001 10:58:29 -0300


Try this

iptables -t nat -A PREROUTING -d <LinuxIP> -p tcp --dport 20:21 -j DNAT 
--to-destination 192.168.30.2

Jorge Rocha

At 09:48 5/7/2001 -0400, you wrote:
>I am hoping this forum will provide an answer to my problem
>
>I looking for a way to forward  FTP traffic from the public internet to
>my FTP server (win2k) on my private internet.
>
>My Network Config
>
>(Public Internet)-------------------(eth0------eth1)-------------(FTP server)
>
>The eth0 is a static address, eth1 = 192.168.0.1, and the ftp servers 
>ipaddress = 192.168.30.2
>
>My current iptables script provides masqurading only.
>
>modprobe ip_tables
>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADING
>echo 1 > /proc/sys/net/ipv4/ip_forward
>
>Always the best
>o0oo~o0oo
>Mick

-- 
Node 1 Internet
http://www.node1.com.br
Tel.: (11) 5092-6020
Fax.: (11) 5092-6033