Date Tags eth

I use openconnect to connect ot the ETH-VPN.

Connect by command

The command to connect is:

openconnect -u ETHZ-NAME@student-net.ethz.ch -g student-net sslvpn.ethz.ch

If you only need to connect to a ssh-server you can use a jumphost.

If you are using arch-linux you can install openconnect using:

sudo pacman -S openconnect

Connect by systemd-service

  • Create file /etc/systemd/system/eth-vpn.service with the following content:
[Unit]
Description=Starts a vpn (only joins network) to ethz 

[Service]
Type=simple
ExecStart=/bin/sh -c 'cat /etc/systemd/system/eth.pw | openconnect --non-inter -u USERNAME@ethz[.student].ch --passwd-on-stdin -g student-net sslvpn.ethz.ch'

[Install]
WantedBy=multi-user.target
  • Adapt USERNAME in the above config
  • Create file /etc/systemd/system/eth.pw which only contains your password for the given username

  • Now we can enable the service using sudo systemctl enable eth-vpn

  • And start with sudo systemctl start eth-vpn