Page 1 of 1

dyndns + port forwarding: inside/outside same url

Posted: Wed Dec 31, 2014 3:37 pm
by Kapetan
I have a home LAN with a DLink AP, with several wired (PC, NAS, printer and IP camera) and wireless (smartphones, tablets). Evevrything is working fine, since I have set up PPPoE (ADSL) internet access, DHCP and so on succesfully. I also wanted to watch my IP camera from the public internet. So I successfully set my dyndns account and also set port forwarding. It works wonderfully.
So it almost works like a "normal" router. The only difference is that when I have a device (e.g. my smart phone) on the LAN it will not find (able to connect to) the IP camera. Obviously, in the smart phone I use the "mydomain.dyndnsdomain.tld" format. With "normal" routers it works. However with Mikrotik It is not. Can someone help me?

Here is my NAT setting:

[admin@MikroTik] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; default configuration
chain=srcnat action=masquerade to-addresses=0.0.0.0 out-interface=ADSL Gaal ut

1 chain=dstnat action=dst-nat to-addresses=192.168.1.90 to-ports=80 protocol=tcp
in-interface=ADSL Gaal ut dst-port=80

I suspect the problem is that the dst-nat rule only applies toin-interface "ADSL Gaal ut" which is the PPPoE ADSL connection. Shall I add an additional rule? If yes what?

I have RB2011iL-RM router/switch with router OS 6.1

Re: dyndns + port forwarding: inside/outside same url

Posted: Fri Jan 02, 2015 10:06 pm
by Gervw
I am not sure of how much use my response would be, but have you tried adding a static entry into your RB dns?
This would need to point to the IP camera.

I did a similar thing on our office network but then I used the DNS server of our Windows server to do that. I added "mydomain@dyndns.org" to the DNS server as a site and so was able to use "mydomain@dyndns.org" inside and outside of our network.

If anything I hope I have given you some food for thought.

Re: dyndns + port forwarding: inside/outside same url

Posted: Sat Jan 03, 2015 3:54 pm
by Kapetan
Thanks, it works!

I wonder how it works in other, legacy "soap box" routers. It does work in all of them... There you do not have the option to mess with DNS.

Re: dyndns + port forwarding: inside/outside same url

Posted: Sat Jan 03, 2015 8:16 pm
by Kapetan
Good idea, it works perfectly! :)

I am just wondering, how this thing work in commercial (soap box) routers?