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

    Multiple domains using the same IP

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 2 Posters 242 Views
    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.
    • M
      McMurphy
      last edited by

      We have a hosted server that only has a single public IP

      Is it possible to host multiple servers behind pfsense and have them all accessible via this single public IP with pfsense directing traffic based upon the domain used?

      i.e.
      If a.comany.com & b.company.com both share the same public IP

      a.company.com => serverA
      b.company.com => serverB

      1 Reply Last reply Reply Quote 0
      • tinfoilmattT
        tinfoilmatt
        last edited by

        "Reverse proxies can inspect HTTP headers, which, for example, allows them to present a single IP address to the Internet while relaying requests to different internal servers based on the URL of the HTTP request. "

        https://en.wikipedia.org/wiki/Reverse_proxy

        M 1 Reply Last reply Reply Quote 0
        • M
          McMurphy @tinfoilmatt
          last edited by

          @cyberconsultants

          Perfect, and pfSense can do this?

          tinfoilmattT 1 Reply Last reply Reply Quote 0
          • tinfoilmattT
            tinfoilmatt @McMurphy
            last edited by

            @McMurphy Both an HAProxy (including a -devel version) and Squid package exist via Package Manager. I could not speak to which would be better for your use case as I have no use for either one.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.