summaryrefslogtreecommitdiffstats
path: root/vpn-connect
diff options
context:
space:
mode:
Diffstat (limited to 'vpn-connect')
-rwxr-xr-xvpn-connect10
1 files changed, 10 insertions, 0 deletions
diff --git a/vpn-connect b/vpn-connect
new file mode 100755
index 0000000..692310e
--- /dev/null
+++ b/vpn-connect
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+vpnc tu.conf
+
+ip route delete default dev vpntun0
+ip route add default via 192.168.4.1 dev eth0
+
+for i in 128.130.0.0/15 192.35.240.0/24 193.170.3.0/24 193.170.72.0/21; do
+ ip route add $i dev vpntun0
+done