Help with portforwarding from vpn
Hello all,
I have a mikrotik router that is connected to a cloud server(vpn server) via vpn (l2tp).
I'm trying to access a nvr behind the router from a cloud server:
cloud server (vpn server) -> router vpn client ip -> nvr ip on ethernet1
I've done this before with a lot of trial and error and of course I did not save the configuration then. I'm doing this since my internet provider doesn't allocate an external ip address for my router.
Any help is greatly appreciated !
Posted May 4, 2019, 12:35 PM UTC
25
Do you have static routes setup on the vpn cloud server?
no, I was trying to achieve this via port forwarding, do you suggest using routing instead ?
You don’t seem to understand.
You need to port forward via the vpn gateway and static route to your NVR.
If you only set up a port forward, the vpn gateway won’t know where to send the traffic and it’ll go no where.
If L2TP tunnel interfaces have addresses configured properly, the routes should appear automatically as connected routes.
That’s a maybe.