WU-FTPD 2.4 Release Notes

26 WU-FTPD Release Notes for Version 2.4
Virtual ftp Support
Virtual ftp Support
Virtual ftp support allows you to manage an ftp server for two separate
domains on the same machine.
Basically, virtual ftp allows an administrator to configure systems so
that user1 connecting via ftp to ftp.domain1.com gets one ftp banner and
ftp directory, while user2 connecting via ftp to ftp.domain2.com gets
another banner and directory. (This occurs even though the users are on
the same machine and are using the same ports).
NOTE Setting up a virtual ftp server requires IP address aliasing. This feature
is supported in HP-UX Release 10.30 onwards.
Setting Up a Virtual ftp Server
Following is an example of how to set up a virtual ftp server:
1. Set up an IP alias for the ftp server machine using the ifconfig
command. For example,
ifconfig lan0:1 15.70.178.100 netmask 0xffffff00 up
This will set 15.70.178.100 as an IP address alias for the interface
lan0. Now you can access that particular machine with this IP
address.
2. Declare the following directives in the /etc/ftpd/ftpaccess file:
virtual 15.70.178.100 root/virtual
virtual 15.70.178.100 banner / virtual/banner.msg
virtual 15.70.178.100 logfile / virtual/xferlog
3. Create the /virtual directory and banner.msg and xferlog file inside it.
4. Login as anonymous on the virtual ftp server (ftp 15.70.178.100): it
will display the banner.msg from the /virtual directory.
An anonymous user will be chrooted to the directory specified in the
"virtual <IP ADDRESS> root" entry as specified in the
/etc/ftpd/ftpaccess file. In this example, the user will be chrooted