Click to See Complete Forum and Search --> : Ftp/masquerading problem


VRay
03-07-2001, 12:30 AM
Heya,

I am using my linux box RH7.1 Fisher as a gateway and using masquerading. When I use my ftp proggie from win2000 box, I can log in to an ftp server, but get a "500 Illegal PORT command" "Unable to complete transfer" and cannot do anything. Any ideas why this happens and what I can do about it? I have the same firewall etc set up as I had with RH7 and it worked then.

Thanks.

aph3x
03-07-2001, 04:52 AM
ive had numerous problems with masquerading my win2k box... can you connect to the web? if you cannot, see if you can conect to hotmail or msn or microsoft... for some reason, those are the only web sites i can view on win2k... strange!

also, i get a "cannot build data connection" when i type ls during an ftp session...

BobjoB
03-07-2001, 06:19 AM
the illegal port command comes from the port command in the ftp protocol, the port command basically says open a connection to <your ip> but since your box is behind the gateway its sends a private ip (eg: 192.168.0.1) which is illegal. so what you do is turn on PASV mode transfers in your client settings. check the documentation or man pages for how to do it in your client, the ftp server will setup the connection based on the connecting ip

VRay
03-08-2001, 08:27 PM
Thanks a million , pasv did the trick.