Hi there,
I am still a beginner, so please bear with me
I am running a Proxmox server and using OpenVPN to access it remotely. Everything was fine when suddenly OpenVPN wouldn't connect anymore. After checking some logs, it was clear that my server was not responding to OpenVPN, which was odd because the services running on the server were still active and functioning well.
So, after some troubleshooting, I noticed that the IP address of the location where the server is had changed. Now, my new objective is to change the IP address in OpenVPN and (I think) create a new user with this IP address. But, as I am still new to all this, I have some questions:
1. Is this the proper approach?
2. Is there a guide on how to change the IP address? I have found several solutions, but I want to be completely sure, as I am currently far from the server and don't want to make any mistakes.
Thanks in advance!
Server side IP change
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Thu Apr 04, 2024 5:36 pm
Re: Server side IP change
First of you should use a dynamic dns WAN side. But if it's local ip that has changed you wanna make a static ip internally. Probable through the dhcp server on your router. Or just set an static ip to the host.
Ofc not everybody want to go the long and complicated route. But setting up an pfsense/opnsense router would be ideal
Cheers
Ofc not everybody want to go the long and complicated route. But setting up an pfsense/opnsense router would be ideal
Cheers
-
- OpenVpn Newbie
- Posts: 1
- Joined: Thu Nov 07, 2024 3:39 am
Re: Server side IP change
Updating the OpenVPN configuration with the new IP address is the proper approach; you just need to make sure that the server is properly listening on the new IP.
To change the IP address, you'll typically need to modify the OpenVPN server configuration file (usually found in /etc/openvpn/) to update the "local" directive with the new IP address and then restart the OpenVPN service; consult the official OpenVPN documentation for detailed steps.
To change the IP address, you'll typically need to modify the OpenVPN server configuration file (usually found in /etc/openvpn/) to update the "local" directive with the new IP address and then restart the OpenVPN service; consult the official OpenVPN documentation for detailed steps.