FTP server configuration advice required
FTP server configuration advice required
Author
Discussion

hab1966

Original Poster:

1,126 posts

243 months

Tuesday 26th June 2007
quotequote all
I'm setting up simple a FTP server at work and would welcome some advice/tips.

Initially, I set my ADSL router (with FIrewall) up to forward all port 21 activity to the IP address of the computer running the FTP server. The firewall on the FTP server computer was set to allow FTP traffic through. Everything was working fine and I could access the server from the internet and internal to the office. However, some days later when i checked the FTP logs, I noticed that a few 'hackers' from around the world had tried to log on, bombarding the server with username/password attempts.

I guess the 'hackers' have been looking for IP addresses which respond to port 21 scans and then tried to gain access?

I've now ditched port 21 access from the outside world and moved the ftp access to a 7xxx port number. Port 21 is no longer used so attempting to gain access via that will not work.

I can set the FTP server up so that it blacklists IP addresses that make a number of accesses in a defined duration, but i think they will be doing well to discover the port number i have selected?

Is there anything else i should be doing to safeguard the server? Its only used by company staff for testing equipment we develop, so i can make it as difficult (within reason) to access as needed. Passwords are randomnly generated. Annonymous access is disabled.

ThePassenger

6,962 posts

266 months

Tuesday 26th June 2007
quotequote all
It'll be found again sooner or later.
You mention it has an 'auto-ban' setting, turn it on.
Enforce a strong password scheme on the FTP server, disallow anonymous (which you've already done I'd wager).
Keep it up to date with the latest releases of the software to stay on top of security issues.

That's pretty much all you can do.

hab1966

Original Poster:

1,126 posts

243 months

Tuesday 26th June 2007
quotequote all
Thanks for your response. Looks like ive done as much as i can.

snowy

542 posts

312 months

Tuesday 26th June 2007
quotequote all
I think your find that ftp is so old that all usernames/passwords are passed in clear text, if the FTP site is just for you then use the SFTP protocol

hab1966

Original Poster:

1,126 posts

243 months

Tuesday 26th June 2007
quotequote all
snowy said:
I think your find that ftp is so old that all usernames/passwords are passed in clear text, if the FTP site is just for you then use the SFTP protocol
Alas, the embedded modules we use don't support the SFTP protocol.