Page 1 of 1

Cameras behind 2 mikrotiks and home router

Posted: Sat Sep 28, 2019 12:53 am
by jakkwb
Hello, I have not messed with customer cameras until now.

Basically, network is laid out like this:
Internet---Mikrotik gateway (nat happens here - everything past is private IPs)---PTP wireless link---2nd Mikrotik (doing DHCP to customers)---Ubiquiti AP---Ubiquiti M5(router mode and NAT)---customers router---Camera (Wanscam)

I need to be able to access customers camera from internet. I have it working plugged into my gateway router using a private IP , I just enter the router IP and the port, and it shows up.

However, accessing the customer camera at his location is not working.

I would love some directions here. Thank you.

Re: Cameras behind 2 mikrotiks and home router

Posted: Sat Sep 28, 2019 9:28 am
by Zacharias
First, do you have access to your last router ?

Re: Cameras behind 2 mikrotiks and home router

Posted: Sat Sep 28, 2019 10:45 am
by pe1chl
Get a camera that connects outbound to some cloud service, where the customer can connect to that cloud service and view/control their camera.
Allowing inbound access to cameras is so 2010...

Re: Cameras behind 2 mikrotiks and home router

Posted: Sat Sep 28, 2019 11:48 am
by Zacharias
I agree with pe1chl. This is the easiest thing you can do, but since we talk about networking i didn't mention it.

Re: Cameras behind 2 mikrotiks and home router

Posted: Sat Sep 28, 2019 12:27 pm
by pe1chl
It appears that the Wanscam cameras can also do it.
This will work without modification to your network, and is the way to go when you have such a multiple-NAT network.

Re: Cameras behind 2 mikrotiks and home router

Posted: Sun Sep 29, 2019 2:28 am
by jakkwb
Well, I understand everyone's recommendations to cloud serve this, it probably would be an easier solution. However, I really want to know how to make this work like I originally asked for future reference.

Re: Cameras behind 2 mikrotiks and home router

Posted: Sun Sep 29, 2019 11:24 am
by pe1chl
It really isn't practical to have inbound connections in a triple-NAT network like that.
You should at least remove the middle NAT (in the Ubiquiti).

Re: Cameras behind 2 mikrotiks and home router

Posted: Sun Sep 29, 2019 11:41 pm
by jakkwb
Understood. I now have the Ubnt at the remote end bridged instead.

Re: Cameras behind 2 mikrotiks and home router

Posted: Mon Sep 30, 2019 12:44 am
by pe1chl
Then you can setup the usual dstnat to "forward a port" in /ip firewall nat
It may require a /ip firewall filter rule too (not required when you run the default firewall which already handles that).
Of course you need to do that in every NAT router along the path, and it will be difficult to do for more than one user at a time as you can forward each port only to one ultimate destination.

Re: Cameras behind 2 mikrotiks and home router

Posted: Mon Sep 30, 2019 7:33 am
by jakkwb
The only Mikrotik's doing NAT are now my gateway router, and his home router. I am waiting to get his open/forward commands to see if they are correct or not.

Re: Cameras behind 2 mikrotiks and home router

Posted: Mon Sep 30, 2019 7:37 am
by jakkwb
The columns his router shows:

External port, internal port, Internal IP address, protocol, Source IP

example:
15000,15000,10.0.0.10, both, (no source IP entered - is this needed? - if so, which router IP do I put there?

Re: Cameras behind 2 mikrotiks and home router

Posted: Mon Sep 30, 2019 6:03 pm
by anav
Ask in the forum that covers that brand of router??/

Re: Cameras behind 2 mikrotiks and home router

Posted: Tue Oct 01, 2019 4:58 am
by jakkwb
was hoping someone could give me further instructions to get this to work. cannot find posts with similar problem with examples on getting it work.

Re: Cameras behind 2 mikrotiks and home router

Posted: Tue Oct 01, 2019 9:27 am
by pe1chl

Re: Cameras behind 2 mikrotiks and home router

Posted: Wed Oct 02, 2019 2:36 am
by jakkwb
I actually now have it partly working - I can now access the customers camera locally from both his router and my office. However, we still cannot access it from outside of my network. I can access the test camera attached to my gateway router from outside my network, but not his camera.

What am I missing?

Re: Cameras behind 2 mikrotiks and home router

Posted: Fri Oct 04, 2019 8:10 am
by jakkwb
Anyone care to help me on this?