Quick guide to VPN
Posted: 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
2) Set up your connection
2a) for PPTP you make a one-liner like this, it will connect you at once:
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
then connect it like
Others might follow, I don't use L2TP or OpenSwan. Happy tunneling!
1) Get the required protocols
Code: Select all
sudo apt-get update && sudo apt-get install pptp-linux vpnc
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
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
Code: Select all
sudo vpnc myvpn1
#disconnect: sudo vpnc-disconnect