Community discussions

MikroTik App
 
Kapetan
just joined
Topic Author
Posts: 14
Joined: Wed Dec 31, 2014 3:02 pm

dyndns + port forwarding: inside/outside same url

Wed Dec 31, 2014 3:37 pm

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
 
Gervw
just joined
Posts: 7
Joined: Tue Dec 30, 2014 12:46 pm

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

Fri Jan 02, 2015 10:06 pm

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.
 
Kapetan
just joined
Topic Author
Posts: 14
Joined: Wed Dec 31, 2014 3:02 pm

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

Sat Jan 03, 2015 3:54 pm

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.
 
Kapetan
just joined
Topic Author
Posts: 14
Joined: Wed Dec 31, 2014 3:02 pm

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

Sat Jan 03, 2015 8:16 pm

Good idea, it works perfectly! :)

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