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

    Multiwan ip for data center.

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 2.1k 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
      sudo
      last edited by

      Hi All,

      I've plan change firewall for data center, I've fix 10 IP for wan and I've 10 server, how can I configure nat 1 to 1 ip for example,

      if I go to www.a.com go to server a (wan IP 118.175.xx.x and lan IP 192.168.0.1),
      also if I go to www.b.com go to server a (wan IP 118.175.xx.x and lan IP 192.168.0.2), etc.

      sorry for my bad english.

      Thx.

      1 Reply Last reply Reply Quote 0
      • M
        Metu69salemi
        last edited by

        Go to Firewall: NAT: 1:1, webGUI is quite selfexplaining

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by

          @sudo:

          if I go to www.a.com go to server a (wan IP 118.175.xx.x and lan IP 192.168.0.1),
          also if I go to www.b.com go to server a (wan IP 118.175.xx.x and lan IP 192.168.0.2), etc.

          I don't think 1:1 NAT will handle the request for http://www.a.com and http://www.b.com to go to server a (with public IP address) and then be redirected to different private IP addresses. This would seem to need something that looks inside http requests. 1:1 NAT might be part of the solution.

          But maybe I haven't interpreted the requirement correctly.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            It will work fine if you have 10 fixed WAN IPs. You just need to setup some IP aliases on WAN for each of your fixed IPs then you can 1:1 NAT each one to your internal addresses.

            Then put in some firewall rules to allow it to happen.

            Steve

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

              thank you all, I'ii do.

              1 Reply Last reply Reply Quote 0
              • M
                Metu69salemi
                last edited by

                1:1 NAT do the wanted feature for ip-changes, but then it leaves anything open. but 1:1 don't do that www.a.com resolves. that is left to dns servers

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

                  http://www.youtube.com/watch?v=zrBr0N0WrTY&feature=related

                  it work!!

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Yep, just like he did it!  ;)
                    That's a nice video tutorial.

                    Steve

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