Click to See Complete Forum and Search --> : Refused EPRT |1|192.168.1.101|51117| (address mismatch)


besttb
02-26-2005, 01:51 AM
I get the above error in /var/log/messages when I try to get, put or ls from my webserver. Both ports 20 and 21 are open. What could be causing this? I am able to login ok.

Here is what I see in debug mode:

ftp> debug
Debugging on (debug=1).
ftp> ls -l
---> EPSV
229 Entering Extended Passive Mode (|||32847|)
---> EPRT |1|192.168.1.101|51117|
500 Illegal EPRT command
disabling epsv4 for this connection
---> PORT 192,168,1,101,199,173
200 PORT command successful
---> LIST -l

421 Service not available, remote server timed out. Connection closed
ftp> bye


Please help - I'm tired and i need some rest... zzzzzzzzzzzzzzzzzzzz
:o

besttb
02-27-2005, 12:36 AM
I found out today that FTP needs two ports opened to work, one to send the command, the other to send data. Looks like the port in the error message is a non-privileged port. My server is blocking all ports except the main web server ports. So that is why I'm getting the error it seems. I tried sftp and it works fine...

T

bwkaz
02-27-2005, 03:43 PM
If sftp works for what you need, then keep using it. ;)

Not only does it only use one connection, it doesn't send your password (and all files you transfer) across the Internet in plain text... :)

besttb
02-27-2005, 11:03 PM
suh weet!:D