OpenVPN Client Dial Secondary External IP Address
-
HI, Just wondering if it's possible to have an OpenVPN Client automatically connect to a second PFSENSE OpenVPN Server's External IP Address if the first servers IP Address goes down, so I have 2 gateways on the server PFSENSE, can the client be set to dial a second gateway on the same servers hosts if the first one goes down?
-
@braidwood said in OpenVPN Client Dial Secondary External IP Address:
Just wondering if it's possible to have an OpenVPN Client automatically connect to a second PFSENSE OpenVPN Server's External IP Address if the first servers IP Address goes down
Is this one server with two external IPs or two servers?
-
Thanks for the reply @viragomann So the server is 1 Pfsense which has 2 WAN Interfaces to 2 seperate ISP's
-
@braidwood
The question is, if you are running a single server with two external IPs forwarded or are you running two server, one on each IP? -
@viragomann said in OpenVPN Client Dial Secondary External IP Address:
ingle server with two external IP
Sorry, yes, 1 server listening on any interface for incoming clients, but how do i get the client ( on a pfsense as well ) to dial the second ip if the first goes down
-
@braidwood
With a single server you can simply add a second remote line to the client config file with the second IP.
If the client is a pfSense you can enter the line into the advanced options box. -
@viragomann said in OpenVPN Client Dial Secondary External IP Address:
nter the line into the advanced options box.
thanks mate, I'll give this a go
-
@viragomann said in OpenVPN Client Dial Secondary External IP Address:
e you can enter the line into the advanced options box.
Hi, Sorry to bother you, is this in the custom options, would you know where I can find code if this is where I put it
-
remote <IP> <port> <protocol>
You have to enter the correct values for your server.
Edit:
w/o the angle brackets!
e.g.remote 1.1.1.1 1194 UDP
-
@viragomann Awesome, thanks so much for that, I really appreciate your help