I am not famililar with vsftpd, but I have used proftpd and ncftpd and in both of those programs you can specify virtualhosts where you can configure your ftpd to do different things based on different ip addresses, different domains or different ports. Just like you do in apache. Look at the documentation for virtual hosts. Here is an example for proftpd
# The VirtualHost and Limit directives here prevent FTP access to any
# IP Address other than the Load Balancer IP. Remove these directives
# if the Load Balancer goes down.
# <VirtualHost 192.168.1.11>
# <Limit LOGIN>
# DenyAll
# </Limit>
# </VirtualHost>
|