PPPoE doesn't reconnect when parent interface goes down/up

Started by skywalker007, July 19, 2019, 05:36:41 PM

Previous topic - Next topic
I have the issue that my DSL modem currently hangs occasionally. Restarting the modem solves that. However the PPPoE client terminates then and doesn't reconnect when the modem is back up. I have to bounce the firewall as well which is annoying. Can that be solved somehow?
thanks!
System1: Qotom Q310G4
System2: APU2C4

Started getting the same issue.  It would also be nice if there was a button to click to disconnect/reconnect pppoe.

There is... Interfaces->Overview->Wan Interface
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

I don't want buttons :-). I need the FW to handle the reconnect smoothly.
System1: Qotom Q310G4
System2: APU2C4

Just about to reply to your problem with a solution, that answer was for @LogicEthos - give me five, just putting the answer together.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: skywalker007 on July 19, 2019, 05:36:41 PM
I have the issue that my DSL modem currently hangs occasionally. Restarting the modem solves that. However the PPPoE client terminates then and doesn't reconnect when the modem is back up. I have to bounce the firewall as well which is annoying. Can that be solved somehow?
thanks!

I could think of a process monitoring via monit and start when gone. Just search for monit mini howto here and play around with the features

Quote from: skywalker007 on July 19, 2019, 05:36:41 PM
I have the issue that my DSL modem currently hangs occasionally. Restarting the modem solves that. However the PPPoE client terminates then and doesn't reconnect when the modem is back up. I have to bounce the firewall as well which is annoying. Can that be solved somehow?
thanks!


I use a cron script that monitors the WAN status and reboots or takes the WAN interface down/up. You need the two files attached. Firstly, copy the the conf file to /usr/local/opnsense/service/conf/actions.d - copy the sh file to /usr/local/sbin


Open a shell and issue the command 'service configd restart'


Now go to the Cron config and add a new cron event, run it every  ten minutes, it should end up looking like this:





You'll need to modify the script to change the interface names from re0 to igb0 or whatever your interface is.

OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Oops.. forgot the files.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: mimugmail on October 16, 2019, 11:41:47 AM
Quote from: skywalker007 on July 19, 2019, 05:36:41 PM
I have the issue that my DSL modem currently hangs occasionally. Restarting the modem solves that. However the PPPoE client terminates then and doesn't reconnect when the modem is back up. I have to bounce the firewall as well which is annoying. Can that be solved somehow?
thanks!

I could think of a process monitoring via monit and start when gone. Just search for monit mini howto here and play around with the features


I use monit to restart dpinger on ipv6 when pppoe bounces, sometimes it doesn't come back. You could do it that way.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Cool. Haven't played with that yet. Thanks!
System1: Qotom Q310G4
System2: APU2C4

Quote from: mimugmail on October 16, 2019, 11:41:47 AM
Quote from: skywalker007 on July 19, 2019, 05:36:41 PM
I have the issue that my DSL modem currently hangs occasionally. Restarting the modem solves that. However the PPPoE client terminates then and doesn't reconnect when the modem is back up. I have to bounce the firewall as well which is annoying. Can that be solved somehow?
thanks!

I could think of a process monitoring via monit and start when gone. Just search for monit mini howto here and play around with the features


The only issue with monit is whether the mpd pid is there or not, does it actually shutdown? If not then monit won't trigger as the pid is still there - unless you can think of another way.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member