summaryrefslogtreecommitdiffstats
path: root/vpn-connect
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-11 13:03:54 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-11 13:03:54 +0200
commita9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab (patch)
tree3262e1dbda911fc32e156de213af574f326b4794 /vpn-connect
parent66f84afc20c5bb627ec5979bd9b3e8b144c3419d (diff)
downloadbin-a9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab.tar.gz
bin-a9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab.tar.xz
lots of new stuff and misc changes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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