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
    7 Posts 2 Posters 238 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.
    • I
      ITSGS_
      last edited by

      Hello,

      I'm running the latest 25.03-BETA on my SG4200 with the new if_pppoe kernel driver for PPPoE client connections. I simply want to reconnect my WAN PPoE interface at 4 AM. How do I do that using CRON?

      I tried /sbin/ifconfig pppoe0 down && sleep 10 && /sbin/ifconfig pppoe0 up but it did not work last night.

      9843cb7a-730d-465e-8b42-01299d42a563-{AA3CEA8F-69E7-4098-A41C-69C584207E4C}.png

      Cheers
      ITSGS

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

        What was logged when that ran?

        Does it work as expected if you run it manually?

        1 Reply Last reply Reply Quote 0
        • 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
            • 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
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.