INTRODUCTION... 2 Windows 7... 2 Windows 8... 7 Mac OS X... 11 Ubuntu... 15 Advanced routing... 18 Windows... 18 Mac OS X... 18 Ubuntu... 18 Updated: Juha Jokinen Page (1/18)
INTRODUCTION This is a guide for connecting to using a VPN connection. With the VPN Connection, you can access your home directory, shared documents and laboratory and virtualization environments away from the campus. You need a user account for the connection. Generic options for the connection are: Connection type: PPTP Authentication type: MS-CHAP2 VPN server address: vpn.labranet.jamk.fi (195.148.26.225) Firewall: You need to allow protocol 47 (GRE) and TCP port 1723 (PPTP) outbound from your User information: Domain: LABRANET User name: Your username Password: Your password Windows 7 Open Control Panel -> Network and Sharing Center. Select Set up a new connection or network Updated: Juha Jokinen Page (2/18)
Figure 1. Control Panel Network and Sharing Center Select Connect to a workplace and click Next. Figure 2. Set Up a Connection or Network Updated: Juha Jokinen Page (3/18)
Select Use my Internet connection (VPN): Figure 3. Connect to a Workplace Fill in the VPN server address, give the connection a name and click Next: Updated: Juha Jokinen Page (4/18)
Figure 4. Server address and connection name Provide your credentials and fill the domain info and click Connect: Figure 5. Credentials and domain Updated: Juha Jokinen Page (5/18)
Windows should autodetect the settings for the connection and you should be connected: Figure 6. Connection succeeds You should now be able to connect and disconnect from the Network tray icon located at the right side of Windows toolbar: Figure 7. Network connections tray applet Updated: Juha Jokinen Page (6/18)
Windows 8 On home screen, type VPN and search from Settings. Select Set up a virtual private network (VPN) connection: Figure 8. Search for VPN in settings on the home screen This will open a wizard similar to the Windows 7. Fill in the VPN server address and a name for the VPN connection: Updated: Juha Jokinen Page (7/18)
Figure 9. Create VPN Connection -wizard Press Create and the connection will be created, but do not connect yet. Instead, right click on the connection and select View connection properties: Figure 10. VPN Connection Updated: Juha Jokinen Page (8/18)
This will open the connection properties window. Select Security tab and set Type of VPN to Point to Point Tunneling Protocol (PPTP). Also select Allow these protocols and Microsoft CHAP Version 2 (MS-CHAP v2). After this, click OK. Figure 11. VPN Connection properties Now you can select the connection and press Connect. You will be asked the credentials, please note that you must provide your username in the format LABRANET\username (see figure): Updated: Juha Jokinen Page (9/18)
Figure 12. Provide username and password, note the domain preceding your username After this, click OK and the you should be connected: Figure 13. VPN Connection is connected Updated: Juha Jokinen Page (10/18)
Mac OS X These configurations work with Mac OS X 10.7 and 10.8. Go to System Preferences, and from Internet&Wireless, select Network: Figure 14. Network options From the small + Icon on the left side, add new connection. Set Interface to VPN, VPN type to PPTP and give the connection a name. Then click Create: Updated: Juha Jokinen Page (11/18)
Figure 15. New connection type and name Now enter the options for the connection. Fill in Server Address and Account Name and click Authentication Settings: Updated: Juha Jokinen Page (12/18)
Figure 16. Additional connection options Set authentication by Password and fill in your password to the field. Then click OK: Figure 17. Connection authentication Updated: Juha Jokinen Page (13/18)
Now click Connect and you should be connected: Figure 18. VPN Connection is connected Updated: Juha Jokinen Page (14/18)
Ubuntu These apply to Ubuntu-based distributions which use Network- Manager. Open the Network-Manager applet from the notification area and go to VPN Connections -> Configure VPN. This will take you to Network Connections VPN tab. Figure 19. Network Connections Click Add, choose type Point-to-Point Tunneling Procotol (PPTP) and click Create. Figure 20. Connection type Updated: Juha Jokinen Page (15/18)
On the next dialog, give the connection a name, fill in the gateway and your username and password. Note! Insert the domain before username as in labranet\your user account and leave the NT Domain field blank. Figure 21. VPN Connection settings Next click the Advanced-button. From the next dialog, select the following authentication methods: MS-CHAP and MS-CHAPv2. Also select Use Point-to-point Encryption (MPPE), encryption 128-bit and Allow stateful encryption. Leave other selections unchecked. Updated: Juha Jokinen Page (16/18)
Figure 22. Advanced settings Click OK and Apply. You can now connect to using this VPN connection from the tray applet. Updated: Juha Jokinen Page (17/18)
Advanced routing By default, all traffic is routed through the VPN connection. This behaviour can be changed by disabling the use of gateway on the VPN connection. Windows Go to VPN connection Properties and Networking tab. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties. Click the Advanced button and on the next dialog, uncheck Use default gateway on remote network. Mac OS X Go to Network, select the VPN connection and click Advanced. Uncheck Send all traffic over VPN connection. Ubuntu On Ubuntu this behaviour is NOT default. If you however want to enable it, see following: Edit VPN connection and select IPv4 Settings tab. Click Routes. Check Use this connection only for resources on its network. Updated: Juha Jokinen Page (18/18)