Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    pfSense OpenVPN client: server or host address using alias

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 347 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rob51i03
      last edited by rob51i03

      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?

      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.