Configure OpenVPN HA opnsense cluster
In this LAB I will be creating OpenVPN SSL Peer to Peer connection.
The Architecture
------ WAN ------
| |
PF1 -- sync -- PF2
| |
----- LAN -------
WAN: 192.168.0.0/24 (Bridgelt)
LAN: 192.168.20.0/24
SYNC: 192.168.30.0/24
opn01:
WAN 192.168.0.28
LAN: 192.168.20.28
SYNC:192.168.30.28
opn02:
WAN 192.168.0.29
LAN: 192.168.20.29
SYNC:192.168.30.29
Configurate the OpeVPN service
Got to VPN > OpenVPN > Wizards
If you ulodad your certificate seledt that in the drop doew menu or select Add new Certificate to generate a new one.
Edit the Adwanced Configuration:
Configurate NAT Rules to HA
Go to Firewall > NAT > Outbound
and clone the manul LAN Rule
Enable Connection from OpenVPN to master and slave
In default there in no rout to the salve nod.
Go to Firewll > Aliases > Add
and create alias for CARP members:
Then go back to Firewall > NAT > Outbound > Settings
and create a new rule: