kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.73k stars 2.39k forks source link

Prevent to get always a new container IP after restart #705

Open nextcloudfan opened 2 years ago

nextcloudfan commented 2 years ago

IHI,

installed the container but after every reboot this container gets a new IP. Can this be stopped an a static IP assigned? Otherwise I have to update my firewall after every singel restart of the server.

I already created the env variable IP in Portainer and entered a IP there, but with no success. After every restart of the server, the container IP changes