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

    No logs of pppoe process

    Scheduled Pinned Locked Moved CE 2.8.0 Development Snapshots (Retired)
    24 Posts 4 Posters 836 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.
    • w0wW
      w0w @netblues
      last edited by w0w

      @netblues

      @stephenw10 said in New PPPoE backend, some feedback:

      There isn't anything like the same logging that mpd gives. Yet.

      N 1 Reply Last reply Reply Quote 0
      • N
        netblues @w0w
        last edited by

        @w0w Seen that, but "anything like" means nothing at all?

        w0wW 1 Reply Last reply Reply Quote 0
        • w0wW
          w0w @netblues
          last edited by

          @netblues
          I've seen some errors in the general system log. One of them definitely occurred when the password was not accepted.

          N 1 Reply Last reply Reply Quote 0
          • N
            netblues @w0w
            last edited by

            @w0w
            I just got this on the ppp tab
            Apr 20 18:48:30 kernel if_pppoe: pppoe0: failed to set default route 17

            In any case, this is a pending issue (waiting to be fixed)

            w0wW 1 Reply Last reply Reply Quote 0
            • w0wW
              w0w @netblues
              last edited by

              @netblues
              Hmm, how did you know?

              N 1 Reply Last reply Reply Quote 0
              • N
                netblues @w0w
                last edited by

                @w0w Stephan said "YET"

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

                  Yes, the logging needs to be tweaked. Currently the only logging you see are for unexpected events. Most of which are harmless, like:

                  Apr 21 20:54:38 	kernel 		if_pppoe: pppoe0: pap failure
                  Apr 21 20:54:38 	kernel 		if_pppoe: pppoe: GENERIC ERROR (errortag 1)
                  Apr 21 21:00:25 	kernel 		if_pppoe: pppoe0: failed to set default route 17 
                  ...
                  N 1 Reply Last reply Reply Quote 2
                  • N
                    netblues @stephenw10
                    last edited by

                    And now logging works again :)

                    w0wW 1 Reply Last reply Reply Quote 0
                    • w0wW
                      w0w @netblues
                      last edited by

                      @netblues said in No logs of pppoe process:

                      And now logging works again :)

                      What? 😃
                      Did you switch to old backend?

                      N 1 Reply Last reply Reply Quote 0
                      • N
                        netblues @w0w
                        last edited by

                        @w0w Certainly not

                        0ababe15-d78b-47f6-a1e0-530da6909849-image.png

                        May 18 11:26:20 ppp 44990 [wan] IFACE: Rename interface ng0 to pppoe0
                        May 18 11:26:20 ppp 44990 [wan] IFACE: Up event

                        w0wW 1 Reply Last reply Reply Quote 0
                        • w0wW
                          w0w @netblues
                          last edited by

                          @netblues
                          This looks like something is broken — this is a typical mpd5 log when using Netgraph. ng0 is netgraph and this is not used in new backend

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

                            Yup, ng0 should never exist if it's using if_pppoe.

                            You can check it using: pppcfg pppoe0

                            That will return nothing if it's not an if_pppoe interface.

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

                              The only way to get additional output from if_pppoe I'm aware of is to enable debug mode like: ifconfig pppoe0 debug

                              You will then get a lot of output at the console and dmesg.

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                netblues @stephenw10
                                last edited by

                                @stephenw10 So, this is another bug.
                                The state of the checkbox doesn't reflect the use of new kernel mode.
                                Most probably is set when you switch the interface, but if you restore the configuration
                                it is ignored..

                                Steps to reproduce
                                Backup configuration on latest 25.03 beta, using kernel ppp
                                Install ce 2.7.2 clean.
                                restore 25.03 beta configuration to get system going
                                Run upgrades as requested to latest 25.03
                                And then restore configuration again, just in case something went missing and you end
                                with mpd5 logs

                                I'll try to switch it off an on again and see if it behaves.

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

                                  It's a loadable kernel module so it's only loaded at boot after the loader line has been added.

                                  If you load the config into 2.7.2 (which isn't valid) that setting doesn't do anything. When you upgrade to 25.03 it reboots but the loader line still isn't present. So once it's in 25.03 the loader lin e will have been added but the module won't actually load until the next boot.

                                  If you upgrade to 25.03 first then restore the config it should work as expected.

                                  N 1 Reply Last reply Reply Quote 0
                                  • N
                                    netblues @stephenw10
                                    last edited by netblues

                                    @stephenw10 Yes, but I must restore the configuration to make things work .

                                    After switching config twice, I ended up into another corner situation
                                    Last messages logged (at shutdown due to kernel mode ppp checked)
                                    May 18 18:45:24 ppp 50090 process 50090 terminated
                                    May 18 18:45:24 ppp 50090 [wan_link0] Link: Shutdown
                                    May 18 18:45:24 ppp 50090 [wan] Bundle: Shutdown

                                    but, after reboot
                                    No more ppp logs BUT
                                    pppcfg pppoe0
                                    dev: vtnet0 state: session
                                    sid: 0xafc8 PADI retries: 0 PADR retries: 0 time: 00:07:59
                                    sppp: phase network authproto auto authname "xxxxx@xxx.com" peerproto auto
                                    dns: 212.205.212.205 195.170.0.1
                                    e50af13c-a456-4e4a-b8b3-1dc00caf018f-image.png

                                    What am I running? How do we fix this?

                                    w0wW stephenw10S 2 Replies Last reply Reply Quote 0
                                    • w0wW
                                      w0w @netblues
                                      last edited by w0w

                                      @netblues said in No logs of pppoe process:

                                      What am I running?

                                      Now it is If_pppoe and pppoe session established successfully.

                                      @netblues said in No logs of pppoe process:

                                      How do we fix this?

                                      What is wrong?
                                      Post bug report on redmine, I think…

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

                                        @netblues said in No logs of pppoe process:

                                        No more ppp logs BUT
                                        pppcfg pppoe0
                                        dev: vtnet0 state: session
                                        sid: 0xafc8 PADI retries: 0 PADR retries: 0 time: 00:07:59
                                        sppp: phase network authproto auto authname "xxxxx@xxx.com" peerproto auto
                                        dns: 212.205.212.205 195.170.0.1

                                        That's the correct expected output with if_pppoe loaded and working. There is no problem there.

                                        A 1 Reply Last reply Reply Quote 0
                                        • N
                                          netblues @stephenw10
                                          last edited by

                                          @stephenw10 said in No logs of pppoe process:

                                          You can check it using: pppcfg pppoe0

                                          That will return nothing if it's not an if_pppoe interface.

                                          Based on that I misunderstood that still I should get nothing when running kernel too.
                                          Thanks for clearing it up

                                          1 Reply Last reply Reply Quote 1
                                          • A
                                            ajama1 @stephenw10
                                            last edited by

                                            @stephenw10 In the PFSENSE 2.8 release, is it correct that PPP log entries in the GUI will show when the mpd5 module is used instead of the if_pppoe module?

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