Answer the question
In order to leave comments, you need to log in
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
This is called policy-based routing or PBS, configured using iproute2
https://habr.com/ru/post/108690/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question