summaryrefslogtreecommitdiff
path: root/roles/install_openvpn/files/mullvad-up.sh
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-18 15:13:27 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-18 15:13:27 +0100
commit0fbee3f86b0f92f55193556945b82d51cde6d5a7 (patch)
tree2c276aa4f2ecec0bc179340bc501f48173c81453 /roles/install_openvpn/files/mullvad-up.sh
parenteb9f51f61817043d5fb3609fad922c48f84b887d (diff)
updated setup_fastd.yml
added features: - configure_sysctl - install_openvpn
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