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

Allow to omit OVPN_NATDEVICE in iptables command #659

Open john8329 opened 3 years ago

john8329 commented 3 years ago

In my use case I'd like to NAT to all the available interfaces without having to specify them. Currently if I leave the option blank it defaults to 'eth0' in ovpn_run:67.

It would be useful to:

john8329 commented 3 years ago

By the way, a workaround at the moment is specifying an environment variable as OVPN_NATDEVICE=eth+

larssb commented 2 years ago

@john8329 I think the workaround is enough. I have no ties to the project though. However, consider a PR for this - docs on the workaround.