S
S
Sum77772015-04-23 12:24:46
VPN
Sum7777, 2015-04-23 12:24:46

How to set up a VPN on mikrotik so that you can access a remote network when it is not the main gateway itself?

There is a remote network 192.168.2.0, Mikrotik is configured in it as a vpn server to which the main network 192.168.1.0 is connected. Routing from 192.168.1.0 to 192.168.2.0 works fine. There was a need to transfer the network 192.168.2.0 to another gateway so that the Internet would go separately, but when Mikrotik ceases to be the main gateway, access from 192.168.1.0 to 192.168.2.0 automatically disappears. Please tell me how to configure Mikrotik so that the 192.168.2.0 network is accessible through it even if it is not the main gateway?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rsa97, 2015-04-23
@Sum7777

Option 1. On all computers in the network, register a static route to 192.168.1.0.
Option 2. Register it the same, but on a new gateway.
Option 3. Set up OSPF on the new gateway and Mikrotik, let them sort it out themselves.

D
Dmitry, 2015-04-24
@hempy80

On the new main gateway, add a rule to MANGLE that will mark (mark-routing) traffic to the remote network, add the 0.0.0.0 route for marked traffic to the routing table, specify Mikrotik as the gateway, the metric should be less than the main default gateway.

S
Sergey, 2015-04-24
@Weidmann

Mikrotik(192.168.1.254):
/ip route> add dst-address=192.168.2.0/24 gateway=192.168.2.254
Gateway(192.168.2.254):
/ip route> add dst-address=192.168.1.0/24 gateway=192.168 .1.254
Should work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question