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

    Upload not working on GW_Failover

    General pfSense Questions
    2
    20
    1.2k
    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.
    • GiaNNG
      GiaNN
      last edited by GiaNN

      Hi all,
      I have PFsense+ 23.09 on bare hardware, sometimes my FWA main ISP fails so i am in need of a backup connection, with the help of @stephenw10 i got an old Huawei K5150 working but it's performance were awful, so i got a ZTE 4G router in which i got a 4G sim, gave the backup router the IP address 192.168.1.3 and set up failover in the gateway section so it looks like this: f342179c-c9ff-49a3-a3e8-199693677ffe-immagine.png,
      then i changed the gateway in the firewall IPv4 LAN rule so it looks like this: cc104abd-b8fe-487d-b6eb-87ed69c97d3c-immagine.png
      and tried to see if it works and it does, but only in download... As soon as i try to do an upload test with the backup connection it fails or it finishes it with something like 0.03Mbps in upload while capping my 30Mbit download. (My SIM has a max speed of 30/30 and it can provide also IPv6, but keep it disabled because it create conflict with my main IPv6 and i think it also isn't static. Also if i try a test with the 4G router alone it goes 30/30) I don't understand why it behaves like that, somebody has suggestion of where to look?
      I add that for the main connection i have codelQ set up to a max speed of 98/20 in order to get bufferbloat under control.

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

        I would test two things:

        Add a firewall rule that routes traffic via the 4G router only. No failover. Test that it also sees the low upload.

        Disable traffic shaping and retest.

        Also check the link between the 4G router and pfSense. Is it linked at the expected speed? Are there and errors on the interface? Is the MTU set to something odd?

        Steve

        GiaNNG 1 Reply Last reply Reply Quote 0
        • GiaNNG
          GiaNN @stephenw10
          last edited by GiaNN

          @stephenw10 Just by doing the first step this is the result:
          fa917640-872d-4c81-9b3c-0c56f7d88713-immagine.png
          i brutally copied the LAN rule and put there the backup gateway while also temporarely disabling the one with GW_failover so it looks like this:
          c2fe1b93-ea7e-4274-aa86-8783723a6546-immagine.png
          of course to get it working right i had to disable IPv6 on my computer ,
          by also disabling the limiter the result is the same
          08ff2c90-cae6-43b1-b251-a493d8ca36fe-immagine.png .
          The backup router it's not directly connected to PFsense, there's a switch in between (that's also my AP, a keenetic AP) and there's no error and the link speed is 1000/1000 with no errors..
          The MTU on my PPPoE is 1402, while on the backup connection is 1500 with MSS of 1460 (which was set automatically by the ZTE)

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

            That should be OK.Then the next thing I would test is connecting the 4G router directly to pfSense to eliminate the switch as an issue.

            Throttling to that extent is usually something low level like a bad port or cable.

            GiaNNG 1 Reply Last reply Reply Quote 0
            • GiaNNG
              GiaNN @stephenw10
              last edited by GiaNN

              @stephenw10 ok i tried and it works right:
              eb2211d1-80fe-48d2-9d74-842e2859420d-immagine.png
              by connecting the ZTE directly in the WAN port and giving it the 192.168.8.3 IP address.
              Are you sure it's not something with some firewall rule? Because even trying on a different cable, port and switch it behaves the same
              now i had to give him an OPT1 interface and set it up in static IPv4, while in my config was setup as an IP address in my LAN network like this:
              2c4f14a9-82a7-48c3-98b4-18b21f4fc01a-immagine.png
              because i thought that by doing so i wouldn't need to set up VLANs

              GiaNNG 1 Reply Last reply Reply Quote 0
              • GiaNNG
                GiaNN @GiaNN
                last edited by

                I tried to reconfigure the GW-Failover as i did before, and it still behaves the same, but if i run a speedtest from the firewall it works just right...
                a9d5d61e-e605-42f0-b303-1dfa1075edef-immagine.png
                So i think it's something blocking traffic from LAN but i don't know what can be

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

                  Oh it was in your LAN subnet?

                  In that case it's almost certainly an asymmetric routing problem. You can't have two gateways and hosts all the same subnet like that.

                  https://docs.netgate.com/pfsense/en/latest/troubleshooting/asymmetric-routing.html

                  You need to put the 4G router on a separate interface. That could be a VLAN if you don't have any spare NICs.

                  Steve

                  GiaNNG 1 Reply Last reply Reply Quote 0
                  • GiaNNG
                    GiaNN @stephenw10
                    last edited by GiaNN

                    @stephenw10 unfortunatelly i cannot use VLANs because the ZTE with stock firmware isn't capable of use them.
                    I try to see if the firewall fix works thanks ๐Ÿ‘
                    I don't know if it's this the rule that it's said in the documentation
                    027f5189-8a2f-4842-95a2-2f4cdfd278d0-immagine.png
                    If yes, then the automatic fix doesn't work, i try the manual.

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

                      The modem doesn't need to support VLANs as long as the switch does. The only part that would be VLAN tagged is between the pfSense LAN NIC and the switch.

                      GiaNNG 1 Reply Last reply Reply Quote 0
                      • GiaNNG
                        GiaNN @stephenw10
                        last edited by

                        @stephenw10 yes my keenetic AP supports VLAN tag.
                        I tried to do the manual fix with the LAN and the floating rule and it works
                        0c5dc2fc-959b-4b49-aee8-0d4c40e322fc-immagine.png ,
                        now i only need to try to set up codelQ to limit the speed to 30/30 so i can get decent bufferbloat even with the backup connection.
                        I tried to set up a VLAN this morning but i think i misconfigured something and it wasn't working ๐Ÿค”

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

                          It would be much better to use a separate VLAN interface than using the workaround firewall rule if you can. Without VLANs you are still using asymmetric routing just masking the issue. But I'd almost guaranty it will come back to bite you at some point.

                          Steve

                          GiaNNG 1 Reply Last reply Reply Quote 0
                          • GiaNNG
                            GiaNN @stephenw10
                            last edited by

                            @stephenw10 i know, but i've never used VLANs before and when i tried this morning i think i messed up something, i'll see some documentation/ tutorial on how to use them and i'll try.
                            Are you sure the static route problem won't cause problem even with a VLAN?
                            Thank You.

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

                              Using the VLAN eliminates the asymmetry. All traffic to and from the 4G router then has to go through pfSense via the LAN and VLAN interfaces. Currently traffic can go directly between the 4G router and LAN hosts without going through pfSense.

                              GiaNNG 2 Replies Last reply Reply Quote 0
                              • GiaNNG
                                GiaNN @stephenw10
                                last edited by GiaNN

                                @stephenw10 yes i think tomorrow i'll work on that, because right now my PPPoEv4 isn't letting any traffic through so i think i messed something. Even setting it up as gateway it doesn't work.
                                512bf57f-5bb9-4a0e-8172-b4176c5a7066-immagine.png
                                (my v6 PPPoE comes from the v4)
                                luckily i had a backup and restored it LOL.

                                1 Reply Last reply Reply Quote 0
                                • GiaNNG
                                  GiaNN @stephenw10
                                  last edited by GiaNN

                                  @stephenw10 Hi, i resume this thread to say that i configured correctly the VLAN and now the failover works perfectly also i configured CodelQ with a 30Mbit limiter (BTW Thank You), there's only a little thing that annoys me: my backup Sim changes IP every 4 hours so the firewall sends me 2 messages like these:
                                  82712a7e-3f07-44ae-80a5-18ec4ba14742-immagine.png
                                  Is there a way to turn off notifications on that gateway and at the same time keeping the monitoring on to detect if it works or not?

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

                                    Not within the pfSense GUI. It always notifies about gateway events. And you need the gateway monitoring and actions enabled to make sure failover works correctly.
                                    You could assume it's always up and disable monitoring actions on the 4G router gateway. That might be acceptable.

                                    GiaNNG 1 Reply Last reply Reply Quote 0
                                    • GiaNNG
                                      GiaNN @stephenw10
                                      last edited by

                                      @stephenw10 said in Upload not working on GW_Failover:

                                      Not within the pfSense GUI

                                      is it possible via CLI?
                                      Otherwise i can see if i can do something through the telegram bot or i'll do the always up.

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

                                        Anything is possible with code! ๐Ÿ˜‰

                                        But it not something I'm familiar with. There have been calls for better granularity in notifications. There might be some examples in the forum.

                                        GiaNNG 1 Reply Last reply Reply Quote 1
                                        • GiaNNG
                                          GiaNN @stephenw10
                                          last edited by GiaNN

                                          @stephenw10 well, guess i have to find what's the code PFsense uses to send telegram messages. Thank You
                                          I did it!
                                          I added the string if (str_contains($data["text"],"LTE_Backup_VLAN")) return 0 to the etc/inc/
                                          /notices.inc file and it works, it doesn't send me messages about that gateway but still monitors it, but still checking if everything works.

                                          GiaNNG 1 Reply Last reply Reply Quote 1
                                          • GiaNNG
                                            GiaNN @GiaNN
                                            last edited by

                                            @GiaNN i'll do some other testing because it seems that so It won't send any message besides the test one

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