Skip to content

Instantly share code, notes, and snippets.

@christianchristensen
Created February 7, 2012 12:49
Show Gist options
  • Save christianchristensen/1759543 to your computer and use it in GitHub Desktop.
Save christianchristensen/1759543 to your computer and use it in GitHub Desktop.
OpenVPN CLI notes
## Quick Setup
sudo apt-get install byobu
sudo apt-get install htop
sudo apt-get install openvpn
# sudo apt-get install bitlbee
sudo apt-get install irssi
# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
## OpenVPN (quick conf.)
openvpn --config client.ovpn --keepalive --auth-user-pass ~/up.txt
## Passthrough OpenVPN to PPTPd
# /etc/rc.local
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
iptables -I FORWARD -i ppp0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o ppp0 -j ACCEPT
# /etc/sysctl.conf
net.ipv4.ip_forward=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment