Difference between revisions of "FTP Serving"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="font-size: 18pt; color: rgb(186, 55, 42);" >WIP!</span>
<span style="font-size: 18pt; color: rgb(186, 55, 42);">WIP!</span>
 
FTP is most often used as a way to remotely access files on servers of other types. As such, you'll likely be configuring this service on a server primarily intended for something else. (i.e.: a [[Building Web Servers{{!}}web server]])


[http://www.proftpd.org/ The ProFTPD Project Home Page]
[http://www.proftpd.org/ The ProFTPD Project Home Page]
Line 5: Line 7:
= Installing ProFTPd =
= Installing ProFTPd =


* sudo apt-get install proftpd
* <code>sudo apt-get install proftpd</code>
At this point, any user with an account on the LAN can access the machine via ftp.
At this point, any user with an account on the network can access the machine via ftp using their regular name & password. (Note: by default, this does not include root.)


= Accessing FTP through NAT (pfSense here...) =
This is the MINIMUM required to get it running & you'll want to go deeper into the available options.
= Accessing FTP through NAT ([[PfSense{{!}}pfSense]] here...) =


[http://www.proftpd.org/docs/howto/NAT.html ProFTPD: Firewalls, Routers, and NAT]
[http://www.proftpd.org/docs/howto/NAT.html ProFTPD: Firewalls, Routers, and NAT]


* sudo vi /etc/proftpd/proftpd.conf
<span style="color: rgb(132, 63, 161);">The minimum requirements to make it work...</span>
 
* <code>sudo vi /etc/proftpd/proftpd.conf</code>
Lines 51 & 56 need to be un-commented & edited
Lines 51 & 56 need to be un-commented & edited


Line 19: Line 24:
Set '''MasqueradeAddress''' to either the WAN address of your firewall or it's '''FQDN'''.
Set '''MasqueradeAddress''' to either the WAN address of your firewall or it's '''FQDN'''.


Then create 2 port forwards, one specifically for port 21 (FTP) & one for the the range chosen in '''PassivePorts'''.
Then restart the service:
* <code>sudo service proftpd restart</code>
Then create 2 [[PfSense#Port_Forwarding{{!}}port forwards]], one specifically for port 21 (FTP) & one for the the range chosen in '''PassivePorts'''.


= Managing the FTP server =
= Further Configurations =
* sudo service proftpd restart
For now, I'd strongly suggest spending some quality time browsing the [http://www.proftpd.org/docs/howto/index.html ProFTPd Documentation].&nbsp; There are a LOT of things that can be done...

Latest revision as of 15:13, 18 November 2023

WIP!

FTP is most often used as a way to remotely access files on servers of other types. As such, you'll likely be configuring this service on a server primarily intended for something else. (i.e.: a web server)

The ProFTPD Project Home Page

Installing ProFTPd

  • sudo apt-get install proftpd

At this point, any user with an account on the network can access the machine via ftp using their regular name & password. (Note: by default, this does not include root.)

This is the MINIMUM required to get it running & you'll want to go deeper into the available options.

Accessing FTP through NAT (pfSense here...)

ProFTPD: Firewalls, Routers, and NAT

The minimum requirements to make it work...

  • sudo vi /etc/proftpd/proftpd.conf

Lines 51 & 56 need to be un-commented & edited

Choose an available range of ports for PassivePorts.

Set MasqueradeAddress to either the WAN address of your firewall or it's FQDN.

Then restart the service:

  • sudo service proftpd restart

Then create 2 port forwards, one specifically for port 21 (FTP) & one for the the range chosen in PassivePorts.

Further Configurations

For now, I'd strongly suggest spending some quality time browsing the ProFTPd Documentation.  There are a LOT of things that can be done...