Community discussions

MikroTik App
 
User avatar
scottvd
newbie
Topic Author
Posts: 31
Joined: Wed Oct 26, 2005 3:50 am
Location: Santa Cruz, CA

Validate Dynamic IP: Port Knock or other?

Mon Dec 22, 2014 2:06 am

I'd like to script a MT with a dynamic public IP to validate it's IP with another MT router for access to certain otherwise closed ports. Is it possible to issue a port knock from a MT script? Or is there another clever way to continually update one MT's dynamic IP into an address list of another?

Thanks in advance,
Scott
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Validate Dynamic IP: Port Knock or other?

Mon Dec 22, 2014 8:53 am

I am using dynamic dns script for ip addresses update for domain name registered at dnsexit service. The other routers are just making regular dns resolution and update the record in the address list. And this is used in firewall rules.
 
User avatar
jacekes
Member Candidate
Member Candidate
Posts: 167
Joined: Tue Aug 30, 2011 9:34 am
Location: Poznan, Poland
Contact:

Re: Validate Dynamic IP: Port Knock or other?

Mon Dec 22, 2014 1:41 pm

It's possible to knock a TCP port from Mikrotik.
Use /system telnet <destination IP> port=<port number>
Unfortunately there's no way to execute it with a short timeout.
 
User avatar
scottvd
newbie
Topic Author
Posts: 31
Joined: Wed Oct 26, 2005 3:50 am
Location: Santa Cruz, CA

Re: Validate Dynamic IP: Port Knock or other?

Mon Dec 22, 2014 6:35 pm

Thank you gents for the replies, looks like the DynDNS is a simple solution that we'll use. Merry Christmas!

(:
Scott

Who is online

Users browsing this forum: girishg and 160 guests