Community discussions

MikroTik App
 
DotTest37
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Sun Oct 06, 2013 10:01 pm

DDNS Update IP rule on remote router

Mon Nov 14, 2022 4:58 pm

I switched my ISP at home and now it changes public IP once a day.
three of my remote Mikrotik boxes had rules whitelisting my home IP, and now I have to manually edit then.
I know I can make a script on my home box to detect the IP changes and update its rules, but how can i do the same on the remote boxes?
The remote boxes need to know the changes on my home to update their rules.
Any advise?
Thanks!
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: DDNS Update IP rule on remote router  [SOLVED]

Mon Nov 14, 2022 6:26 pm

You didn't write what exactly you have. If it's some firewall rule, you can use address list with hostname.
 
DotTest37
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Sun Oct 06, 2013 10:01 pm

Re: DDNS Update IP rule on remote router

Mon Nov 14, 2022 6:48 pm

You didn't write what exactly you have. If it's some firewall rule, you can use address list with hostname.
I have firewall filter rule.
specifically an input rule that allows my home external IP.
How often does the address list refresh the resolved address?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: DDNS Update IP rule on remote router

Mon Nov 14, 2022 6:53 pm

It uses TTL from DNS record.
 
DotTest37
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Sun Oct 06, 2013 10:01 pm

Re: DDNS Update IP rule on remote router

Mon Nov 14, 2022 6:57 pm

It uses TTL from DNS record.
Testing now, I set a 60 sec TTL and changed my record. I
I will test through the day and report back.
 
DotTest37
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Sun Oct 06, 2013 10:01 pm

Re: DDNS Update IP rule on remote router

Mon Nov 14, 2022 8:07 pm

Worked perfectly. I added a new public DNS record with TTL 60 sec and I'm using that from Mikrotik.
The DNS record is updated with a sh script that I have running inside a Linux box at home.
Mikrotik is checking the record every 60 secs and updating the address list.
Thanks a lot for the good advise.

Who is online

Users browsing this forum: GoogleOther [Bot] and 23 guests