Click to See Complete Forum and Search --> : WU-FTPd behind a router


spammy
01-06-2002, 10:10 AM
So far I've had nothing but success with this router, its brilliant... *but*...

I've got a Windows box and a RedHat 7.2 box running behind it as servers... Both boxes run FTP's, and the Windows one is accessed externally by port 21, and the RedHat one is accessed by port 2121.

Whilst the Windows one works perfectly, when listing directories on the RedHat one I recieve PASV and PORT errors such as...

PASV
227 Entering Passive Mode (192,168,254,30,136,7)
Connecting to 192.168.254.30 port 34823
Connection timed out

The interesting bit is that when I move the Windows one to 2121 and the RedHat box to 21, the situation reverses - the RedHat works and the Windows does not.

I had the same problem when using WinRoute rather than a hardware router and hoped a proper router would cure the problem.

Any ideas anyone? (They don't have to be specific to this router!)

Sam

EDIT: Here's some links I dug up for more info... not efficient related specifically, but describe my problem fully!
http://www.practicallynetworked.com...ys_ftp_port.htm http://www.dslreports.com/forum/remark,1381832;root=equip,16;mode=flat

Also... http://www.wu-ftpd.org/man/ftpaccess.html
The passive address section etc helped, but since I use a dynamic IP with a dynodns style account... its not much good to me.

TheMuso
01-07-2002, 04:16 AM
Have you tried changing the port 2121 to a different port and working it through that way?

jumpedintothefire
01-07-2002, 08:51 PM
You have to pass the non-standard ports to the ip_conntrack_ftp and ip_nat_ftp modules.
In your /etc/modules.conf file:

options ip_nat_ftp ports=21,9000
options ip_conntrack_ftp ports=21,9000

----edit----
opps..... thats for a client connecting to a server that is using non-standard ports.
Hope it helps someone.......

[ 07 January 2002: Message edited by: jumpedintothefire ]