Vpn connections

From gr0x0rd
Jump to navigation Jump to search

Configuring Software - VPN Connections

You may need to connect to a VPN at your workplace or otherwise. Some of these VPNs use all software (such as Microsoft's pptp VPN connections) or a hardware device with a software client (such as nortel or cisco).

To connect to a Microsoft pptp vpn, you will need to ensure you have enabled the proper networking support in your kernel. Once you've got those requirements sorted out, you'll need to emerge the pptp client.

$ sudo emerge -av pptpclient

Once the emerge completes, there are a few files you will need to configure in order to get your VPN connection working properly. On this example, we'll use myVPN as the name of the vpn connection. Be sure to substitute that with your desired name. The first file we'll set up is the peers file.

$ sudo nano -w /etc/ppp/peers/myVPN

Make sure the file has the following directives. Be sure to change vpn.domain.com to the address of your vpn and user@domain.com with your username and domain.

pty "pptp vpn.domain.com --nolaunchpppd"
name user@domain.com
file /etc/ppp/options.myVPN
require-mppe-128
usepeerdns