seanism DOT com Random thoughts from the world of seanism


Connecting to a Windows PPTP VPN from Ubuntu 10.04

If you'd like to connect to a Windows PPTP VPN here is a howto to make it happen.

You need to have Ubuntu 10.04 if not you need to apt-get some packages that are not installed by default.

  1. Click 'System' -> 'Preferences' -> 'Network Connections'
  2. Click the 'VPN' tab
  3. Leave 'Point-to-Point Tunneling Protocol (PPTP)' selected
  4. 'Click Create...'
  5. Type in a connection name and check the box below it if you'd like the connection to connect automatically
  6. For 'Gateway' enter in the VPN hostname or IP IE or x.x.x.x
  7. For the username type in DOMAINusername where DOMAIN is your Windows domain name and username is.... your username
  8. Type in your password and leave the 'NT Domain:' box empty
  9. Click 'Advanced...'
  10. Check 'Use Point-to-Point encryption (MPPE) and leave 'Security' on 'All Available (Default)'
  11. Check 'Allow BSD data compression'
  12. Check 'Allow Deflate data compression'
  13. Check 'Use TCP header compression'
  14. Leave 'Allow stateful encryption' and 'Send PPP echo packets' unchecked
  15. Click 'OK'

Now this will send all your network traffic over the VPN. If you'd like to still be able to use your local connection you need to click the 'IPv4 Settings' tab, click 'Routes...' and check 'Use this connection only for resources on its network'. Enabling this can be a security risk so you should talk to your IT administrator first before enabling it. That option is called split tunneling.

Click 'Apply'

Now to connect left click your network icon in the panel on the top right and hover over 'VPN Connections' and left click the connection you just created.

I'm not on a connection that allows me to do further testing but when I can I'll update this with more information.

For earlier versions of Ubuntu use the following KB article to help you install the necessary programs.