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

    Port forward: 1 external IP, 2 internal physical web servers

    Scheduled Pinned Locked Moved NAT
    5 Posts 5 Posters 3.3k 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
      stramato
      last edited by

      192.168.2.10
      Webserver 1: IIS 7
      Configured to sense Host Header Names
      Website Hostname: iis.mydomain.com

      192.168.2.11
      Webserver 2: Ubuntu Apache2,
      Configured for Virtual Hosts
      Website Hostname: apache2.mydomain.com

      OPT1 IP: 120.60.240.1

      NAT Rule 1:
      TCP
      Src Addr *
      Src Port *
      Dest Addr: OPT1
      Dest Ports: 80
      NAT IP: 192.168.2.10

      NAT Rule 2:
      TCP
      Src Addr *
      Src Port *
      Dest Addr: OPT1
      Dest Ports: 80
      NAT IP: 192.168.2.11

      Naturally, when apache2.mydomain.com is accessed, the NAT reads Rule 1 first and Webserver 1 responds "Not found" before going to NAT Rule 2

      What could be a practical solution for this problem?

      1 Reply Last reply Reply Quote 0
      • G
        gderf
        last edited by

        @stramato:

        What could be a practical solution for this problem?

        You need one more external IP address.

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

          You need to run either Squid in accelerator mode or the likes of HAProxy - a search of the forum should find you more on both. You do not need another WAN IP to achieve this.

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

            If I remember right, the mod_security package can also handle this.

            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
            • ?
              Guest
              last edited by

              http://forum.pfsense.org/index.php/topic,33566.msg174126.html#msg174126
              ^^^ how to install/setup pound

              "Proxy Server with mod_security" and varnish which is supported on the beta x64 version.

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