[techtalk] Port forwarding the port 21

Conor Daly conor.daly at oceanfree.net
Thu Aug 10 11:06:06 EST 2000


On Wed, Aug 09, 2000 at 09:03:00PM -0400 or so it is rumoured hereabouts,
 Beverly Guillermo thought...
> 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.
> 

Guess...

Is it anything to do with forwarding port 20 (the ftp data port) also?

-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)





More information about the Techtalk mailing list