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

    Forwarding based on target domain name

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 1.2k 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.
    • K
      Kirtaner
      last edited by

      Hi, I'm wondering if it's possible to perform port forwarding based on domain names.

      As in I have two domain names, domain1.com and domain2.com, both pointing to the same external IP address.

      I want to have pfSense forward domain1.com to one internal IP, and domain2.com to a different internal IP, kind of like how Apache/Lighttpd and other web servers can work with "virtual hosts" based on inbound domain names.

      Possible? I'm trying to reduce the amount of public IPs needed for a network of VMs.

      1 Reply Last reply Reply Quote 0
      • Cry HavokC
        Cry Havok
        last edited by

        It's only possible for HTTP, but yes you can. You can use Squid3 for this as a Reverse Proxy.

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