OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: skywalker007 on July 19, 2019, 05:36:41 pm

Title: PPPoE doesn't reconnect when parent interface goes down/up
Post by: 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!
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: LogicEthos on October 16, 2019, 01:18:42 am
Started getting the same issue.  It would also be nice if there was a button to click to disconnect/reconnect pppoe.
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: marjohn56 on October 16, 2019, 11:23:06 am
There is... Interfaces->Overview->Wan Interface
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: skywalker007 on October 16, 2019, 11:24:08 am
I don’t want buttons :-). I need the FW to handle the reconnect smoothly.
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: marjohn56 on October 16, 2019, 11:28:42 am
Just about to reply to your problem with a solution, that answer was for @LogicEthos - give me five, just putting the answer together.
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: mimugmail on October 16, 2019, 11:41:47 am
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
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: marjohn56 on October 16, 2019, 11:44:07 am
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:


(https://i.ibb.co/0VfjQMH/Capture.png) (https://ibb.co/n8DsRcx)


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

Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: marjohn56 on October 16, 2019, 11:48:40 am
Oops.. forgot the files.
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: marjohn56 on October 16, 2019, 11:50:35 am
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.
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: skywalker007 on October 16, 2019, 12:02:29 pm
Cool. Haven’t played with that yet. Thanks!
Title: Re: PPPoE doesn't reconnect when parent interface goes down/up
Post by: marjohn56 on October 16, 2019, 12:09:20 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.