d3vilh / openvpn-ui

Web User Interface for OpenVPN
MIT License
169 stars 39 forks source link

127.0.0.1:53 misbehaving #54

Open reamasesa opened 4 months ago

reamasesa commented 4 months ago

Hi,

I have a vague recollection of this being resolved somehow but for the life of me, I can't remember how :(

image image

Thanks

d3vilh commented 4 months ago

Hi @reamasesa it happens when UI can't connect to OpenVPN Server management console.

It should listen on all the openvpn container interfaces, so Ui will be able to restart sessions and see active connections.

Please check your server.conf for the management 0.0.0.0 2080 line.

reamasesa commented 4 months ago

Hi,

It's already configured like this as default

image

d3vilh commented 3 months ago

this error, in general, means OpenVPN UI can't find management interface by hostname "openvpn" which is internal to Docker environment. First is to check that openvpn container is running, then try to access it via openvpn-ui container with a hostname:

mrphil@d3pi1:~ $ sudo docker exec -it --user=root openvpn-ui bash -c "nc -zv openvpn 2080"
openvpn (172.26.0.2:2080) open
mrphil@d3pi1:~ $

and for sure, when you are changing management port of OpenVPN server, you have to restart server or its container to apply configuration.