Recognizing Host Header with Tomato, possible?

Discussion in 'Tomato Firmware' started by leesiulung, Sep 15, 2008.

  1. leesiulung

    leesiulung LI Guru Member

    I have a single dynamic ip (using a service similar to, but want to be able to access two different computers on the same port.

    For example when I type in and they both go to the same port (i.e. 443), but routed to different computers internally. -> ->

    Most web servers do this with the Host Header and virtual hosts. Is there a similar option on Tomato?

    I only have basic knowledge of linux.
  2. kevanj

    kevanj LI Guru Member

    Webservers actually use host headers to do the multiple virtual hosts on a single IP....
  3. leesiulung

    leesiulung LI Guru Member

    I'm actually trying to reach different computers on the same ip, with different subdomains on the same port. So the distinguising factor is the subdomain....
  4. njeske

    njeske Network Guru Member

    i'm no genius, but as far as i know there's no way to do what you want to do. you'd have to have seperate WAN ports forwarded to port 443 on the respective internal IPs.
  5. kevanj

    kevanj LI Guru Member

    I don't think that there is a way for Tomato to differentiate between the traffic. Port forwarding isn't that smart....;)
  6. fyellin

    fyellin LI Guru Member

    I agree with others. Tomato isn't smart enough to do this.

    Unless your users would get really confused, your best bet is to have one of your web servers to "redirect" traffic intended for the other server onto a different incoming port.
  7. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    The router may not have the capabilities built in to do this, but a quick google says you can accomplish this by running a "reverse proxy" on one of the computers. You'd just port forward all of the requests to that computer via the router, and it would send it to the other computer as necessary.

    Depending on your needs that may or may not be sufficient...
  8. rkloost

    rkloost Addicted to LI Member

    AFAIK http supports vhosts, https does not.

    portbased natting is the only option.
  9. leesiulung

    leesiulung LI Guru Member

    bummer. Thank you for all the responses!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice