Page 1 of 1

Send an email when WAN IP address changes.

Posted: Thu Aug 04, 2016 8:53 pm
by stedward
Hi Team,
Thanks heaps for this great and wonderful work. Having AdBlock on the router is brilliant.

I have one small request please.

Is it possible to run a cron job from the router to send an email whenever the WAN IP address changes.

If it is possible please give step by step guide. Many people would benefit from this option I guess. No need to mess around with Open DNS etc.

Thanks heaps again,
Ed

Re: Send an email when WAN IP address changes.

Posted: Thu Aug 11, 2016 8:08 pm
by stedward
Please someone answer my request. Thanks

Re: Send an email when WAN IP address changes.

Posted: Thu Aug 11, 2016 8:39 pm
by Lantis
It's not an easy request.
You need to install and configure a mail client on the router.
Then write a script to monitor the wan IP and trigger an email.


It would be significantly easier to just use the DDNS feature.

Re: Send an email when WAN IP address changes.

Posted: Sun Aug 14, 2016 2:11 pm
by b17gsr
Lantis, there's a email function for tracking Web usage. Odds are most of the email code could be adapted to send the email. It could be configured to add the WAN IP address to the email. Thoughts?

Re: Send an email when WAN IP address changes.

Posted: Sun Aug 14, 2016 4:42 pm
by Lantis
I've never used it, only been involved in the many bug reports. So my opinion of the plugin is shakey at best.
But yes it could be done that way

Re: Send an email when WAN IP address changes.

Posted: Fri Sep 02, 2016 4:30 am
by stedward
Hi Team,
Thanks for the reply.

I thought using unix sendmail/mailx command with crond can achieve this goal. I am a beginner with Unix, so haven't got a clue on writing any scripts, sorry.

Installing and configuring a mail client on a router would not be ideal in my opinion. Mainly there will be space issue and this could open security problems.

If anyone come up with better idea, please do let me know.