site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·Read This Before Posting! ·D-Link FAQ ·DLink Connection Monitor Utility 1.7.97
AuthorAll Replies


pleekmo
Triptoe Through The Tulips
Premium
join:2001-09-14
Manchester, CT
Reviews:
·AT&T DSL Service

reply to ThomasLee

Re: [Help Me] [DIR-300] FTP Port must be 21?!

Port 21 is the standard port for FTP. For FTP to work using some other port you must assign it so in both the router and FTP client and/or server.
--
HCN: Because you deserve a rest!

Proud member of the Free Omelas Liberation Front.


ThomasLee

@polyu.edu.hk

Yes. I have assigned another port to the FTP Server in the Router Configuration. However, It did not work properly.


upb
Premium
join:2004-03-15
Carriere, MS
kudos:1

I've encountered this problem in the DSL-2540B router, and there is no workaround for it. Only a firmware upgrade has a chance of success.

The problem lies in the Netfilter modules used by the Linux kernel (the router uses Linux as its O/S). There is a particular module (ip_conntrack_ftp) which is supposed to be notified if a non-standard ftp port is to be put in use so that it can properly rewrite the ftp packets. Unfortunately, the module has been compiled in such a way that it will not accept an alternative ftp port, and you're stuck with port 21 even if you attempt to use passive mode. I discovered the problem while telneted to the router and using command line "insmod" and "iptables ..." commands.

I happen to use a non-standard ftp port for security reasons from time to time (I don't like every Tom, Dick, and Harry beating on my ftp server), and I use a different router when that's necessary. Otherwise, I use secure FTP (a part of Secure Shell, or ssh), and it doesn't require any special packet rewriting to work. I'd recommend running an ssh server in sftp mode if you can manage it.

Good luck.


Wednesday, 30-May 04:24:33 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics