What's new

vsftpd port 20:21 setup on RT-N66U

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

puremind

Regular Contributor
Hi All:

After a few days reading posts here and there I finally have decided to join to the community.

I am a proud owner of a new RT-N66U for the last week. So far so good.

By now, one big caveat that I have been unable to resolve:
Is there any way to change the default port for ftp sharing (delivered by vsftpd service) from 20:21 to any other?
When I edit the vsftpd.conf file to disable port 20 or to do anything else, after restarting the service the file comes back to the original (and nano saved it and cat confirmed it!), which is really annoying. I wouldn't like to open a private ftp server on port 21! but there is no way to change it to another.

Any help or suggestion will be appreciated.

Thanks,
Anton.


PS- ftp works great with ports 20:21 already.
Firmware:3.0.0.4.374.33 (Merlin build)
 
Hi All:

After a few days reading posts here and there I finally have decided to join to the community.

I am a proud owner of a new RT-N66U for the last week. So far so good.

By now, one big caveat that I have been unable to resolve:
Is there any way to change the default port for ftp sharing (delivered by vsftpd service) from 20:21 to any other?
When I edit the vsftpd.conf file to disable port 20 or to do anything else, after restarting the service the file comes back to the original (and nano saved it and cat confirmed it!), which is really annoying. I wouldn't like to open a private ftp server on port 21! but there is no way to change it to another.

Any help or suggestion will be appreciated.

Thanks,
Anton.


PS- ftp works great with ports 20:21 already.
Firmware:3.0.0.4.374.33 (Merlin build)

Since you are using my firmware, take a look at the documentation on the Wiki about how to create custom config files. That will allow you to create your own vsftpd.conf file which will be used instead of the dynamically generated one.
 
Thanks Merlin.

Yep, all worked perfect.

Here my current config in case somebody wants to do the same it will save some time:

Telnet or ssh the ASUS and:
nano /jffs/configs/vsftpd.conf

Then paste (and edit)

Code:
anonymous_enable=NO
nopriv_user=root
write_enable=YES
local_enable=YES
chroot_local_user=YES
local_umask=000
dirmessage_enable=NO
xferlog_enable=NO
syslog_enable=NO
connect_from_port_20=[COLOR="Green"][b]NO[/b][/COLOR]
use_localtime=YES
use_sendfile=NO
listen=YES
listen_port=[b][COLOR="Red"]HERE YOUR PORT NUMBER[/COLOR][/b]
pasv_enable=YES
ssl_enable=NO
tcp_wrappers=NO
max_clients=5
ftp_username=anonymous
ftpd_banner=[b][COLOR="Red"]HERE YOUR Service Name (just type whatever)[/COLOR][/b]


PS - Note : if you cannot write on the jffs partition, check the wiki on how to enable it from Merlin's GUI.
 
Similar threads
Thread starter Title Forum Replies Date
S ASUS RT-N65R wan port 100 mbps ASUS N Routers & Adapters 7
J Home setup ASUS N Routers & Adapters 8

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top