Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ift:vpn:university [2022/09/28 23:27] (current)
kcach created
Line 1: Line 1:
 +====== The University VPN ====== 
 +Here you find instructions how to connect with University Virtual Private Network (VPN) 
 +===== Linux configuration ===== 
 +<​note>​Following instruction works for Ubuntu 22.04</​note>​ 
 +  * Install openconnect version **8.x** (there are some problems with 9.x) 
 +<code bash> 
 +# Check openconnect version 
 +apt policy openconnect 
 +# Install if version matches requirements 
 +sudo apt-get install -y openconnect 
 +</​code>​ 
 +  * Create bin directory in your home dir 
 +<code bash> 
 +mkdir ~/bin 
 +</​code>​ 
 +  * Add newly created dir to PATH variable 
 +<code bash> 
 +case "​$SHELL"​ in 
 +  "​zsh"​) DOTFILE="​~/​.zshrc"​ ;; 
 +  "​bash"​) DOTFILE="​~/​.bashrc"​ ;; 
 +  "​ksh"​) DOTFILE="​~/​.kshrc"​ ;; 
 +esac 
 +echo '​export PATH="​$PATH:​~/​bin"'​ >> $DOTFILE 
 +source $DOTFILE 
 +</​code>​ 
 +  * Install required packages 
 +<code bash> 
 +sudo apt-get install python3-pip 
 +pip3 install https://​github.com/​dlenski/​gp-saml-gui/​archive/​master.zip 
 +</​code>​ 
 +  * Create script in **~/​bin/​vpn-uwr** with following content 
 +<code bash> 
 +#!/bin/bash -xv 
 +eval $( gp-saml-gui --gateway vpn.uwr.edu.pl --clientos=Windows --allow-insecure-crypto ) 
 +echo "​$COOKIE"​ | sudo openconnect --protocol=gp -u "​$USER"​ --os="​$OS"​ --passwd-on-stdin "​$HOST"​ & 
 +</​code>​ 
 +  * Set execute privileges  
 +<code bash> 
 +set +x ~/​bin/​vpn-uwr 
 +</​code>​ 
 +  * Run our script from terminal **vpn-uwr** to connect with University VPN - the window with University login page should appear - after successful login, connection will be established.
ift/vpn/university.txt · Last modified: 2022/09/28 23:27 by kcach
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0