docker-openvpn
docker-openvpn copied to clipboard
Add support for management interface
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
Any update about this feature?
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
I can't get this to work. I've followed the instructions above, and no response from the container