Fri Jun 06, 2025 1:05 pm
Hi,
first of all, the best (most correct way to do what you want) is to configure the server to accept connections from your VPN subnet. I'm going to assume that's not possible for some reason.
Second, just an idea. If you only rarely need to access the given server, Mikrotik's SSH server actually provides port forwarding, which would make your connection appear to come from the local network with the minimum amount of effort on your part. This is of course not a good long-term solution, but for some occasional admin stuff it might suffice.
Third, it's the server side of the connection that assigns ip addresses and so adjustments must be made on the server side of things: the usual way to do this is to simply have the OpenVPN server allocate addresses from the local subnet (on Mikrotik, it's even possible to use the same address pool for this). You will have to set arp mode to proxy-arp on the local interface.
Fourth - it's actually possible to do this with masquerading, but it is also done on the server side, and is more complex and generally less desirable then the previous option. So while it's possible, I wouldn't go that way.