devroom.io/content/posts/2007-05-29-slow-connections-with-proftpd.md

19 lines
952 B
Markdown
Raw Normal View History

2015-03-26 11:28:08 +00:00
+++
date = "2007-05-29"
title = "Slow connections with ProFTPD"
tags = ["General", "Features", "Linux", "Ubuntu"]
slug = "slow-connections-with-proftpd"
2017-09-11 12:20:15 +00:00
description = "ProFTPd was acting up and slow to connect? Here's the fix!"
2015-03-26 11:28:08 +00:00
+++
My shiny new VPS, which is running Ubuntu Linux, uses ProFTPD for FTP access. Today I noticed that setting up the connection takes about 5 to 10 seconds. This is really annoying when editing files through FTP.
So, I investigated and found that by default ProFTPD tries to revolve the hostname of the client in order to put that in the logs instead of a plain IP address. This lookup can take quite some time, let's say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.
It's easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:
2017-09-11 12:20:15 +00:00
2024-01-30 08:26:51 +00:00
```text
IdentLookups off
```
2015-03-26 11:28:08 +00:00
2017-09-11 12:20:15 +00:00
Restart ProFTPD and you'll have a fast FTP connection to enjoy!