-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
enhancementnot-a-bugNot a bug with vpn-slice (although maybe highlighting an issue in other software)Not a bug with vpn-slice (although maybe highlighting an issue in other software)
Description
Currently, vpn-slice requires running as root because it has a subprocess call:
replace_routewhich callsip route replace
Running scripts with root access (even open source) is a sytem risk. By performing a syscall, we give the option to the users to:
- escalate to root (via sudo or otherwise)
- set capability at a coarse/fine level, eg:
setcap cap_net_admin+ep $(which vpn-slice)
The need for writing in /etc/hosts can be eliminated by assigning it a custom group and using sg
Proposal:
Use SIOCADDRT and SIOCDELRT for the ioctl calls
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementnot-a-bugNot a bug with vpn-slice (although maybe highlighting an issue in other software)Not a bug with vpn-slice (although maybe highlighting an issue in other software)