-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify running OpenVPN as unprivileged user
- Loading branch information
Patrick Schleizer
committed
Dec 29, 2015
1 parent
e497554
commit 9148278
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## This file is part of Whonix. | ||
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net> | ||
## See the file COPYING for copying conditions. | ||
|
||
#tunnel ALL=(ALL) NOPASSWD: /usr/bin/ip_unpriv | ||
#Defaults:tunnel !requiretty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## This file is part of Whonix. | ||
## Copyright (C) 2012 - 2015 Patrick Schleizer <adrelanos@riseup.net> | ||
## See the file COPYING for copying conditions. | ||
|
||
[Service] | ||
|
||
## Only works if you comment in the following. | ||
|
||
#ExecStartPre=openvpn --rmtun --dev tun0 | ||
#ExecStartPre=openvpn --mktun --dev tun0 --dev-type tun --user tunnel --group tunnel | ||
|
||
#ExecStopPost=openvpn --rmtun --dev tun0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
## This file is part of Whonix. | ||
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net> | ||
## See the file COPYING for copying conditions. | ||
|
||
## This only works if you enable the sudoers exception in configuration file | ||
## /etc/sudoers.d/tunnel_unpriv. | ||
|
||
exec /bin/ip "$@" |