A
A
Artem Matyashov2019-07-31 12:22:22
Computer networks
Artem Matyashov, 2019-07-31 12:22:22

How to set up Mikrotik with a replacement gateway?

There are 5 OpenVPN servers. Is it possible on a mikrotik device with, say, 10 LAN ports to configure it so that all traffic from ports 1-2 is forwarded to VPN1, from ports 3-4 to VPN2, from ports 4-5 to VPN3, and so on?
The task is to ensure that 10 computers that are connected either directly to the router or through a switch access the Internet via VPN, and no more than two computers per server. All settings must be on the router. The computer itself should not know anything that it accesses the Internet through a VPN ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai, 2019-07-31
@nevzorofff

1. Create a new VRF
2. Create a bridge, it has two ports
3. Attach an IP address to the bridge
4. This bridge and one VPN interface in VRF from step 1
5. Set the bridge IP address on the computers as the main gateway.
6. In VRF add default route to VPN
Recipe repeat 4 more times.

T
TyzhSysAdmin, 2019-07-31
@POS_troi

- Scatter ports across different bridges and create the required amount of src-nat on the required vpn interfaces, specifying the required in-
interfaces - Scatter the IP machines in the address-list and create the required number of src-nat on the required vpn
interfaces with the required adress-list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question