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

Using pfsense with multiple WANs

Scheduled Pinned Locked Moved General pfSense Questions
144 Posts 5 Posters 31.4k 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
    stephenw10 Netgate Administrator
    last edited by Mar 17, 2022, 10:57 PM

    Looking at the screenshots you posted above the pf02 LAN rules are only allowing traffic from LANnet. And the gre traffic will be coming from the VIP subnet 10.100.0.0/24 so you will need another rule there if you haven't added one since then.

    L 1 Reply Last reply Mar 17, 2022, 11:37 PM Reply Quote 0
    • L
      lewis @stephenw10
      last edited by Mar 17, 2022, 11:37 PM

      I just don't know enough about this to make it work. I'm going to end up breaking pf02 and really messing things up.

      2022-03-17_161222.jpg

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Mar 17, 2022, 11:58 PM

        Try filtering by gre. You should see the states with traffic both ways:

        Screenshot from 2022-03-17 23-54-23.png

        And if it's passing correctly you should see both those gateway monitoring pings replying:

        Screenshot from 2022-03-17 23-55-54.png

        It looks like there is no incoming state there so either the firewall rules are blocking it, check the firewall logs, or one side has no route for some reason.

        Steve

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Mar 18, 2022, 12:04 AM

          I note that you have set 'add a static route' in the GRE setup at the pf01end. I have not done that in my test setup here.

          1 Reply Last reply Reply Quote 0
          • L
            lewis
            last edited by lewis Mar 18, 2022, 4:49 PM Mar 18, 2022, 4:36 PM

            My main fear at this point is messing up pf02 and causing down time since that is production.

            I've removed the static. I think I enabled that because of something I read. And that's one problem with reading about something like this. People have different variations so when you've never done it and don't get the concept yet, it's easy to make a mess of tests.

            I think this is where I'm at now and I've removed all rules, again, because I'm nervous about messing up prod traffic. I'll re-add slowly.

            I added an ICMP rule allow all on both LAN and GRE on pf02 and cannot ping 10.102.0.2 from the pf01 CLI. However, I can ping 10.100.0.2 from pf01 and vise versa.

            2022-03-18_090647.jpg

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Mar 18, 2022, 7:51 PM

              Do you see gre states open on both firewalls?

              1 Reply Last reply Reply Quote 0
              • L
                lewis
                last edited by Mar 18, 2022, 8:18 PM

                2022-03-18_131805.jpg 2022-03-18_131749.jpg

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Mar 18, 2022, 8:20 PM

                  Not states on the GRE interfaces, gre states on the LAN and DCLAN interfaces.

                  Just filter by gre on all interfaces as I showed above.

                  1 Reply Last reply Reply Quote 0
                  • L
                    lewis
                    last edited by lewis Mar 18, 2022, 8:34 PM Mar 18, 2022, 8:33 PM

                    All this time, I'm still pinging from one pf to the other.

                    2022-03-18_133334.jpg

                    2022-03-18_133315.jpg

                    1 Reply Last reply Reply Quote 0
                    • L
                      lewis
                      last edited by Mar 18, 2022, 9:06 PM

                      You said most times that I seemed to have things set right other than the masks. I've updated those but still cannot ping between GRE sides. What in the world am I missing?

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Mar 19, 2022, 12:26 AM

                        Ok, so the problem becomes apparent. On one side (looks like pf02) the GRE tunnel is incorrectly using 10.0.0.1 when it should be using the VIP address, 10.100.0.2.
                        So probably it is set to be on the LAN there and should be on the VIP.

                        Steve

                        L 2 Replies Last reply Mar 19, 2022, 12:35 AM Reply Quote 0
                        • L
                          lewis
                          last edited by Mar 19, 2022, 12:31 AM

                          One guy tells me, why bother with a GRE tunnel? Just use DNAT.
                          I gave him an example of wanting to reach a vm at 10.0.0.120 port 443 behind pf02 from the LAN on pf01.

                          He says, create a dnat on pf02 10.100.0.120:443 to 10.0.0.120:443

                          Not really sure what he's talking about but he's got a point. I can ping 10.100.0.2 on pf02 so doesn't that mean there's already a way to get this to work? I just don't understand how to map/route private IPs to private IPs.

                          Maybe I just need to create a new network, 10.100.0.1/24 and map pf02 IPs to that?

                          Mind blown here. All week on this.

                          S 1 Reply Last reply Mar 19, 2022, 12:41 AM Reply Quote 0
                          • L
                            lewis @stephenw10
                            last edited by Mar 19, 2022, 12:35 AM

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • L
                              lewis @stephenw10
                              last edited by Mar 19, 2022, 12:37 AM

                              @stephenw10 said in Multi LAN networks to one pfsense:

                              Ok, so the problem becomes apparent. On one side (looks like pf02) the GRE tunnel is incorrectly using 10.0.0.1 when it should be using the VIP address, 10.100.0.2.
                              So probably it is set to be on the LAN there and should be on the VIP.

                              Steve

                              I see that in the image I shares but not in the config anywhere.

                              S 1 Reply Last reply Mar 19, 2022, 12:42 AM Reply Quote 0
                              • S
                                stephenw10 Netgate Administrator @lewis
                                last edited by Mar 19, 2022, 12:41 AM

                                @lewis said in Multi LAN networks to one pfsense:

                                He says, create a dnat on pf02 10.100.0.120:443 to 10.0.0.120:443

                                10.100.0.120 doesn't exist but assuming you create it as a VIP on pf01 you can do that. But it will only work for one pfSense instance forwarding traffic because that is the gateway on pf01 DCLAN.

                                If you try to something similar from pf03 without a GRE tunnel replies will go back via pf02 resulting in an asymmetric route and blocked traffic.

                                Steve

                                L 1 Reply Last reply Mar 19, 2022, 1:04 AM Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator @lewis
                                  last edited by Mar 19, 2022, 12:42 AM

                                  @lewis said in Multi LAN networks to one pfsense:

                                  I see that in the image I shares but not in the config anywhere.

                                  I expect that is i the GRE tunnel config on pf02.

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lewis
                                    last edited by Mar 19, 2022, 12:48 AM

                                    It's still like this cept the masks are now /30 and static is disabled on both sides. Where is that 10.0.0.1 coming from then?

                                    2022-03-17_081331.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      lewis @stephenw10
                                      last edited by Mar 19, 2022, 1:04 AM

                                      @stephenw10 said in Multi LAN networks to one pfsense:

                                      @lewis said in Multi LAN networks to one pfsense:

                                      He says, create a dnat on pf02 10.100.0.120:443 to 10.0.0.120:443

                                      10.100.0.120 doesn't exist but assuming you create it as a VIP on pf01 you can do that. But it will only work for one pfSense instance forwarding traffic because that is the gateway on pf01 DCLAN.

                                      If you try to something similar from pf03 without a GRE tunnel replies will go back via pf02 resulting in an asymmetric route and blocked traffic.

                                      Steve

                                      What I meant is that instead of a VIP, what if I created a new /24 network interface instead of a tunnel? Most everything is port forwarded so really, to move things from pf02 to pf01, I mainly need to access one host/server at a time, then forward that access from pf02 to pf01.

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        lewis
                                        last edited by lewis Mar 19, 2022, 3:34 AM Mar 19, 2022, 2:35 AM

                                        I'm just not sure where that 10.0.0.1 is coming from. Maybe it was something I was playing with when I took the pic but it's gone now.

                                        Not sure if it's strange or not but to simply try something new, I deleted all the GRE stuff on both pf. I then created a VIP of 10.100.0.120 on pf02 and port forwarded that to a vm at 10.0.0.120 but even with a full any any rule, I can't reach that vm from pf01.

                                        Weee, how could nothing work?

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by Mar 19, 2022, 12:04 PM

                                          You need to change the parent interface for the GRE tunnel on pf02 to the VIP.

                                          Right now it's set as LAN in your screenshot and that's 10.0.0.1.

                                          Steve

                                          1 Reply Last reply Reply Quote 0
                                          100 out of 144
                                          • First post
                                            100/144
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received