if_pppoe: How to reconnect using CRON at given time?
-
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.
Cheers
ITSGS -
What was logged when that ran?
Does it work as expected if you run it manually?
-
Try running:
/etc/rc.interfaces_wan_configure opt2
Where opt2 is your pppoe interface. That will bring it down and back up.
-
@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.
-
-
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
-
@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.
-
@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...