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

    Feature Request: Host header based port forwarding

    Scheduled Pinned Locked Moved Forum Feedback
    3 Posts 2 Posters 6.7k 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.
    • J
      jvetter713
      last edited by

      First of all, great job!  Today is my first day running pfsense as my router/firewall and I'm super excited.

      I realize that I am probably among a very small group of people with this specific need however there have been a few posts on this topic.
      I have multiple servers behind a single IP address.  If I had the luxury of multiple IP's this would not be an issue.

      Looking at the web pages it just doesn't seem like it would be that hard to add this feature.
      The solution that I have right now works but it is not as elegant as if it was done at the router level.

      (All servers are Win Server 2008)
      Lets say I have site.com and a.site.com
      Now lets say that site.com should go to server #1 and a.site.com should go to server #2.
      I have a Reverse Proxy I wrote in .NET and a.site.com is a site on server #1 that gets handled via the Reverse Proxy….works fine but could be better.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        That isn't possible by just using NAT and such that is included in the firewall. It is a much more complex task than you make it out to be.

        However, there are packages that may work for you that can do this. I think the HAProxy package may let you redirect in this manner, it is a reverse proxy. You might try experimenting with it and seeing what it can do.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • J
          jvetter713
          last edited by

          Ah very good, I will check this out.  And I didn't mean to trivialize the effort to do such a thing.
          Thanks!

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