r/mikrotik•
dcc88

Help with portforwarding from vpn

Hello all,

network visualization

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
djgizmoMTCNA, MTCRE•

Do you have static routes setup on the vpn cloud server?

1
dcc88OP•

no, I was trying to achieve this via port forwarding, do you suggest using routing instead ?

1
djgizmoMTCNA, MTCRE•

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.

1
cruton64MTCINE, MTCIPv6E•

If L2TP tunnel interfaces have addresses configured properly, the routes should appear automatically as connected routes.

1
djgizmoMTCNA, MTCRE•

That’s a maybe.

1