Actualiser namespaced-openvpn-deluge.sh
This commit is contained in:
@@ -8,6 +8,9 @@ fi
|
||||
|
||||
function start()
|
||||
{
|
||||
# Enable IP Forwarding
|
||||
sysctl -q net.ipv4.ip_forward=1
|
||||
|
||||
# 'protected' network namespace created & connected to openvpn VPS (thanks to python script):
|
||||
./namespaced-openvpn --config /home/cruiser/openvpn-files/delugevpn.ovpn &!
|
||||
|
||||
@@ -47,6 +50,9 @@ function stop()
|
||||
|
||||
# Remove from disk 'protected' network namespace DNS configuration:
|
||||
rm -r /etc/netns/protected
|
||||
|
||||
# Remove IP Forwarding
|
||||
sysctl -q net.ipv4.ip_forward=0
|
||||
}
|
||||
|
||||
case "${1}" in
|
||||
|
||||
Reference in New Issue
Block a user