Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Access multiple HTTP servers behind NAT with single public IP

    NAT
    2
    3
    1536
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kartweel last edited by

      Hi,

      I was wondering if there is a way in pfSense to send traffic to the correct HTTP server behind a NAT based on the Host header of the http request?

      I guess like a reverse proxy, is there anything like that inbuilt into pfSense?

      I also thought a layer 7 filter could be done on a port forward to read the host header and redirect to the correct server?. Would that be possible at all? Wouldn't require a reverse proxy that way.

      Open to other solutions. I would just like something simple and not have to set up a dedicated reverse proxy.

      Thanks, Ryan

      1 Reply Last reply Reply Quote 0
      • C
        cmb last edited by

        reverse proxy is the only option. It's impossible from a network perspective to do what you describe with layer 7, you have to establish the TCP connection to the web server before the host header shows up and can't just change it to something else. There are some in packages you can run on the firewall.

        1 Reply Last reply Reply Quote 0
        • K
          kartweel last edited by

          Thanks for the quick reply.

          I'll check it out :).

          Would be cool if you could layer 7 it :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post