What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

WAN disconnect/reconnect script

lfbb

Regular Contributor
Is it possible to write a script to avoid disconnect during day times initiated every 4 days(more or less) by ISP? As you can see the last connect time was 6179.7 minutes(4 days and ~6hours???). I want a script that disconnects/reconnects the WAN connection every 4 days exactly, at 8h00m AM. Can this be done?
Oct 24 05:16:36 pppd[501]: LCP terminated by peer
Oct 24 05:16:36 pppd[501]: Connect time 6179.7 minutes.
Oct 24 05:16:36 pppd[501]: Sent 538624433 bytes, received 290882378 bytes.
Oct 24 05:16:36 dnsmasq[526]: read /etc/hosts - 3 addresses
Oct 24 05:16:36 dnsmasq-dhcp[526]: read /etc/ethers - 3 addresses
Oct 24 05:16:36 dnsmasq[526]: using nameserver 192.168.1.254#53
Oct 24 05:16:36 dnsmasq[526]: using nameserver 192.168.1.254#53
Oct 24 05:16:38 WAN Connection: Fail to connect with some issues.
Oct 24 05:16:38 notify_rc : stop_nat_rules
Oct 24 05:16:38 stop_nat_rules: apply the redirect_rules!
Oct 24 05:16:39 pppd[501]: Connection terminated.
Oct 24 05:16:39 pppd[501]: Sent PADT
Oct 24 05:16:39 pppd[501]: Modem hangup
Oct 24 05:16:49 pppd[501]: PPP session is 1 (0x1)
Oct 24 05:16:49 pppd[501]: Connected to 08:76:ff:9a:b7:b9 via interface eth0
Oct 24 05:16:49 pppd[501]: Using interface ppp0
Oct 24 05:16:49 pppd[501]: Connect: ppp0 <--> eth0
Oct 24 05:16:50 pppd[501]: PAP authentication succeeded
Oct 24 05:16:50 pppd[501]: peer from calling number 08:76:FF:9A:B7:B9 authorized
Oct 24 05:16:50 pppd[501]: local IP address 81.193.X.X
Oct 24 05:16:50 pppd[501]: remote IP address 194.65.169.196
Oct 24 05:16:50 pppd[501]: primary DNS address 212.55.154.174
Oct 24 05:16:50 pppd[501]: secondary DNS address 212.55.154.190
Oct 24 05:16:50 dnsmasq[526]: read /etc/hosts - 3 addresses
Oct 24 05:16:50 dnsmasq-dhcp[526]: read /etc/ethers - 3 addresses
Oct 24 05:16:50 dnsmasq[526]: using nameserver 212.55.154.190#53
Oct 24 05:16:50 dnsmasq[526]: using nameserver 212.55.154.174#53
Oct 24 05:16:50 notify_rc : start_nat_rules
Oct 24 05:16:50 start_nat_rules: apply the nat_rules!
Oct 24 05:16:50 notify_rc : stop_upnp
Oct 24 05:16:50 miniupnpd[612]: received signal 15, good-bye
Oct 24 05:16:50 notify_rc : start_upnp
Oct 24 05:16:50 syslog: SNet version started
Oct 24 05:16:50 miniupnpd[2793]: HTTP listening on port 49366
Oct 24 05:16:50 miniupnpd[2793]: Listening for NAT-PMP traffic on port 5351
Oct 24 05:16:53 WAN Connection: WAN was restored.
- lfbb
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top