OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • PPPoE doesn't reconnect when parent interface goes down/up
« previous next »
  • Print
Pages: [1]

Author Topic: PPPoE doesn't reconnect when parent interface goes down/up  (Read 9852 times)

skywalker007

  • Full Member
  • ***
  • Posts: 147
  • Karma: 5
    • View Profile
PPPoE doesn't reconnect when parent interface goes down/up
« 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!
Logged
System1: Qotom Q310G4
System2: APU2C4

LogicEthos

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #1 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.
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #2 on: October 16, 2019, 11:23:06 am »
There is... Interfaces->Overview->Wan Interface
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

skywalker007

  • Full Member
  • ***
  • Posts: 147
  • Karma: 5
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #3 on: October 16, 2019, 11:24:08 am »
I don’t want buttons :-). I need the FW to handle the reconnect smoothly.
Logged
System1: Qotom Q310G4
System2: APU2C4

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #4 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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #5 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
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #6 on: October 16, 2019, 11:44:07 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 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.

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

Team Rebellion Member - If we've helped you remember to applaud

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #7 on: October 16, 2019, 11:48:40 am »
Oops.. forgot the files.
« Last Edit: October 16, 2019, 11:55:35 am by marjohn56 »
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #8 on: October 16, 2019, 11:50:35 am »
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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

skywalker007

  • Full Member
  • ***
  • Posts: 147
  • Karma: 5
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #9 on: October 16, 2019, 12:02:29 pm »
Cool. Haven’t played with that yet. Thanks!
Logged
System1: Qotom Q310G4
System2: APU2C4

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: PPPoE doesn't reconnect when parent interface goes down/up
« Reply #10 on: October 16, 2019, 12:09:20 pm »
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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • PPPoE doesn't reconnect when parent interface goes down/up
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2