Created
February 7, 2012 12:49
-
-
Save christianchristensen/1759543 to your computer and use it in GitHub Desktop.
OpenVPN CLI notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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