summaryrefslogtreecommitdiff
path: root/roles/install_openvpn/files/mullvad-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_openvpn/files/mullvad-up.sh')
-rwxr-xr-xroles/install_openvpn/files/mullvad-up.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/install_openvpn/files/mullvad-up.sh b/roles/install_openvpn/files/mullvad-up.sh
new file mode 100755
index 0000000..441f857
--- /dev/null
+++ b/roles/install_openvpn/files/mullvad-up.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+#/sbin/ip route replace default via $4 table ffmyk
+sleep 3
+echo Reroute via $4
+ip route replace 0.0.0.0/1 via $4 table ffmyk
+ip route replace 128.0.0.0/1 via $4 table ffmyk
+
+exit 0