F
F
FinEkat2019-03-15 22:22:30
openvpn
FinEkat, 2019-03-15 22:22:30

Setting up an OpenVPN server with two gateways?

There is a computer where there is an openVPN server and 4 interfaces:
eth0 - locale from where they connect to the openVPN server (network - 192.168.77.0/24; ip - 192.168.77.1)
eth1 - provider_1 (gateway - 10.75.15.1)
eth2 - provider_2 (gateway - 10.84.95.1)
tun0 - accordingly openVPN itself (10.0.0.0/24)
When I connect to the server, the Internet traffic goes through eth1. And I want some users to go through eth1, and others through eth2.
How to do it?
Spent half a day searching.
You are the last hope!
And sorry for the vagueness and inaccuracy.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-03-16
@FinEkat

This is called policy-based routing or PBS, configured using iproute2
https://habr.com/ru/post/108690/

K
ky0, 2019-03-15
@ky0

Separate users into different ranges of addresses and in iptables resolve routing accordingly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question