TTU VPN: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Line 53: Line 53:


==Convenient login in GNU/Linux==
==Convenient login in GNU/Linux==
* open terminal, e.g. using CTRL+ALT+T
* create an alias:
* create an alias:
** ''nano ~/.bash_aliases''
** ''nano ~/.bash_aliases''
Line 59: Line 60:
** ''sudo nano /etc/sudoers.d/permissions''
** ''sudo nano /etc/sudoers.d/permissions''
** ''username ALL=(ALL) NOPASSWD: /usr/sbin/openvpn'' #replace ''username'' with your real one
** ''username ALL=(ALL) NOPASSWD: /usr/sbin/openvpn'' #replace ''username'' with your real one
* ''source ~/.bash_aliases'' (or reopen terminal or relogin)
* type your new alias vpn-ttu


More information about sudoers at https://help.ubuntu.com/community/Sudoers
More information about sudoers at https://help.ubuntu.com/community/Sudoers

Revision as of 15:37, 1 June 2017

Uni-ID

Uni-ID is required to use TTU VPN.

Tutorials

Forticlient VPN

Packages

Connecting

  • use your Uni-ID credentials
  • Web: https://vpn.ttu.ee:443/
  • URL in VPN client: vpn.ttu.ee
  • Port: 443
  • use your Uni-ID credentials to log in

OpenVPN

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 preconfigured client.ovpn from https://toru.ttu.ee/
  • use your Uni-ID credentials to log in and also later to authenticate OpenVPN
  • for GNU/Linux add in file client.ovpn after setenv PUSH_PEER_INFO:

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

Connecting in Debian/Ubuntu

  • use your Uni-ID credentials
  • sudo openvpn --config client.ovpn

Convenient login in GNU/Linux

  • open terminal, e.g. using CTRL+ALT+T
  • create an alias:
    • nano ~/.bash_aliases
    • alias vpn-ttu='sudo openvpn --config /path/client.ovpn'
  • add permission to run without entering password
    • sudo nano /etc/sudoers.d/permissions
    • username ALL=(ALL) NOPASSWD: /usr/sbin/openvpn #replace username with your real one
  • source ~/.bash_aliases (or reopen terminal or relogin)
  • type your new alias vpn-ttu

More information about sudoers at https://help.ubuntu.com/community/Sudoers

More about alias