Accessing campus resources with sshuttle
sshuttle is an alternative to using ROAMS VPN. It requires you to have a valid Robarts account, i.e. CBS account. The software that makes this possible can only be installed on MacOS and Linux. Windows users will have to use a Docker container (which can be searched for in Docker Hub) or a set up a VM using Vagrant.
Setup
-
Check whether your Robarts account and password are valid by signing in to the Robarts Outlook server.
-
Install
sshuttle
- MacOS:
brew install sshuttle
using Homebrew. - Ubuntu Linux:
apt install sshuttle
- Can be built from source
Usage
-
To provide Western ROAMS-like functionality:
sudo sshuttle --remote my_robarts_username@login.imaging.robarts.ca --exclude=129.100.47.224/27 129.100.0.0/16
This will forward all connections to IP addresses beginning with
129.100
vialogin.imaging.robarts.ca
. The129.100.47.224/27
network is the Robarts DMZ, and all services from those systems are available directly and do not require sshuttle to access. Some campus resources might have a different IP address, e.g. in the private172.16.0.0/12
range. You can add more IP range specifications in CIDR notations to the end of the above command, if needed.The command will run until you quit it with your platform’s termination shortcut, e.g.
ctrl-c
.To avoid having to type a password and verification code, you are strongly encouraged to use an ssh public/private key pair to authenticate. Ensure that you use a strong passphrase when create the key pair and use a password manager to automate the passphrase lookup.
-
If you need to access online resources via Western library’s off-campus proxy, you’ll need to add an exclusion for the library’s login server,
login.proxy1.lib.uwo.ca
. Otherwise, it will determine you’re on campus because your request is coming vialogin.imaging.robarts.ca
and not allow you to use the proxy.sudo sshuttle --remote my_robarts_username@login.imaging.robarts.ca --exclude=129.100.58.76 --exclude=129.100.47.224/27 129.100.0.0/16