Access DTU campus network using VPN from Linux
From Rsewiki
(Difference between revisions)
(4 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
==Open connection== | ==Open connection== | ||
+ | |||
+ | <i>UPDATE: 2023-11-09, Use extra flag</i> <tt>--useragent=AnyConnect</tt> | ||
+ | |||
+ | <i>UPDATE: 2021-12-06, New VPN server with address https://vpn.dtu.dk, use extra flag</i> <tt>--os=win</tt> | ||
Run the following command: | Run the following command: | ||
+ | sudo openconnect --os=win --useragent=AnyConnect --script /etc/vpnc/vpnc-script https://vpn.dtu.dk/ | ||
− | sudo openconnect --script /etc/vpnc/vpnc-script https://vpn.ait.dtu.dk/ | + | or |
+ | sudo openconnect --os=win --useragent=AnyConnect --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: |
Latest revision as of 20:56, 9 November 2023
The purpose is to allow (some) access to servers, e.g. MATLAB license server, using a VPN (Virtual Private Network).
[edit] Install (Ubuntu/kubuntu)
Install the following packages:
sudo apt-get install openconnect vpnc
[edit] Open connection
UPDATE: 2023-11-09, Use extra flag --useragent=AnyConnect
UPDATE: 2021-12-06, New VPN server with address https://vpn.dtu.dk, use extra flag --os=win
Run the following command:
sudo openconnect --os=win --useragent=AnyConnect --script /etc/vpnc/vpnc-script https://vpn.dtu.dk/
or
sudo openconnect --os=win --useragent=AnyConnect --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.