wheelybird / openvpn-server-ldap-otp

A dockerised OpenVPN server using LDAP for authentication, with optional 2FA via Google Authenticator
MIT License
171 stars 72 forks source link

Long list of IPs for Routes #44

Open StanTowers opened 3 years ago

StanTowers commented 3 years ago

Hi, I am having troubles incorporating a long list of IPs to define routes with net_gateway without butchering the my docker-compose file. I tried with an env file, but I am not sure how the variable is supposed to be formatted. I want to put the IP ranges from Zoom into it.

https://support.zoom.us/hc/en-us/articles/360053610731-VPN-Split-Tunneling-Recommendations

docker-compose file:

version: "3" services: wireguard: image: wheelybird/openvpn-ldap-otp:latest container_name: openvpn restart: unless-stopped cap_add:


env file:

ROUTES=3.21.137.128 255.255.255.128 net_gateway,3.22.11.0 255.255.255.0 net_gateway,3.23.93.0 255.255.255.0 net_gateway, and so on


Is this doable?

wheelybird commented 3 years ago

Hi. Routes are a CSV of network netmask, for example 172.16.10.0 255.255.255.0,172.17.20.0 255.255.255.0. So in your example you need to remove all occurrences of net_gateway. That's a long list of IPs, so I can see why you don't want them in docker-compose.