1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Reverse proxy on Tomato?

Discussion in 'Tomato Firmware' started by peterloron, Nov 1, 2013.

  1. peterloron

    peterloron Reformed Router Member

    I have a RT-N66U running Shibby 1.28.0000 MIPSR2-104 K26 USB AIO-64K. I want to get a reverse proxy running so I can redirect traffic (http and non-http like SSH) to various internal ports and IP addresses based on the requested hostname.

    I don't need a full-on caching proxy, just hostname-based forwarding.

    Can any kind soul point me to info on how to make this happen?

    darkknight93 likes this.
  2. lancethepants

    lancethepants Network Guru Member

    For Reverse HTTP proxying I like Nginx. It's available in Entware, and also built into some TomatoRaf builds.
    I don't think you can reverse proxy non-http stuff, however. I think you really need unique public IP addresses.

    HTTP requests also supply the hostname when you arrive at their IP address. Other protocols, like SSH, do not know what hostname you used, they just know you arrived at their IP address.

    You can run SSH on different ports. You could also use Port Forwarding on the router to forward a different port number to port 22 on a particular machine.
  3. rs232

    rs232 Network Guru Member

    Interesting, I almost forgot about this topic.
    Have tried to install Nginx via entware but failed to succeed. Let me ask a lazy question: is there any good howto available around on how to install nginx from scratch (and make it working)? No php/accellerators else needed

  4. koitsu

    koitsu Network Guru Member

    I believe squid can do reverse proxying based on HTTP Hostname: header, and it's known that squid does work under Entware. I cannot provide any other details than this.
  5. lancethepants

    lancethepants Network Guru Member

Share This Page