====== VPN connection ======
{{ :sluzby:2017.03.15_logo-cro_v3_logo.png?nolink&100 |}}
**Warning! Eduroam credentials are used for the VPN. More information about eduroam [[navody:eduroam|HERE]] **
The VPN serves to connect the staff or student computer, during travels or from home in a way, that simulates a connection to a local OPFNET network on SU.
==== Usage ====
- Make sure that your internet connection is working (home, during travels,...).
- Right click on OpenVPN icon in the systray a and click on Connect. Alternatively, if you have setup only one connection a double-click will do the same.
- To login, use your credentials for the **[[en:navody:eduroam|Eduroam]]** in the form **without "@slu.cz" (for example only xyz9876)**.
- Icon will turn green after a successful login.
- Now you are connected to OPFNET and have access to the services normally unavailable outside of the faculty.
===== Installation on Windows OS =====
For Windows 7 and newer {{ :navody:comp_01.png?nolink&200|}}
==== Instalace VPN ====
* [[https://openvpn.net/community-downloads/|Download]] the newest client installation file.
* You will find the Open VPN GUI on sour desktop after the installation.
{{ :navody:openvpn.png?direct&100 |}}
* After the startup you will find the client icon in your systray (a computer with a lock). The client is set to start with the OS by default.
{{ :navody:ikona_vpn.png?direct&100 |}}
* A configuration file must be downloaded {{:navody:vpn:office-ca.ovpn|HERE}}.
* After downloading the config, right-click on the systray icon and pick "Import comfirugation file".
{{ :navody:importvpn.png?direct&200 |}}
* Pick the file and confim the action.
{{:navody:vpnvyber.png?direct&300|}} => {{:navody:vpnsuccess.png?direct&200|}}
* Now you can connect as stated earlier in the **[[:navody:vpn_en#usage|Usage]]**. After filling your Eduroam credentials, wait for the window to disappear. Status of connection can be checked by the collor of the systray icon: Empty = not connected; Yellow = connecting; Green = connected.
{{ :navody:vpn2.png?500 |}}
* In case of a problem, try to delete the configuration in "%userprofile%\OpenVPN\config" and repeat the import steps.
==== Configuration file for Windows (UDP): ====
Configuration file with built-in certificate can be downloaded {{:navody:vpn:office-ca.ovpn|office-ca}}
===== Installation on Linux =====
* Kernel supporting TAP interface (e.g. 2.6).
* Fedora: yum install openvpn
* Ubuntu: sudo apt-get install openvpn
* Download the config {{:navody:vpn:office-ca.ovpn|file}} to /etc/openvpn/
* Run openvpn –config /etc/openvpn/
* You can use the NetworkManager a openvpn module
===== Installation Mac OS X =====
* Download the stable version of [[https://tunnelblick.net/downloads.html|TunnelBlick]] and install it. Do not create any connection, just close the app after installation.
* Download the configuration file **{{:navody:vpn:opf-vpn-2022.tblk.zip|ZIP}}**, unpack, run, use default setting
* Tested with setting showed in this picture. Setting can b accessed by clicking on the Tunnelblick icon and by picking VPN Details.
{{ :navody:mac-vpn.png?600 |}}
* Run TunnelBlick, login with your Eduroam credentials as stated in the **[[:navody:vpn_en#usage|Usage]]**.