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

    NAT forwarding to other than FQDN or IP??

    Scheduled Pinned Locked Moved NAT
    5 Posts 3 Posters 1.6k 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.
    • S
      sniperstan
      last edited by

      Ok, I am new to PFSense but not to networking, have a single host behind firewall that it hosting multiple services (FTP, VPN, CIFS, SMB, etc.). What I need is to forward example.domain.com to 10.x.x.x/user/service instead of just 10.x.x.x as I have multiple web servers on the same machine, i had this working with my previous firewall but i cannot get it working on PFSense yet. Please Advise

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        I have multiple web servers on the same machine

        Do you really have multiple servers or is it really multiple virtual hosts on the same web server?  Multiple servers cannot bind to the same port, which leaves virtual hosts.  Most modern web servers can handle multiple websites being served from the same web server if they are configured as named-based virtual hosts.

        1 Reply Last reply Reply Quote 0
        • S
          sniperstan
          last edited by

          There are two virtual webservers running on the same OS, one on port 80 the other on 5000. The one on 5000 is configured to auto forward when any request comes to 10.x.x.x:80, and the other goes to 10.x.x.x/user/service. i have example.domain.com which is NATed to 10.x.x.x and exampletwo.domain.com that needs to go to 10.x.x.x/user/service

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            There are two virtual webservers running on the same OS

            Why not just run the one web server and have it handle both domains?

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              "exampletwo.domain.com that needs to go to 10.x.x.x/user/service"

              Sorry but firewalls don't do that kind of forward… A reverse proxy could do that sort of forward.. Use a reverse proxy package on pfsense if that is the sort of thing you want to do.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

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