Scheduled WAN reset

NethSecurity 8 23.05.5-ns.1.4.1

Hello folks,

is there a best practice for resetting WAN on a schedule?

Use case: to reset the WAN uplink (PPPOE) regularly on a schedule in order to determine precisely when the connection is reset, instead of waiting for reset by the ISP. So for example in a cronjob, every week on Monday 03:00 the WAN connection is reset.

Thnx for ideas.

Hi @Deckard

A very strange request.

I’m NOT a NethSecurity user, but I am very familiar with quite a few systems out there.
And all firewalls I know will provide you with a WAN Uptime.

But lowering your own uptime with periodic reboots is an option too, although the information you are looking for is already available…

And, don’t forget, just restarting a random service, without all dependencys in the right order may induce unexpected issues…
Example: DNS changes via WAN-DHCP, these are not forwarded to clients correctly…

My 2 cents
Andy

A perspective for you:

a) ISP restarts your internet connection every 7 days
b) For some reason you restart your router during the week, maybe there is an outage, maybe you have problems with DNSMASQ (see my other posts)
c) 7 days since last WAN connection setup the ISP resets your connection
d) This happens in the middle of the day. Or in the middle of a movie at night, or right in the middle of an online game on the weekend.

→ You definately need to determine yourself the time when WAN is reset: always at 03:00 on Monday, because only then, barring problems during the week ofcourse, will you never get interrupted in the middle of something important.

My question stands: in Nethsecurity, what is the best way to restart WAN on a schedule?

@Deckard

I’ve seen a lot of scenarios about providers, in all continents.
From rolling brownouts to dynamic IPs lasting for months…

In those cases where ISP resets your connection, they ALWAYS did that, no matter if you did restart an hour ago.

But, as I don’t use NethSecurity, I can’t help with this question.

My 2 cents
Andy

How the ISP works has nothing to do with Netsecurity.

My ISP resets my Internet Connection every 7 days from the time the connection is made.

As described, I need to determine when that happens by always resetting my connection at a defined time on my own, and thus avoid chaos.

One solution: reboot the entire NS router. But that is really a heavy-handed solution.
I can read the OpenWRT documentation and see how to take down and bring up PPPOE… was hoping someone already does this and spares me scripting this on my own. :wink:

ifdown <interface>
ifup <interface>

where interface probably is wan