Nyr / openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
MIT License
19.1k stars 4.9k forks source link

Change interface name #997

Closed enboig closed 1 year ago

enboig commented 1 year ago

After using your script, I changed my server (moving disks) and network interface name was changed (en01 -> eno1). Now openvpn don't accept connections. What is the easiest way to solve this?

Nyr commented 1 year ago

My installer does not reference interface names anywhere.

enboig commented 1 year ago

I supposed it added some iptables rules to make openvpn work. I don't know if there is some sort of reinstall which keep created clients/certificates

Nyr commented 1 year ago

The iptables used do not reference an interface either, but of course they need to be set up.

You can try purging the previously copied configuration and packages, using my installer to set up everything and then copying your old configuration over the new setup overwriting the configuration files and certificates.