Actualiser namespaced-openvpn-deluge.sh

This commit is contained in:
2026-01-21 15:30:37 +01:00
parent d8a4c3b863
commit ede7ff19cc
+6
View File
@@ -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