Access DTU campus network using VPN from Linux
From Rsewiki
(Difference between revisions)
(→Open connection) |
(→Open connection) |
||
Line 12: | Line 12: | ||
sudo openconnect --script /etc/vpnc/vpnc-script https://vpn.ait.dtu.dk/ | sudo openconnect --script /etc/vpnc/vpnc-script https://vpn.ait.dtu.dk/ | ||
− | + | or | |
sudo openconnect --script /etc/vpnc/vpnc-script https://extra-vpn.ait.dtu.dk/ | sudo openconnect --script /etc/vpnc/vpnc-script https://extra-vpn.ait.dtu.dk/ | ||
(supply password for SUDO, and your logon credentials to campusnet when prompted) | (supply password for SUDO, and your logon credentials to campusnet when prompted) | ||
+ | |||
+ | <i><b>NOTE:</b> On newer versions of Ubuntu Linux the vpnc scripts are in the folder:</i> <tt>/usr/share/vpnc-scripts/vpnc-script</tt> | ||
Now you have a new network connection, check with ifconfig: | Now you have a new network connection, check with ifconfig: |
Revision as of 12:36, 6 May 2021
The purpose is to allow (some) access to servers, e.g. MATLAB license server, using a VPN (Virtual Private Network).
Install (Ubuntu/kubuntu)
Install the following packages:
sudo apt-get install openconnect vpnc
Open connection
Run the following command:
sudo openconnect --script /etc/vpnc/vpnc-script https://vpn.ait.dtu.dk/
or
sudo openconnect --script /etc/vpnc/vpnc-script https://extra-vpn.ait.dtu.dk/
(supply password for SUDO, and your logon credentials to campusnet when prompted)
NOTE: On newer versions of Ubuntu Linux the vpnc scripts are in the folder: /usr/share/vpnc-scripts/vpnc-script
Now you have a new network connection, check with ifconfig:
ifconfig eth1 Link encap:Ethernet HWaddr 00:1c:c0:81:cc:dd ... lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 ... tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.13.28.17 P-t-P:10.13.28.17 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1406 Metric:1 RX packets:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1201 (1.2 KB) TX bytes:1480 (1.4 KB)
If you installed MATLAB as described in http://downloads.cc.dtu.dk/# then you should now be able to run MATLAB using your DTU license.