docker-openvpn icon indicating copy to clipboard operation
docker-openvpn copied to clipboard

Add support for management interface

Open kylemanna opened this issue 11 years ago • 3 comments

Add support for the OpenVPN management interface either by port forwarding or running docker-enter/nsenter. Drop the status file which is mostly unreadable now

kylemanna avatar Jul 16 '14 15:07 kylemanna

Any update about this feature?

walle89 avatar Jan 18 '18 16:01 walle89

In order to add the management Interface to the openvpn.conf you can use the parameter -e EXTRA_SERVER_CONFIG from the ovpn_genconfig. So, if you want to add the line for the management interface to the openvpn.conf simply run

docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://localhost -e 'management 0.0.0.0 7505'

In order to access the management interface from outside, forward the port form inside the container to the host:

docker run -d -v $OVPN_DATA:/etc/openvpn -p 1194:1194/udp -p 7505:7505 --cap-add=NET_ADMIN kylemanna/openvpn

geri-m avatar Oct 06 '18 18:10 geri-m

I can't get this to work. I've followed the instructions above, and no response from the container

designermonkey avatar Mar 10 '21 16:03 designermonkey