adrelanos / vpn-firewall

Leak Protection (Fail Safe Mechanism) for (Open)VPN
https://www.whonix.org/wiki/Impressum
Other
169 stars 46 forks source link

Use capabilities instead of sudo #30

Closed ghost closed 6 years ago

ghost commented 6 years ago

This PR adds CAP_NET_ADMIN capability to openvpn daemon instead of passwordless access to sudo for tunnel user. It allows for creating, destroying and managing tun devices, setting routing tables, etc. This capability exist only inside running service. Otherwise openvpn binary and tunnel user are totally unprivileged.