Hi, I was thinking about how to create a setup that would allow to have
"virtual servers" in FTP. Since I understand that there are no headers
like in HTTP and in spite of the existence of the HOST command (but most
clients doesn't implement it) I think that the only solution to have "a
lot" of clients is to use IPv6?
I have one instance of the FTPServer, bind to all the addresses and one
port (2221). I also implemented a virtual file system (using FtpFile
interface) and based in my custom UserManager implementation I authorize
the access for different resources for each user. The users are
"grouped" in a way that each group can access a specific part of the
virtual file system. Because I don't want to be playing with different
ports for each "group" of users (they are like sub-accounts of a main
account), I though that it would be great to have subdomain based
addresses like so:
group1.example-ftp.com -> where account1 can login
group2.example-ftp.com -> where another account1 can login
The issue I have is to how to detect group1 subdomain from group2to be
able to load a the proper UserManager and authorize the user for each group.
One idea is to use IPv6 like this:
Register a groupname
Acquire an new IPv6 address in the FTPServer machine
Register a subdomain "groupname" andpoint the DNS AAAA to the new ip address
Do you think this would work?
There are any security issues for making public the IPv6 address?
Any ideas how to acquire a buch of IPv6 addresses all at once in linux?
I need this so I can avoid having to do restart the network (??)
It would be really more simpler to handle all this with different ports
for each group?
Any comment would help :D
Thanks
--
Mauro Asprea
E-Mail: mauroasp...@gmail.com
Mobile: +34 654297582
Skype: mauro.asprea