vpn: load tun in case of openvpn
This commit is contained in:
parent
ea0f4b87c6
commit
6892c37d35
1 changed files with 1 additions and 0 deletions
1
vpn.sh
1
vpn.sh
|
@ -19,6 +19,7 @@ case "$1" in
|
|||
server*)
|
||||
f=/etc/openvpn/${1}.conf
|
||||
if [ -f "$f" ]; then
|
||||
sudo modprobe tun
|
||||
sudo openvpn --config ${f}
|
||||
else
|
||||
echo "Config file $f is missing"
|
||||
|
|
Loading…
Add table
Reference in a new issue