• 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 32.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.
  • L
    lewis
    last edited by Mar 17, 2022, 6:40 PM

    I forgot to add...
    I can ping from pf01 to 10.100.0.2
    I can ping from pf02 to 10.100.0.1

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

      We have paid support if you need it. That pretty much rules out paying me here. 😉

      You're correct, you don't need a VIP on pf01 because it's DCLAN interface is already in the subnet directly.

      If you've assigned the GRE interfaces at each end they should show as gateways and will be trying to ping each other. If you have added firewall rules on those pings should succeed and the gateways will show as on-line.

      If that's the case you can try forwarding something from pf02 to the GRE tunnel IP at pf01 10.102.0.1. And from there to a server behind it.

      Steve

      1 Reply Last reply Reply Quote 0
      • L
        lewis
        last edited by Mar 17, 2022, 6:59 PM

        If there's an hourly option available, I'd do that. I'm sure this could be done in 20 minutes so don't really need an ongoing plan. Besides, I send all kinds of business this way since I cannot speak highly enough about pfsense to all network folks I talk with.

        In terms of what I have set up, it's as the images show. I posted another comment about being able to ping, apparently between tunnel interfaces now.

        I didn't need a rule to allow the pings however so I assume it's automatically allowed because of the GRE at both ends.

        Based on what you said, I needed a rule for pings to work so that must mean I've got something messed up.

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

          You need to be able to ping 10.102.0.2 from pf01 and the other way, 10.102.0.1 from pf02. So pinging inside the tunnel. You need rules on the GRE interfaces to allow that.

          Steve

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

            Sounds like I have everything done right but must still be missing something small.

            Untitled-1.jpg

            Cannot ping from one to the other.

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

              How are you testing?

              Check the routing table at each end (Diag > Routes). Make sure a route to the other side exists.

              1 Reply Last reply Reply Quote 0
              • L
                lewis
                last edited by lewis Mar 17, 2022, 10:20 PM Mar 17, 2022, 10:10 PM

                Hmm, I'm not sure where that /32 is coming from with pf01 10.102.0.2/32.

                I see the mask weirdness but not sure how to handle that since I want pf01 to be reachable by more than one pfxx later.

                Untitled-1.jpg

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

                  The 10.100.0.2 VIP should be /24 on pf02. The subnet should be the same everywhere.
                  That would not stop it reaching pfo1 though since it's inside the /30

                  Do you see any packets on the GRE interfaces in Status > Interfaces at either end?

                  How are you testing link?

                  1 Reply Last reply Reply Quote 0
                  • L
                    lewis
                    last edited by Mar 17, 2022, 10:39 PM

                    I changed that to /24.

                    I've been testing by pinging only.

                    pf02
                    GRE Interface (opt1, gre0)
                    Status     up 
                    IPv4 Address     10.102.0.2 
                    Subnet mask IPv4     255.255.255.252 
                    Gateway IPv4     10.102.0.1 
                    IPv6 Link Local     fe80::225:90ff:fe0e:a370%gre0 
                    MTU     1476 
                    In/out packets     0/91731 (0 B/6.42 MiB) 
                    In/out packets (pass)     0/91731 (0 B/6.42 MiB) 
                    In/out packets (block)     0/33 (0 B/3 KiB) 
                    In/out errors     0/0 
                    Collisions     0 
                    
                    pf01
                    GRE Interface (opt3, gre0)
                    Status     up 
                    IPv4 Address     10.102.0.1 
                    Subnet mask IPv4     255.255.255.252 
                    Gateway IPv4     10.102.0.2 
                    IPv6 Link Local     fe80::ae16:2dff:feb8:8400%gre0 
                    MTU     1476 
                    In/out packets     0/77642 (0 B/6.22 MiB) 
                    In/out packets (pass)     0/77642 (0 B/6.22 MiB) 
                    In/out packets (block)     0/75 (0 B/6 KiB) 
                    In/out errors     0/0   
                    Collisions     0 
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Mar 17, 2022, 10:54 PM

                      Ok so both sides are sending packets and not seeing anything incoming.

                      Do you see blocked traffic on either firewall?

                      GRE uses it's own protocol (gre) so if you have rules that allow only icmp/udp/tcp on the DCLAN connected interfaces that will block it.
                      If so adds rules to allow gre. Or just allow all IPv4 as a test.

                      Ste ve

                      1 Reply Last reply Reply Quote 0
                      • 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
                                          90 out of 144
                                          • First post
                                            90/144
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received