After WAN IP change, old WAN ip still is used in OpenVPN client exports

Started by Manny P, January 02, 2025, 04:21:18 PM

Previous topic - Next topic
Hello all,

I have changed the WAN IP of my Opnsense and all is working well except that when I export an existing users VPN certificate from OpenVPN the .ovpn file still has the old WAN IP address. In the management interface (ui/openvpn/export)I have an option to enter a new "hostname" but there is no way to save it.

Currently I have to manually edit the exported ovpn files to update it to the new WAN IP.

Does anyone know how to change what the exports generate so I don't need to manually update them going forward?

Thanks. MP.