Community discussions

MikroTik App
 
od3m
just joined
Topic Author
Posts: 14
Joined: Sun Nov 15, 2009 11:11 am

add dyndns adress in firewall

Thu Dec 31, 2009 1:22 pm

hi all,

i want to add a dyndns adress in firewall.

somethig like:
chain=forward action=accept src-address=192.168.1.3 dst-address=sample.dyndns.org <--- thats my problem. ip adress changes, i need to add the dyndns name...

is that possible ?
 
User avatar
DannyZ
Member Candidate
Member Candidate
Posts: 230
Joined: Mon Sep 07, 2009 2:21 pm
Location: Latvia

Re: add dyndns adress in firewall

Thu Dec 31, 2009 1:46 pm

 
od3m
just joined
Topic Author
Posts: 14
Joined: Sun Nov 15, 2009 11:11 am

Re: add dyndns adress in firewall

Thu Dec 31, 2009 2:14 pm

sorry, maybe i described wrong.

for my own dyndns i use this script already, works well.


but now, i need a firewall rule to accept incoming connections from dyndns.

i need to accept incoming connections from:

sample.dyndns.com to port 4130 on my router

but i only can ad ip adresses in firewall (src adsress), not the dyndns name
 
User avatar
DannyZ
Member Candidate
Member Candidate
Posts: 230
Joined: Mon Sep 07, 2009 2:21 pm
Location: Latvia

Re: add dyndns adress in firewall

Thu Dec 31, 2009 2:53 pm

 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: add dyndns adress in firewall

Fri Jan 01, 2010 10:49 pm

but now, i need a firewall rule to accept incoming connections from dyndns.

i need to accept incoming connections from:

sample.dyndns.com to port 4130 on my router

but i only can ad ip adresses in firewall (src adsress), not the dyndns name
Why not run a script periodically that resolves the IP from a hostname and alters the rule if there is a change? This should be fairly easy to do. You can (I am certain) find someone who will program this for a fee. (I have done similar things in the past).
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: add dyndns adress in firewall

Fri Jan 01, 2010 10:55 pm

A scripted solution is even available on the wiki:
http://wiki.mikrotik.com/wiki/Use_host_ ... wall_rules

od3m, if you search the forum for your question you'll find it's something that has come up quite a bit in the past, with the arguments for and against this feature.
 
od3m
just joined
Topic Author
Posts: 14
Joined: Sun Nov 15, 2009 11:11 am

Re: add dyndns adress in firewall

Fri Jan 01, 2010 11:00 pm

thx,
i didnt find this solution in the wiki.
thx for that link.
it does exactly what i want.

i know the security reasons.
but i need this only for one dyndns name i need to resolv. and the source i trust.

so again,
thank you
 
od3m
just joined
Topic Author
Posts: 14
Joined: Sun Nov 15, 2009 11:11 am

Re: add dyndns adress in firewall

Fri Jan 01, 2010 11:08 pm

i thought it would run...
but nothing happens.

resolve hostname doesnt bring any ip´s for hostnames.
i think there´s the mistake
it should or ?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: add dyndns adress in firewall

Fri Jan 01, 2010 11:11 pm

Kind of hard to give an answer without details on your firewall rules and the script as you edited it.
 
od3m
just joined
Topic Author
Posts: 14
Joined: Sun Nov 15, 2009 11:11 am

Re: add dyndns adress in firewall

Fri Jan 01, 2010 11:37 pm

works now !
thx again

Who is online

Users browsing this forum: Bing [Bot], BoraHorza, kormenator and 176 guests