jonohill / docker-openvpn-proxy

HTTP proxy server which (selectively) tunnels traffic over an OpenVPN connection
MIT License
80 stars 29 forks source link

Stop traffic if VPN is not up #10

Open CHerSun opened 2 years ago

CHerSun commented 2 years ago

I had a few bad attempts, like missing /dev/net/tun device, etc, that showed me, that the traffic through proxy will still be routed even if VPN is not up (using ordinary LAN connection). And that's quite a large security gap - browser connected through proxy have no way to show if VPN is actually up (unless you explicitly go & check your ip).

Is it possible to add an option to stop proxy if VPN is not up?