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.62k stars 2.37k forks source link

Update ovpn_genconfig #629

Closed fuyunhehe closed 3 years ago

fuyunhehe commented 3 years ago

openvpn.conf chage 1194 port to $OVPN_PORT

kylemanna commented 3 years ago

What's the motivation? The port is easily overridden by docker port mapping.

The purpose of the OVPN_PORT value is to communicate the external port mapping to generate configurations. It's expected that the openvpn daemon always listens on port 1194 in the container and docker manages the port mapping.