diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-04-02 19:40:46 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-04-02 19:40:46 +0200 |
commit | 355f8c8457863352412c730ba634f431b23091b7 (patch) | |
tree | a6f3ddbd81b8ce641dc26fd47134038110e0667f /vpn-connect | |
parent | 357129d1e8a9ff6883b6dd2ec59ddda69e0f71a3 (diff) | |
download | bin-355f8c8457863352412c730ba634f431b23091b7.tar.gz bin-355f8c8457863352412c730ba634f431b23091b7.tar.xz |
vpn-connect: Use openconnect instead of vpnc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'vpn-connect')
-rwxr-xr-x | vpn-connect | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vpn-connect b/vpn-connect index cf1a764..80a31e6 100755 --- a/vpn-connect +++ b/vpn-connect @@ -1,9 +1,11 @@ #!/bin/bash -vpnc --password-helper "$HOME/bin/vpn-getpass" tu.conf +#vpnc --password-helper "$HOME/bin/vpn-getpass" tu.conf + +vpn-getpass | openconnect -u e1125452@student.tuwien.ac.at --authgroup TU_getunnelt --passwd-on-stdin -b -i vpntun0 vpn.tuwien.ac.at ip route delete default dev vpntun0 -ip route add default via 192.168.4.1 dev eno1 +ip route add default via 192.168.4.1 dev br0 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 |