S
S
Stanislav Smirnov2018-02-03 08:22:15
linux
Stanislav Smirnov, 2018-02-03 08:22:15

How to bridge through NAT?

Good day, dear ones. I have a task to make local network resources available from outside.
Available:
1.Mikrotik
2.Linux Debian VPS
OpenVPN is running on the VPS with authorization by certificates. On Mikrotik client.
If I run an OpenVPN client on a PC, I can easily ping the server (VPS), everything works. If I run the client on Mikrotik, I ping the server without problems, the microtik is used as a gateway on the network.
Details:
local network behind NAT 192.168.0.0
OpenVPN network 192.168.1.0
VPS has one network interface looking to the Internet.
How to do and what is required in order to combine the network 192.168.0.0 and 192.168.1.0 into a bridge, so that I can connect to the VPS, for example, from a laptop (to the network 192.168.1.0), and have access to all network resources 192.168. 0.0.
At the moment: An
OpenVPN server is configured, Mikrotik connects to it, but pings go to 192.168.1.1 only from microt, it does not distribute routes to the network.
Here, as I understand it, setting up both Mikrotik and the server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Semenenko, 2018-02-03
@squard72

You need to make a route to the server on Mikrotik, on the server a route to your local network.
On Mikrotik:
dst - 192.168.1.0/24
gw - vpn interface to the server
On the server:
dst - 192.168.0.0/24
gw - vpn interface to the client
Just don't remember OpenVPN is it a VPN with interfaces or not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question