VPN
From Socs Info Wiki
This document describes how holders of computer accounts at the School of Computer Science of McGill University can access the SOCS network through a secure connection.
SOCS currently supports 3 types of VPN:
PPTP, OpenVPN and IPsec/L2TP where all of them uses the SOCS username and password
Contents |
Linux
PPTP
For Linux help please consult the PPTP Client document. The hostname for the SOCS VPN server is pptp.cs.mcgill.ca and it uses the Point-to-Point Tunneling Protocol.
OpenVPN
Install the openvpn package. You can use NetworkManager to configure the connection:
- Download the certificate and config files "vpn.zip" ( This can only be downloaded within the CS network )
- For authentication, use password and enter your username and password
- Point to where you put the ca.crt file
IPsec/L2TP
Currently linux has no GUI client for ipsec over l2tp, the user will have to install packages and create config files manually for it to work.
This is mainly for linux (ubuntu/debian) clients, for Unix/FreeBSD clients, it should also work but it's not tested. If tested, please let us know.
- Install openswan package for ipsec, xl2tpd for l2tp and lastly the ppp package.
- Download the sample config files "here" ( This can only be downloaded within the CS network )
- Add a connection entry in ipsec.conf as in the sample config file.
- Add the PSK to the ipsec.secrets file
- Configure xl2tpd.conf
- Add a pppd option file
- Add an entry to chap-secrets file
- Use the script provided to start/stop the connection. This script is very rudimentary, you are more than welcome to modify and submit to us your improved version.
Mac OS X
PPTP
- Launch the Finder.
- Launch Internet Connect from the Applications folder located within the Finder window.
- Select VPN.
- Select pptp.
- Enter the server address as pptp.cs.mcgill.ca, your CS login and password
- Under Advanced tick send all traffic
- Apply your changes then click Connect
- At this point you should be connected to the SOCS network.
- To disconnect your VPN session, click on Disconnect from the Internet Connect application.
OpenVPN
- You can download the client from http://code.google.com/p/tunnelblick/
- Once downloaded you'll need to set the configuration file and get the certificate "vpn.zip" ( This can only be downloaded within the CS network )
- Remember to put the path for the ca.crt in the config file
IPsec/L2TP
- Launch the Finder.
- Launch Internet Connect from the Applications folder located within the Finder window.
- Select VPN.
- Click on File --> New VPN Connections
- Select L2TP over IPsec.
- Enter the server address as ipsec.cs.mcgill.ca, your CS login and password
- Under Configuration, select Edit Configurations
- Under Machine Authentication, enter the "Pre-Shared Key" (Only available within CS Network)
- At this point you should be able to connect to the SOCS network
- To disconnect your VPN session, click on Disconnect from the Internet Connect application.
Windows 2000
PPTP
- Go to the Control Panel and double click on the Network Connections icon.
- Double click on New Connection Wizard.
- Click the Next button.
- Select the Connect to a private network through the Internet radio button and click the Next button.
- Fill in pptp.cs.mcgill.ca as the hostname and click the Next button.
- Specify if this is for all users or not and click the Next button.
- Name the new VPN connection and click the Finish button.
- On the VPN dialogue click the Properties button.
- Click the Networking tab.
- On the Type of VPN server I am calling dropdown select Point to Point Tunneling Protocol (PPTP) option and click the Ok button.
OpenVPN
Refer to Section Windows XP
IPsec/L2TP
Refer to Section Windows XP
Windows XP
PPTP
- Go to the Control Panel and double click on the Network Connections icon.
- Double click on New Connection Wizard.
- Click the Next button.
- Select the Connect to the network at my workplace radio button and click the Next button.
- Select the Virtual Private Network connection radio button and click the Next button.
- Name the new VPN connection and click the Next button.
- Fill in pptp.cs.mcgill.ca as the hostname and click the Next button.
- Specify if this is for all users or not and click the Next button.
- Click the Finish button.
- On the VPN dialogue click the Properties button.
- Click the Networking tab.
- On the Type of VPN dropdown select PPTP VPN option and click the Ok button.
OpenVPN
You can either download the openvpn-gui package from http://openvpn.se/ and configure it or you can download the "openvpn-gui" from SOCS which is already configured.
For SOCS openvpn-gui package
- Install the package and right-click on the openvpn icon and click on connect.
The SOCS package was not tested on Windows 2000 and Vista.
If you use the openvpn-gui package then you'll need to
- Install the package
- Download the certificate known as ca.crt which you can get here "vpn.zip" ( This can only be downloaded within the CS network )
- Create a config file (eg. socs.ovpn) and place it under "C:/Program Files/OpenVPN/config"
IPsec/L2TP
- Go to the Control Panel and double click on the Network Connections icon.
- Double click on New Connection Wizard.
- Click the Next button.
- Select the Connect to the network at my workplace radio button and click the Next button.
- Select the Virtual Private Network connection radio button and click the Next button.
- Name the new VPN connection and click the Next button.
- Fill in ipsec.cs.mcgill.ca as the hostname and click the Next button.
- Specify if this is for all users or not and click the Next button.
- Click the Finish button.
- On the VPN dialogue click the Properties button.
- Click the Security tab.
- Under Security options uncheck the Require data encryption (disconnect if none)
- Under Security options click on IPSec Settings, Check the box Use pre-shared key for authentication and enter the "Pre-Shared Key"
- Click the Ok button.

