How to link up, a dnsalias to rb

hi,

I want to link up a dynamic dns alias to my router,

most routers have a function for it. where do i set it up is routeros?


]Thanks

Here is a script we support for RouterOS:

http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_ChangeIP.com

Since we love RouterOS we will support it here in the forums. There are others in the wiki if you want to try them.

holly moley.

looks complicated. it not just one or two lines.

I will look at it some other time, when i got more time

Thanks though

If you just want to update a name you can use this:

/tool dns-update name=“myhostname.example.tld” address=“YOUR IP ADDRESS” key-name=“YOURUSERID” key=“YOURPASSWORD”

The extra few lines are the management pieces, only sending updates when necessary, etc. It’s not that hard, just paste the script in, setup your userid and password, and run it.

Sam

Ok now.

how do i add a firewall rule to allow remote desktop port through the router?

http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT#Port_mapping

Thanks fewi


/ip firewall nat add chain=dstnat dst-port=1234 action=dst-nat protocol=tcp to-address=192.168.1.1 to-port=1234

ok now how do i add it for remote desktop?

cause if i change protocol to rpd and port to 3389 (which ever one it is) it says cannot have port with this protocol?

That’s because RDP (not rpd) is still a protocol running on top of TCP, running on port 3389. Don’t change the protocol name from TCP.

So all i need to do for it to work is add this to terminal:

/ip firewall nat add chain=dstnat dst-port=3389 action=dst-nat protocol=tcp to-address=192.168.1.5 to-port=3389

then go to a remote desktop and the put in my isps dynamic IP?

then it should work?

Bump!!!

i tried that script.


but it dont work.

im using dyndns.org

and on other routers they have:
username:
password:
domain: so here i would put “camelotmining”
host: and here i would put “dyndns.org


in the script below it combines host and domain?


global ddnsuser \"*******\"\r\
    \n:global ddnspass \"*****\"\r\
    \n:global ddnshost \"camelotmining.dyndns.org\"\r\
    \n:global ddnsinterface \"pppoe-out1\"\r\

is that right?

What could i be doing wrong?