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

No internet connection after upgrade from April 20 snapshot to May 19

2.4 Development Snapshots
4
50
12.3k
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.
  • P
    PiBa
    last edited by Jun 15, 2018, 7:10 PM

    Yes the first link https://github.com/pfsense/pfsense/pull/3947 contains 3 fixes/commits, the 2 you refer to, and one that fixes the displaying of the IPv6 for a IPv4 gateway..

    The gui 'none' selection is is still something to fix. Lets call that a 'unwanted feature' ;) . Ill probably work on that soon..

    W 1 Reply Last reply Jun 16, 2018, 6:07 AM Reply Quote 1
    • W
      w0w @PiBa
      last edited by Jun 16, 2018, 6:07 AM

      @piba
      Thank you, let me know if you need further testing.

      P 1 Reply Last reply Jun 23, 2018, 5:27 PM Reply Quote 0
      • P
        PiBa @w0w
        last edited by Jun 23, 2018, 5:27 PM

        @w0w
        Thank you for testing and reporting back each time :).

        Can you try latest snapshot? Its build with these (slightly modified) fixes included.

        p.s. not the 'none' selection yet though, still working on that.

        W 1 Reply Last reply Jun 24, 2018, 5:10 AM Reply Quote 0
        • W
          w0w @PiBa
          last edited by Jun 24, 2018, 5:10 AM

          @piba
          I have tried this one:

          2.4.4-DEVELOPMENT (amd64)
          built on Sat Jun 23 01:57:55 EDT 2018
          FreeBSD 11.2-RC3
          

          I've found that internet not working with this snapshot on reboot, but both fixes are present.
          I think it's modified line that was looked like

          if (platform_booting() && strpos($interface_real, "ppp") !== 0) {
          

          before,
          and now it's

          if (platform_booting() && in_array(substr($interface_real, 0, 3), array("ppp", "ppt", "l2t"))) {
          

          because if I change it back, it works again.

          P 1 Reply Last reply Jun 24, 2018, 12:30 PM Reply Quote 1
          • P
            PiBa @w0w
            last edited by PiBa Jun 24, 2018, 12:31 PM Jun 24, 2018, 12:30 PM

            @w0w
            Ah crap, i forgot to do the inverse, '!'.

            if (platform_booting() && !in_array(substr($interface_real, 0, 3), array("ppp", "ppt", "l2t"))) {
            

            sorry, thanks for testing!

            new PR made: https://github.com/pfsense/pfsense/pull/3956

            W 1 Reply Last reply Jun 24, 2018, 1:13 PM Reply Quote 0
            • W
              w0w @PiBa
              last edited by Jun 24, 2018, 1:13 PM

              @piba This one is much better 👍 😀
              It works!

              1 Reply Last reply Reply Quote 0
              • W
                w0w
                last edited by Jul 4, 2018, 3:24 AM

                As expected, latest snapshot containing this PR boots normally.

                P 1 Reply Last reply Jul 4, 2018, 6:07 PM Reply Quote 0
                • P
                  PiBa @w0w
                  last edited by Jul 4, 2018, 6:07 PM

                  @w0w
                  Thanks, added your confirmation to the redmine ticked so it can be closed.

                  W 1 Reply Last reply Jul 5, 2018, 2:19 PM Reply Quote 0
                  • W
                    w0w @PiBa
                    last edited by Jul 5, 2018, 2:19 PM

                    @piba
                    Please let me know when you need testing gui 'none' selection fix ☺

                    P 1 Reply Last reply Jul 5, 2018, 10:35 PM Reply Quote 0
                    • P
                      PiBa @w0w
                      last edited by Jul 5, 2018, 10:35 PM

                      @w0w
                      The commit was merged, but not build yet. next snapshot should contain a new 'automatic' option which would be the default for the gateway selection, also a option to move gateways up/down on the list with checkboxes and anchor click. The option 'none' should now also actually be none.. I guess all of those things can use a little testing once it gets build 😉 ..

                      W 1 Reply Last reply Jul 7, 2018, 4:59 AM Reply Quote 0
                      • W
                        w0w @PiBa
                        last edited by w0w Jul 7, 2018, 5:08 AM Jul 7, 2018, 4:59 AM

                        @piba
                        Here is my test result. If I select "Automatic" option in GUI then everything looks OK, I have internet and default gateway, but when I try reboot the firewall, on next boot there is no internet and default gateway anymore, sounds familiar? 😉
                        This easy to fix, just pressing "save" on system_gateways.php and "Apply changes", it immediately starts working and I see this line in log:

                        /system_gateways.php: Default gateway setting Interface WAN_PPPOE Gateway as default. 
                        

                        There is no such/similar line during boot, so automatic selection does not trig for some reason.
                        How can I help to debug this?

                        P 1 Reply Last reply Jul 7, 2018, 9:58 PM Reply Quote 0
                        • P
                          PiBa @w0w
                          last edited by Jul 7, 2018, 9:58 PM

                          @w0w
                          Thanks again for testing. We seem to have hit catch22 issue here.

                          'Automatic' selection takes the gateway 'status' into account which depends on dpinger, which depends on routes to the monitor-targets being configured before hand so to the monitor target will be using the correct gateway, which while configuring routes it also configures the default route which depends on the dpinger already running..

                          Hmm... This needs a bit more thought..

                          1 Reply Last reply Reply Quote 0
                          • W
                            w0w
                            last edited by Jul 8, 2018, 9:50 AM

                            @piba
                            Maybe these questions sound silly, but anyway I'll ask 🙄
                            If we have a bunch of gateways, ex. multiple WANs, what this "automatic" selection is supposed to do generally?
                            When we have single gateway found on a system, then we can skip status check and just select it as "default", no?

                            P 1 Reply Last reply Jul 8, 2018, 4:34 PM Reply Quote 0
                            • P
                              PiBa @w0w
                              last edited by PiBa Jul 8, 2018, 4:35 PM Jul 8, 2018, 4:34 PM

                              @w0w
                              Question are always good, well most of the time anyhow it makes me think again :).

                              With multiple WANs its supposed to pick the first one thats 'up' as ordered in the gateway list and determined by the dpinger status. If that works properly with multiple wan's the same logic should also work with a single wan.. Making 'single wan' a special case makes the code more complicated imho so i tried to avoid that.. As for my previous statement about routes and dpinger needing them for the monitoring seems to have been wrong. So i think switching the order of these 2 actions in the newwanip scripts should fix the issue..

                              Made a new PR: https://github.com/pfsense/pfsense/pull/3962
                              It 'should' take care of dpinger not being available early enough. And if that fails it still takes the first configured gw and logs a message to the systemlog that it did that.. That 'should' not get logged though..

                              W 1 Reply Last reply Jul 8, 2018, 5:00 PM Reply Quote 1
                              • W
                                w0w @PiBa
                                last edited by w0w Jul 8, 2018, 5:00 PM Jul 8, 2018, 5:00 PM

                                @piba
                                Applied this PR and voila, everything looks good now! 👍
                                Automatic is active and default IPv4 route is picked up.

                                Jul 8 19:48:58 	php-fpm 	334 	/rc.newwanip: Gateway, none 'available' for inet6, use the first one configured. ''
                                Jul 8 19:48:58 	php-fpm 	334 	/rc.newwanip: Default gateway setting Interface WAN_PPPOE Gateway as default.
                                Jul 8 19:48:58 	php-fpm 	334 	/rc.newwanip: IP Address has changed, killing states on former IP Address x4.5x.x2.28. 
                                

                                All is as expected — IPv6 is just not available, my ISP does not provide it and it is not enabled in firewall settings, so it's OK .
                                ☺
                                Thanks, PiBa!

                                W 1 Reply Last reply Aug 1, 2018, 5:31 AM Reply Quote 0
                                • W
                                  w0w @w0w
                                  last edited by Aug 1, 2018, 5:31 AM

                                  @piba

                                  I am pleased to report that latest snapshot works "out of the box".
                                  Good work! 👍

                                  P 1 Reply Last reply Aug 1, 2018, 10:47 PM Reply Quote 0
                                  • P
                                    PiBa @w0w
                                    last edited by Aug 1, 2018, 10:47 PM

                                    @w0w
                                    Thanks for testing and reporting back :)

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