[techtalk] Port forwarding the port 21

Beverly Guillermo mezanin at home.com
Wed Aug 9 21:03:00 EST 2000


I have 2.2.x kernel and I'm using ipchains and ipmasqadm --
I want to forward the ftp port from one computer to another computer but
it doesn't want to do it.  I know about the active and passive modes but I
still cannot get certain commands to act correctly for ftp.  (Things like
ls will not work.)

Here's what I've done (from what I understood):

$ ipchains -I forward -p udp -s 192.168.1.21/32 21 -j MASQ
$ ipchains -I forward -p tcp -s 192.168.1.21/32 21 -j MASQ
$ ipmasqadm portfw -a -P udp -L 192.168.1.1 21 -R 192.168.1.21 21
$ ipmasqadm portfw -a -P tcp -L 192.168.1.1 21 -R 192.168.1.21 21

This doesn't work and I think it has to do with the passive
mode.... anyone let me know what I'm doing wrong please.

Thanks!
Beverly






More information about the Techtalk mailing list