Community discussions

MikroTik App
 
ehabtanta
just joined
Topic Author
Posts: 7
Joined: Sat Mar 07, 2015 4:54 am

beginner asking for help

Fri May 13, 2016 9:53 pm

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
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Sat May 14, 2016 8:30 am

 
User avatar
rcourtney
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed May 22, 2013 10:55 pm

Re: beginner asking for help

Sun May 15, 2016 12:05 pm

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

Who is online

Users browsing this forum: No registered users and 6 guests