Slow connections with ProFTPD
29 May, 2007
1 minute read

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:

IdentLookups off

Restart ProFTPD and you’ll have a fast FTP connection to enjoy!

Continue reading...

Want to keep reading and learn more? I've got you
covered with a hand picked selection of awesome books.

See Ariejan's book recommendations »
{"cc_re__cc_re__cc_by_4_0": ["RMagick Ruby Gem on Mac OS X 10.4.9</a>\n                        <img class=\"icon\" src=\"https://www.devroom.io/img/next.svg\" alt=\"next\" />\n                    </div>\n                    \n                </div>\n            \n            <br>\n            <div class=\"disqus\">\n                \n            </div>\n            \n        </div>\n    </div>\n</section>\n\n<section class=\"footer\">\n    <div class=\"container\">\n\n        <div class=\"copyright\">\n            <div style=\"float: left; margin-top: 4px;\"><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0;\" src=\"https://i.creativecommons.org/l/by/4.0/88x31.png\" /></a></div>\n            <div style=\"margin-left: 100px; font-size: small; max-width: 400px;\">\n                Copyright \u00a9 1996 - 2018 Ariejan de Vroom\n                <br />\n                This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\" style=\"font-size: small;\">Creative Commons Attribution 4.0 International License</a>.\n         ", "iner\">\n\n        <div class=\"copyright\">\n            <div style=\"float: left; margin-top: 4px;\"><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0;\" src=\"https://i.creativecommons.org/l/by/4.0/88x31.png\" /></a></div>\n            <div style=\"margin-left: 100px; font-size: small; max-width: 400px;\">\n                Copyright \u00a9 1996 - 2018 Ariejan de Vroom\n                <br />\n                This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\" style=\"font-size: small;\">Creative Commons Attribution 4.0 International License</a>.\n            </div>\n        </div>\n        <div class=\"icons\">\n\n        \n\n        \n            <a href=\"https://github.com/ariejan\" target=\"_blank\">\n                <img class=\"icon\" src=\"https://www.devroom.io/img/github.svg\" alt=\"github\" />\n            </a>\n        \n\n        \n            <a href=\"https://twitter.com/ariejan\" target=\"_blank\">\n                <img class=\"icon\" src=\"https://www.devroom.io/img/twitter.svg\" alt=\"twitter\" />"], "copyright__copyright__copyright": ["This lookup can take quite some time, let\u2019s say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.\n\nIt\u2019s easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:\n\nIdentLookups off\n\nRestart ProFTPD and you\u2019ll have a fast FTP connection to enjoy!\n\nContinue reading...\n\nWant to keep reading and learn more? I've got you\ncovered with a hand picked selection of awesome books.\n\nSee Ariejan's book recommendations \u00bb", "This lookup can take quite some time, let\u2019s say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.\n\nIt\u2019s easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:\n\nIdentLookups off\n\nRestart ProFTPD and you\u2019ll have a fast FTP connection to enjoy!\n\nContinue reading...\n\nWant to keep reading and learn more? I've got you\ncovered with a hand picked selection of awesome books.\n\nSee Ariejan's book recommendations \u00bb", "This lookup can take quite some time, let\u2019s say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.\n\nIt\u2019s easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:\n\nIdentLookups off\n\nRestart ProFTPD and you\u2019ll have a fast FTP connection to enjoy!\n\nContinue reading...\n\nWant to keep reading and learn more? I've got you\ncovered with a hand picked selection of awesome books.\n\nSee Ariejan's book recommendations \u00bb", "This lookup can take quite some time, let\u2019s say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.\n\nIt\u2019s easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:\n\nIdentLookups off\n\nRestart ProFTPD and you\u2019ll have a fast FTP connection to enjoy!\n\nContinue reading...\n\nWant to keep reading and learn more? I've got you\ncovered with a hand picked selection of awesome books.\n\nSee Ariejan's book recommendations \u00bb", "This lookup can take quite some time, let\u2019s say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.\n\nIt\u2019s easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:\n\nIdentLookups off\n\nRestart ProFTPD and you\u2019ll have a fast FTP connection to enjoy!\n\nContinue reading...\n\nWant to keep reading and learn more? I've got you\ncovered with a hand picked selection of awesome books.\n\nSee Ariejan's book recommendations \u00bb", "This lookup can take quite some time, let\u2019s say 5 to 10 seconds, especially when the look up fails and you have to wait on a time-out.\n\nIt\u2019s easy to stop ProFTPD from behaving like this by adding the following line to your proftpd.conf in /etc/proftpd:\n\nIdentLookups off\n\nRestart ProFTPD and you\u2019ll have a fast FTP connection to enjoy!\n\nContinue reading...\n\nWant to keep reading and learn more? I've got you\ncovered with a hand picked selection of awesome books.\n\nSee Ariejan's book recommendations \u00bb"]}