TTU VPN: Difference between revisions

From ICO wiki
Jump to navigationJump to search
(17 intermediate revisions by the same user not shown)
Line 15: Line 15:


==Packages==
==Packages==
* clean client http://www.forticlient.com/
* clean client https://www.forticlient.com/downloads
* for MS Windows, TTU preconfigured http://www.ttu.ee/FortiClient.exe
* for MS Windows, [https://portal.itcollege.ee:10443/SslvpnClient.exe IT College client] (requires login beforehand, usually older version than original one from Fortinet)
* Debian packages
* Debian packages
** FortiClient
** FortiClient
Line 33: Line 35:
ldconfig && dpkg --configure -a && apt clean
ldconfig && dpkg --configure -a && apt clean
</pre>
</pre>
* for MS Windows, TTU preconfigured http://www.ttu.ee/FortiClient.exe


==Connecting==
==Connecting==
* use your Uni-ID credentials to login
* use your Uni-ID credentials to login
* Web: https://vpn.ttu.ee:443/
* Web: https://vpn.ttu.ee:443/
* URL in VPN client: '''vpn.ttu.ee'''
* server: '''vpn.ttu.ee'''
* Port: 443
* port: 443
 
'''... in IT College:'''
* use your IT College credentials to login
* Web: https://portal.itcollege.ee:10443/
* server: '''portal.itcollege.ee'''
* port: 10443
 
In IT College there is an option to use SSH tunnel using http://enos.itcollege.ee/ server using your IT College credentials. For convenient usage there is a [[Sshuttle]] (article in Estonian) available for Linux users. This SSH tunnel is available also for students. MS Windows users [https://www.startpage.com/do/search?q=putty+SSH+tunnel can use puTTY]. Also macOS users [https://www.startpage.com/do/search?q=SSH+tunnel+macOS can use SSH tunnel].


=OpenVPN=
=OpenVPN=

Revision as of 16:42, 23 May 2018

Uni-ID

Uni-ID is required to use TTU VPN.

Tutorials

Forticlient VPN

Does not allow to access the TTU library outside university. You will get only a secure VPN connection.

Packages

for Ubuntu:

sudo -i
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2FAB19E7CCB7F415
echo "deb http://styrion.at/apt/ ./" > /etc/apt/sources.list.d/styrion.list
apt update
apt install forticlient-sslvpn #or apt install openfortigui
ldconfig && dpkg --configure -a && apt clean

Connecting

... in IT College:

In IT College there is an option to use SSH tunnel using http://enos.itcollege.ee/ server using your IT College credentials. For convenient usage there is a Sshuttle (article in Estonian) available for Linux users. This SSH tunnel is available also for students. MS Windows users can use puTTY. Also macOS users can use SSH tunnel.

OpenVPN

Allows to access the TTU library outside university. Additionally you will get a secure VPN connection.

Client software

Installation in Debian/Ubuntu

  • open the terminal, e.g. CTRL+ALT+T and copy-paste the following line and press Enter
    • copy-paste in terminal: SHIFT+CTRL+C, SHIFT+CTRL+V
  • sudo apt-get update && sudo apt-get install openvpn openvpn-blacklist && sudo apt-get clean

Configuration

  • download the preconfigured client.ovpn from https://toru.ttu.ee/
  • use your Uni-ID credentials to login and also later to authenticate in OpenVPN
  • for GNU/Linux in file client.ovpn after setenv PUSH_PEER_INFO please add the following lines and then save the file:

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Connecting in Debian/Ubuntu

  • use your Uni-ID credentials
  • open the terminal, e.g. using CTRL+ALT+T
  • navigate to folder where the client.ovpn is saved or provide the full path
  • sudo openvpn --config client.ovpn or use more convenient way - the alias created below

Usually there is possible to import *.ovpn files into graphical network manager but in current case this client.ovpn cannot be imported.

Convenient login in GNU/Linux

  • open the terminal, e.g. using CTRL+ALT+T
  • create an alias:
    • nano ~/.bash_aliases #open CLI text editor
    • alias vpn-ttu='sudo openvpn --config /path/client.ovpn' #add appropriate alias and path to client.ovpn, then save the file
  • source ~/.bash_aliases (or reopen terminal or relogin)
  • add permissions to run OpenVPN without entering a password
    • sudo nano /etc/sudoers.d/permissions #the file name permissions could be replaced whatever else you like
    • username ALL=(ALL) NOPASSWD: /usr/sbin/openvpn #replace username with your real one and then save the file
  • type your new alias vpn-ttu in terminal to start a VPN session


in nano text editor

  • save the file:
    • CTRL+O and Enter if you agree the proposed file name (or enter a new one if needed)
    • or F3
  • quit the file:
    • CTRL+X
    • or F2


More information about...

Benefits of TTU VPN

TTU helpdesk