FTP port forwarding

O de Zwart linuxlc@iname.com
Sun, 25 Nov 2001 18:31:50 +0100


Hello,

I am trying to forward ftp trafic.

The setup is as follows

Computer A     eth1 (ip 213.84.89.x) internet
                        eth0 (ip 192.1.68.1.1) local

Computer B    ip 192.168.1.2 local

I want trafic to 213.84.89.x:21 to go to the ftp deamon on computer A which it
does and trafic to 213.84.89.x:2021 to go to port 2021 on computer B

I have the following rule

iptables -A PREROUTING -t nat -p tcp -i ppp0 --dport 2021 -j DNAT --to
192.168.1.2:2021

But that doesn't seem to be enough.

Greetings Olle de Zwart