OpenVPN Connect
-
Good afternoon friends!
I need your advice again.
There are two machines with Pfsense.
OVPN server is configured on one, OVPN client on the other.
On Pfsense, two links are connected to the server, one gigabit, the other 20Mb/s; the connection is configured for both addresses.
Tell me how to set up automatic client switching to another address?
That is, link # 1 fell - the client switched to link # 2, link # 1 (gigabit) went up - the client switched to it.
Are there any solutions in Pf? -
@ilya-v
The most simple way to switch to the other on connection failure is to add a second remote line to the client config. You can do this in the custom options like this:remote <IP / hostname> <port> <protocol>
e.g.
remote 1.1.1.1 1194 udp4However, with this the client will not switch back to link1 as long as link2 is available or restart the service.
-
@viragomann Is it possible to somehow set the connection priority?
-
@ilya-v
The first server in the config file (this is that one youve entered in the GUI) is probed first. If it replies the client establishes the connection to it.
But there is not option that it drops the connection to the secondary and reconnects to the primary when the link comes back. -
@viragomann thanks for answers!