Commit 62f04014 authored by Daniel Stan's avatar Daniel Stan

udsvpn

parent 787b5a66
#!/bin/bash
# Openconnect command-line script for connecting to UCI's VPN servers
# from Debian-Ubuntu-derived Linux distro's. More info at
# http://www.socsci.uci.edu/~jstern/uci_vpn_ubuntu/ubuntu-openconnect-uci-instructions.html
#
# This script adapted from David Schneider's great page on github at
# https://github.com/dnschneid/crouton/wiki/Using-Cisco-AnyConnect-VPN-with-openconnect
# and with help from OIT's Linux OpenConnect instructions at
# http://www.oit.uci.edu/kb/vpn-linux/
#
# Jeff Stern
# 10/21/2015
# possible values for VPNGRP:
# Default-WebVPN
# Merage
# MerageFull
# UCI <--- this will use the VPN address only for connections to UCI. all other connections
# will use your outside address
# UCIFull <--- this will use the VPN address for all connections
VPNGRP=SSLVPNClient
# your ucinetid (all lower-case)
VPNUSER=dast008
# =============================================================================
# you shouldn't have to change anything below here
VPNURL=https://asa1.uni-saarland.de
VPNSCRIPT=/usr/share/vpnc-scripts/vpnc-script
sudo openvpn --mktun --dev tun1 && \
sudo ifconfig tun1 up && \
sudo /usr/sbin/openconnect -s $VPNSCRIPT $VPNURL --user=$VPNUSER --authgroup=$VPNGRP --interface=tun1
sudo ifconfig tun1 down
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment