FTP port forwarding

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


I am trying to forward ftp trafic.

The setup is as follows

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

Computer B    ip 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

But that doesn't seem to be enough.

Greetings Olle de Zwart