Differences

This shows you the differences between the selected revision and the current version of the page.

howto:open_ports_ftpd 2008/04/19 00:13 howto:open_ports_ftpd 2017/09/06 18:38 current
Line 5: Line 5:
More information about the FTP deamon can me found in the [[http://www.wu-ftpd.org/man|manpages]]. More information about the FTP deamon can me found in the [[http://www.wu-ftpd.org/man|manpages]].
-===== FTP Active vs Passive connections in 30 seconds =====+ 
 +===== FTP Active vs Passive connections in 30 seconds? =====
The ftp protocol uses several connections during a ftp-session. The first connection is a control channel typically served on port 21. The ftp protocol uses several connections during a ftp-session. The first connection is a control channel typically served on port 21.
Line 67: Line 68:
If you screwed the file, then you can always fallback to the default file by deleting the /mnt/HD_a2/.systemfile/.ftpaccess file. If you screwed the file, then you can always fallback to the default file by deleting the /mnt/HD_a2/.systemfile/.ftpaccess file.
 +
 +
 +
==== Setting external IP in pure-ftpd (firmware version 1.04) ==== ==== Setting external IP in pure-ftpd (firmware version 1.04) ====
Line 73: Line 77:
Stop the ftp server in the admin-interface. then edit your fun_plug file using vi or the copy - edit - copy back method mentioned above and add the following line: Stop the ftp server in the admin-interface. then edit your fun_plug file using vi or the copy - edit - copy back method mentioned above and add the following line:
-<code>pure-ftpd -P 80.126.337.61 -p 65501:65510 -S ,21 -B -C 3 -I 2 -E -T 100:100</code>+<code>pure-ftpd -P <your_public_ip_address> -p 65501:65510 -S ,21 -B -C 3 -I 2 -E -T 100:100</code>
<code> <code>
-Substitute 80.126.337.61 with your own publis IP address. 
65501:65510 can be changed to whatever ports you want. The ports you set here must be forwarded in your router 65501:65510 can be changed to whatever ports you want. The ports you set here must be forwarded in your router
-C 3 means max connections -C 3 means max connections
Line 85: Line 88:
</code> </code>
-To get more parameters, issue the command <code>pure-ftpd --help</code> or se man pages for pure-ftpd on the net.+You might want to add an extra parameter -A to chroot() everyone (except root), otherwise user access won't be restricted to their home directory. 
 + 
 +To get more parameters, issue the command <code>pure-ftpd --help</code> or see the man pages for pure-ftpd on the net
 + 
 +Now you are ready to restart your DNS-323. Make sure ftp in the admin interface is not running before you reboot. The new command you put at the end of the fun_plug file is the command which will start pure-ftpd (the ftp server) at boot time.  Note that it will still show as stopped in the administrative interface.
-Now you are ready to restart your DNS-323. MAke sure ftp in the admin interface is not running before you reboot. DO NOT start and stop the ftp server from the inerface from now on. It will make your changes stop working until you reboot.+DO NOT start and stop the ftp server from the interface from now on. Doing so will make pure-ftpd start with its defaults, thus make your changes stop working until you reboot.
-I think you should be able to use the admin interface toadd users, but it seems to start/restart the pure-ftpd daemon, and then you'll have to stop the server from the admin interface and reboot the DNS-323+I think you should be able to use the admin interface to add users, but it seems to start/restart the pure-ftpd daemon, and then you'll have to stop the server from the admin interface and reboot the DNS-323
-NOTE: There are some versions of the file pure-ftpd.conf around (issue the commands <code>cd / +NOTE: There are some versions of the file pure-ftpd.conf around.  Issue the command <code> 
-find -name pureftpd.conf</code> to find them all. I haven't been able to modify one with the correct parameter. It seems to be reset at reboot, and I might have the wrong parameter.+find / -name pure-ftpd.conf</code> to find them all. I haven't been able to modify one with the correct parameter. It seems to be reset at reboot, and I might have the wrong parameter.

Navigation

Personal Tools