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

    Directing outbound traffic

    Scheduled Pinned Locked Moved Routing and Multi WAN
    32 Posts 3 Posters 2.9k Views 3 Watching
    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.
    • M Offline
      mcury Rebel Alliance @pfsense1921
      last edited by

      @pfsense1921 said in Directing outbound traffic:

      @viragomann
      Thank You (Plan to remove the file soon)

      I will add the DNS now, the other LANs work without the DNS listed

      LAN_Office <--> WAN9 works no DNS listed
      LAN_Web <--> WAN11 works no DNS listed

      LAN_Email <--> WAN10 Not working no DNS listed.

      Added DNS
      LAN_Email <--> WAN10 Not working with DNS listed.
      Here was how I added DNS:
      2022-01-20_17-59.png

      DNS/53 should be TCP/UDP, 99,99% of times it will use UDP, but sometimes it can use TCP.

      dead on arrival, nowhere to be found.

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        pfsense1921 @pfsense1921
        last edited by

        @pfsense1921
        The LAN_Office and LAN_Web can ping everywhere and browse internet

        The LAN_Email can ping everywhere but Not browse internet

        Also disabled the offloading:
        2022-01-20_18-06.png

        1 Reply Last reply Reply Quote 0
        • P Offline
          pfsense1921 @mcury
          last edited by

          @mcury
          Thanks. Made the change, still did not work. Here is how it is now:
          2022-01-20_18-20.png 2022-01-20_18-21.png

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mcury Rebel Alliance @pfsense1921
            last edited by

            Open a prompt MS DOS in a machine from the LAN_Email network.
            Type nslookup press enter, then google.com and press enter and confirm if DNS is working.

            dead on arrival, nowhere to be found.

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              pfsense1921 @mcury
              last edited by

              @mcury
              It looks like it works, (Does "ping www.google.com" provide a similar test of dns?)
              Screenshot from 2022-01-20 20-46-30.png

              I can move the PC from lan_email to either lan_web or lan_office and browsing works.
              And vice versa, no browsing on lan_email. I feel like deleting everything and starting over which would probably be faster, but now I want to learn what the problem is.

              Thanks for the help.

              P M 2 Replies Last reply Reply Quote 0
              • P Offline
                pfsense1921 @pfsense1921
                last edited by

                @pfsense1921

                Very Odd this is. I can not pin point where the problem is.

                IF, I only connect one WAN to pfsense, the corresponding LAN works.
                I can do this with any WAN, All three LAN work, but only one at a time.
                (Tested with all 3 static IP, and moved them around)

                IF I connect two WAN, the two corresponding LANs work perfect.
                Again, I can do this with any combo of two WAN

                Everything seems to be working properly. IF your corresponding WAN is not connected, you can Not ping outside your LAN.

                Now, when I connect the third LAN everything goes to crap. I loose one LAN and sometimes two LAN.

                How would I prove/find if the problem is with pfsense OR ATT. I have 5 public static IP addresses, I am only using 3. Those tests can prove that both systems are working, neither can prove which one is having the problem. Something is crapping when all 3 LAN are connected.

                V 1 Reply Last reply Reply Quote 0
                • V Offline
                  viragomann @pfsense1921
                  last edited by

                  @pfsense1921
                  Your basic mistake is, that you have configured multiple WAN interfaces, which are all within the same subnet.
                  Routing doesn’t work this way.
                  You have to add all WAN IPs to a single interface.

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mcury Rebel Alliance @pfsense1921
                    last edited by mcury

                    @pfsense1921 said in Directing outbound traffic:

                    It looks like it works, (Does "ping www.google.com" provide a similar test of dns?)

                    Yes, its the same thing..

                    @viragomann said in Directing outbound traffic:

                    Your basic mistake is, that you have configured multiple WAN interfaces, which are all within the same subnet.
                    Routing doesn’t work this way.
                    You have to add all WAN IPs to a single interface.

                    I would be on it, I would like to know how he was able to configure three interfaces in the same subnet, I suppose this is not possible, he is probably using a /32 mask ?

                    dead on arrival, nowhere to be found.

                    V 1 Reply Last reply Reply Quote 0
                    • V Offline
                      viragomann @mcury
                      last edited by

                      @mcury
                      Yes, pfSense will throw overlapping networks errors, when doing this.
                      With a /32 musk it's possible. But I'm not sure if you can add the same gateway to multiple interface, even if one has the /29 mask.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        mcury Rebel Alliance @viragomann
                        last edited by

                        @viragomann said in Directing outbound traffic:

                        But I'm not sure if you can add the same gateway to multiple interface, even if one has the /29 mask.

                        He should be using only one WAN interface, getting the entire /29 subnet and using virtual IPs..

                        dead on arrival, nowhere to be found.

                        V 1 Reply Last reply Reply Quote 0
                        • V Offline
                          viragomann @mcury
                          last edited by

                          @mcury said in Directing outbound traffic:

                          He should be using only one WAN interface, getting the entire /29 subnet and using virtual IPs..

                          Yes, since he has only a single WAN gateway, that's the only option.

                          Routing is based on gateways, hence with the same gateway on multiple WAN interfaces any upstream packet can go out on any WAN interface and the outbound NAT rules will not work.

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pfsense1921
                            last edited by

                            @viragomann @mcury

                            Hello,

                            Based upon what was said previously, In Theory:
                            Would the M400 with pfsense work like I am trying with 3 different ISP Providers?

                            I apologize that my lack of understanding is making this a painful discussion for you. This is obviously far from a standard 1 WAN / 1LAN setup.
                            Thanks for trying to help me.

                            So, AFAIK, on my ATT service I have 4 different static Public IP addresses, I can route traffic to the public internet, independently on each port.
                            I am only using 3.

                            I am trying to do this:

                            I.am.trying.to.do.jpg

                            Not This:

                            Not.This.png

                            Attached below is my ATT modem.
                            Each one of the four yellow ports have individual public IP addresses.
                            Imagine as 4 different ISP, I am only trying to use 3.
                            I have verified that each port works like its own separate ISP.
                            (One test, I connected a PC directly to the port and "Whatsmyip" all said the public IP address for that port)

                            ATT.jpg

                            This last paragraph is me crying for help with the questions flying around inside my head. The best way for me to learn is to understand how to get from where I am to where you are. So I am sharing where I am 🙂

                            I do understand that my public IP addresses are on the same subnet, and they all use the same public gateway ( .14) - for the 4 IP addresses. (the addresses are public and not .14)
                            Prior Statement that I must use only one WAN because those IP addresses use the same One Gateway. Does that mean that every ISP with a public address would require its own separate gateway? And the gateway can not be shared with other ISPs? Soo, If two neighbors were using the same ISP Provider with public addresses on the same gateway, they would have to route thru the same WAN port on a firewall and not be able to use two different firewalls? Why is that different than what I am trying to do?

                            I apologize if you had to read that last paragraph twice. Thanks for your help!

                            M V 2 Replies Last reply Reply Quote 0
                            • M Offline
                              mcury Rebel Alliance @pfsense1921
                              last edited by mcury

                              @pfsense1921 Try this:
                              Connect just one cable from ARRIS LAN1 to pfsense WAN0
                              If things are as I think they are, you will receive an IP like this: X.X.X.X/29 with the gateway X.X.X.14/29 as you stated.
                              Do not connect other ports from ARRIS to pfsense.

                              Then create virtual IP, selecting IP Alias, WAN, Single address, put the IP and MASK accordingly, do not repeat the same IP that your pfsense WAN has, put the next one on the sequence.

                              Then change your NAT rule to hibrid, create a NAT OUTBOUND like this:
                              Interface WAN
                              Address Family: IPv4
                              Protocol any
                              Source network: GROUP B of computers: Destination: ANY
                              Destination any
                              Translation: Select the virtual IP address you created above

                              Then test and come here to tell us if it worked.

                              I suppose this video is perfect for you:
                              Youtube Video

                              Edit: One observation here is that in the video he is doing a portforward, you will do Outbound ok? So that step is different.

                              dead on arrival, nowhere to be found.

                              P 1 Reply Last reply Reply Quote 0
                              • V Offline
                                viragomann @pfsense1921
                                last edited by

                                @pfsense1921 said in Directing outbound traffic:

                                So, AFAIK, on my ATT service I have 4 different static Public IP addresses, I can route traffic to the public internet, independently on each port.

                                Agree, this should be possible.

                                I am trying to do this:
                                I.am.trying.to.do.jpg
                                Not This:
                                Not.This.png

                                There is logically no different at all. All hte traffic has to pass the common gateway.

                                Each one of the four yellow ports have individual public IP addresses.

                                Are you sure? Almost these boxes have a simple switch inside, so that each IP is available on any port.

                                I have verified that each port works like its own separate ISP.
                                (One test, I connected a PC directly to the port and "Whatsmyip" all said the public IP address for that port)

                                Set the IP manually on the PC and try it out.

                                If that's really the case, you need either a switch behind where you connect all ports and pfSense, or you bridge all interfaces on pfSense.

                                Prior Statement that I must use only one WAN because those IP addresses use the same One Gateway. Does that mean that every ISP with a public address would require its own separate gateway? And the gateway can not be shared with other ISPs? Soo, If two neighbors were using the same ISP Provider with public addresses on the same gateway, they would have to route thru the same WAN port on a firewall and not be able to use two different firewalls?

                                No, putting customers in a common subnet is rarely used here, but I've already used such a setup from a cable provider.
                                The customer have not to use a shared firewall, they have only to share the ISPs gateway in this case. But the gateway is outside of your home. There is no problem with that.

                                You can imagine this like your LAN devices are using your routers LAN IP as gateway. You configure all for your LAN subnet, e.g. a /24, which also the gateway is inside and all devices can communicate with the gateway independently. Only if the want to talk with another LAN device (the neighbor) they need not to pass the gateway, but can go directly.

                                However, most ISPs here provide PPP connections to customers with a single WAN IP instead of subneting.

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pfsense1921 @mcury
                                  last edited by

                                  @mcury
                                  Love Lawrence!

                                  P 1 Reply Last reply Reply Quote 1
                                  • P Offline
                                    pfsense1921 @pfsense1921
                                    last edited by

                                    @pfsense1921
                                    I got it working the way I want.

                                    There is a difference between the two drawings, I do not understand your statement with the gateway and how it relates to the drawings. One drawing (Not) shows one common public IP address, The other shows 3 independent public IP addresses.

                                    to an observer on the internet:

                                    The Not drawing: you can conclude that all 3 LAN pass thru one point managed by a PRIVATE entity.

                                    The WANT drawing: you can NOT conclude that all 3 LAN pass thru one point managed by a private entity. Only conclusion is that the 3 public addresses use the same gateway. That Could be 3 different private entities (neighbors with same ISP provider) OR could be the same.

                                    That is different.

                                    Depending on how far away or closely you look at something depends if it looks the same or not. From a distance two items may look the same. The closer we get we will find differences, with anything.

                                    Lawerence was talking about one WAN port and making Virtual IP addresses (to be used in a "similar" fashion). I am talking about Three REAL public IP addresses, not virtual IP addresses, that again is different.

                                    If you were saying there is logically no difference in their connection to the internet, I do agree.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mcury Rebel Alliance @pfsense1921
                                      last edited by

                                      @pfsense1921 said in Directing outbound traffic:

                                      I got it working the way I want.

                                      Thats is nice

                                      @pfsense1921 said in Directing outbound traffic:

                                      Lawerence was talking about one WAN port and making Virtual IP addresses (to be used in a "similar" fashion). I am talking about Three REAL public IP addresses, not virtual IP addresses, that again is different.

                                      He was receiving a few public IPs in his WAN, so he created the virtual IPs so he could use them.
                                      In that situation, pfsense WAN gets only one, so he needs to create the virtual IPs to assign them by NAT.

                                      But if its working, leave like that..

                                      dead on arrival, nowhere to be found.

                                      P 1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pfsense1921 @mcury
                                        last edited by

                                        @mcury @viragomann
                                        Thanks!
                                        I guess my mechanical brain wanted to see a hardwire to a port that was a physical public IP. That was probably the issue that would not let me see/understand the virtual IP solution.

                                        Thanks again for all the help.

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