Log for WAN changes?

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

macaroon

New Around Here
I've got a AC68U running a recent Merlin firmware. Recently my ISP's cable modem has been losing connection for a few mins and then coming back. The router recognizes that the Internet is offline and then when the modem recovers, gets an IP again and everything is good.

What I'm looking for is a log entry showing that the WAN connection went down and one for when it became established (again). I've got logging set to "debug" and "all" but I'm not finding a good log entry for this activity. Am I just missing it or is this not something that is logged? (If it isn't logged, then that'd be a good feature request.)

Cheers,
 

Jeffrey Young

Senior Member
Are you looking for events in the log that explain why the WAN disconnected/connected?

If you have custom scripts and configs turned on (administration->system), then each time an event happens on the WAN, the "wan-event" script should be called. The syslog will show when that script is called and what the parameters that are passed to it (interface and the event type). Look for that log entry, then look around it to see if there is anything else suspicious that might help you trouble shoot.

I personally use the wan-event script to email me when my WAN disconnects/reconnects to let me know what my new WAN IP is. I also use the script to signal my VPN server what WAN IP address to listen too.
 

macaroon

New Around Here
Perfect, thanks. I'm on a FW revision shortly before wan-event was added (had some WiFi problems with newer FW so had to roll back but stopped using the Asus for WiFi so I can update the FW).

Does this event also get logged to syslog or do I need to do something like call `logger` in my script?

Cheers.
 

Jeffrey Young

Senior Member
Check out this wiki. More detail on the want-event script.


In previous versions, the script was called wan-start. As far as I can remember, anytime the wan-event script is triggered, a syslog entry is created.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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