pfSense OpenVPN client: server or host address using alias
-
I have three outgoing OpenVPN client connections on my WAN interface to my VPN provider. They are bundled together in a gateway group. I'd like to periodically change the OpenVPN client "server or hostname" value for these VPN connections based on remote server load and availability. Using my VPN provider's API, I can pull down a list of n servers with the lightest load, convert the FQDNs returned to IPs and turn them into firewall aliases.
I've checked and verified that it's not possible to use an alias in the "server or host address" field of the pfSense OpenVPN client configuration, so I am wondering if there's another way to achieve that same end result.
Could I map static IPs hard-coded in my OpenVPN client configuration to the alias entries - maybe using virtual IPs? Is there a better way?