Home > Linux > vsFTPd Connection Banner

vsFTPd Connection Banner

October 14th, 2006 Leave a comment Go to comments

Sending a banner is a good way to let system users know what the expectations are. Configuring the banner for vsFTPd is an easy process involving two files. The file containing the banner must have the same name as the daemon. In this tutorial I store the banner in /etc/banners, but feel free to store it elsewhere.

First we need to create banner file /etc/banners/vsftpd. Note that each line must start with

220-Hello %c
220-This system is for the use of authorized users only.

Next we configure the tcp wrapper to display the connection banner. Edit the /etc/hosts.allow file.

vsftpd : ALL : banners /etc/banners

To verify that the banner works lets connect to the ftp server.

ftp localhost

Additionally, here is a list of the tokens you can use in the banner.



Expands to



The IP address of the client



The IP address of the server (useful if the server system has more than one network interface)


Client info

username@hostname (if username is available); otherwise, only hostname or IP address


Daemon name

The name of the daemon (argv[0])



The hostname of the client (IP address if hostname is unavailable)



The hostname of the server (IP address if hostname is unavailable)



The process ID of the daemon process


Server info




The client username (or unknown)



Expands to the "%" character

Categories: Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.