This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DNAT by Hostheader

Is it possible to use DNAT to redirect to diffrent ip's or portnumbers depending on the hostheader, for ex,
Any -> External_Interface__ / FTP "ftp.samurai.se" None   Server_ftp1__
Any -> External_Interface__ / FTP "ftp.swedishopen.nu" None   Server_ftp2__
Becuase IIS 5.0 itself can't differ ftp-sites by hostheader!
u need either different ip's or different s-ports for each ftp-site!
Is it possible, If not will it be?   
It is something I would really want!     


This thread was automatically locked due to age.
Parents
  •  
    Svar till:

    I suggest use different ports, and throw away your MS ftp server.  

    [/ QUOTE ] 
    That is already done.
    The thing is this.
    I have a friend who wants to have his webserver in my basement (Server room) and host his own homepage on it.
    I already have a webserver hosting hompages for my ju-jutsu club and a competition that we arrange.  
    192.168.1.2  hosting  www.samurai.se  and  www.swedishopen.nu
    My friends webserver would be
    192.168.1.3  hosting  www.??????.??
    are there any solutions to my problem [:S]    
  • If both web servers are on the same physical machine then no problem.  Hostheader takes care of the web side and ftp is done by the user account at login.  But I'd dump FTP altogether and run something secure like sftp but that is another topic.

    Different physical machines with only one external public IP is another story.  My favourite way for that is to use a reverse proxy server (Apache, Squid etc set to reverse proxy mode).  The proxy does host header and passes the request to the right web server.  The servers could be on a unique machine or one of the web servers.  You can then pass a request to a unique port number if desired while maintaining a normal port 80 to the world.  This allows for web servers to be on the same machine, different machine, different network, any combo.

    Handling FTP in that case is a little tougher.  Pass FTP to a machine that can reach the intended machine via file sharing/NFS etc.  The file sharing/NFS aren't secure but will only exist behind the firewall and not a big problem.
        
Reply
  • If both web servers are on the same physical machine then no problem.  Hostheader takes care of the web side and ftp is done by the user account at login.  But I'd dump FTP altogether and run something secure like sftp but that is another topic.

    Different physical machines with only one external public IP is another story.  My favourite way for that is to use a reverse proxy server (Apache, Squid etc set to reverse proxy mode).  The proxy does host header and passes the request to the right web server.  The servers could be on a unique machine or one of the web servers.  You can then pass a request to a unique port number if desired while maintaining a normal port 80 to the world.  This allows for web servers to be on the same machine, different machine, different network, any combo.

    Handling FTP in that case is a little tougher.  Pass FTP to a machine that can reach the intended machine via file sharing/NFS etc.  The file sharing/NFS aren't secure but will only exist behind the firewall and not a big problem.
        
Children
No Data