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

    if_pppoe: How to reconnect using CRON at given time?

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 5 Posters 789 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Try running:
      /etc/rc.interfaces_wan_configure opt2

      Where opt2 is your pppoe interface. That will bring it down and back up.

      I 1 Reply Last reply Reply Quote 0
      • I
        ITSGS_ @stephenw10
        last edited by ITSGS_

        @stephenw10 Thank you. I will report back in about 20 hours. I set up a CRONJob. Will continue testing with the 25.03.b.20250610.1659.1500029 version, which was just released.

        1 Reply Last reply Reply Quote 1
        • I ITSGS_ referenced this topic on
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          We will likely add this back to if_pppoe in a future version but I can't say when right now. https://redmine.pfsense.org/issues/16159

          I 2 Replies Last reply Reply Quote 2
          • I
            ITSGS_ @stephenw10
            last edited by

            @stephenw10 Thank you for adding this as feature request. A lot of people like using this option. Will report back tomorrow, if the workaround works. Might be helpful to add the workaround to the documentation. The question will probably raised from time to time.

            1 Reply Last reply Reply Quote 1
            • I
              ITSGS_ @stephenw10
              last edited by

              @stephenw10 Fiddeling around I found out that my ISP sticked me to a fixed IP-Adress. Thats pretty uncommon for this kind of tariff plan. When I get a dynamic IP again, I will try again and report back...

              1 Reply Last reply Reply Quote 1
              • E
                eagle61 @ITSGS_
                last edited by

                @ITSGS_

                With CE 2.7.2 and now 2.8.0 i do use as cronjob

                /var/etc/pppoe_restart_pppoe0
                
                1 Reply Last reply Reply Quote 1
                • w0wW
                  w0w
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    That only works if you're not using if_pppoe. That file doesn't exist for if_pppoe configurations.

                    fireodoF 1 Reply Last reply Reply Quote 0
                    • fireodoF
                      fireodo @stephenw10
                      last edited by fireodo

                      @stephenw10 said in if_pppoe: How to reconnect using CRON at given time?:

                      That only works if you're not using if_pppoe. That file doesn't exist for if_pppoe configurations.

                      Could this work?:

                      /usr/local/sbin/pfSctl -c 'interface reload wan'
                      

                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                      pfsense 2.8.0 CE
                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                        Yes, I would expect that to. Though I haven't tested it. Yet...

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

                          Yup that also works:

                          [2.8.0-RELEASE][admin@m370.stevew.lan]/root: pppcfg pppoe0
                          	dev: lagg0 state: session
                          	sid: 0x12 PADI retries: 0 PADR retries: 0 time: 00:00:21
                          	sppp: phase network authproto auto authname "Test" peerproto auto 
                          [2.8.0-RELEASE][admin@m370.stevew.lan]/root: /usr/local/sbin/pfSctl -c 'interface reload opt2'
                          OK
                          [2.8.0-RELEASE][admin@m370.stevew.lan]/root: pppcfg pppoe0
                          	dev: lagg0 state: session
                          	sid: 0x7 PADI retries: 0 PADR retries: 0 time: 00:00:01
                          	sppp: phase network authproto auto authname "Test" peerproto auto 
                          
                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.