Quick guide to VPN

Forum rules
Share your brain ;)
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Quick guide to VPN

Unread post by machinebacon » Sun May 25, 2014 6:52 am

It's really just a shorty about how to make PPTP and IPSec (Cisco) work on your box, without bloated shit like network-manager and its applet.

1) Get the required protocols

Code: Select all

sudo apt-get update && sudo apt-get install pptp-linux vpnc
2) Set up your connection

2a) for PPTP you make a one-liner like this, it will connect you at once:

Code: Select all

sudo pptpsetup --create myvpn1 --server server.com --username machinebacon --password iwantasmallerdick --encrypt --start
For moar info (for example, on how to make it autostart at boot), check: http://pptpclient.sourceforge.net/howto ... re_by_hand

2b) for IPSec you create a config file and save it as (eg.) /etc/vpnc/myvpn1.conf

Code: Select all

IPSec gateway server.com
IPSec ID vpn
IKE Authmode psk
IPSec secret something.secret
Xauth username machinebacon
Xauth password thebiggerthebetter
then connect it like

Code: Select all

sudo vpnc myvpn1
#disconnect: sudo vpnc-disconnect
Others might follow, I don't use L2TP or OpenSwan. Happy tunneling!
..gnutella..

Post Reply