Page 1 of 1

beginner asking for help

Posted: Fri May 13, 2016 9:53 pm
by ehabtanta
hi there

i think what i ask for is easy
i want the mikrotik to check every 10 secs and alarm me by mail if the wan ip changed

i am on 5.20

the only script that i could find was to just send the wan ip by fetching any site like whatismyip and send it to my mail but this will make it just send the ip every minute but i dont want the ip i just want to know this it is changed the moment it gets changed

thanks in advance and sorry for my bad english

Posted: Sat May 14, 2016 8:30 am
by jarda

Re: beginner asking for help

Posted: Sun May 15, 2016 12:05 pm
by rcourtney
Every 10 seconds may get you blacklisted by the site returning your
Public IP. Consider this, have your remote APs ping a central Miktotik
and use address lists. You can pull the count in a script and email or SMS your
changes.

Set this in your central AP to capture IPs instead:
/ip firewall filter add action=add-src-to-address-list address-list="myAPs" address-list-timeout=00:00:12 chain=input protocol=icmp

Your central AP should have a static IP address or use dynamic DNS. Or all could use a service
Like dynDNS