wfg / docker-openvpn-client

OpenVPN client with killswitch and proxy servers; built on Alpine
MIT License
353 stars 107 forks source link

Add VPN IP to /etc/hosts before starting openvpn #30

Closed wt4smith closed 2 years ago

wt4smith commented 3 years ago

You already resolve the hostname of the VPN service. A one line change appending this resolution to /etc/hosts bypasses the need for messing around to resolve killswitch - DNS conflict.

wfg commented 3 years ago

You're referring to getting around the DNS server in SUBNETS requirement when using the kill switch, right? That's a pretty good idea.