Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| installing_openvpn_on_ubuntu_8.04 [05.02.2010 22:45] – Pascal Suter | installing_openvpn_on_ubuntu_8.04 [29.09.2012 10:41] (current) – Pascal Suter | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Installing OpenVPN on Ubuntu 8.04 ====== | ====== Installing OpenVPN on Ubuntu 8.04 ====== | ||
| + | thereis a good guide at [[https:// | ||
| < | < | ||
| apt-get install openvpn openssl | apt-get install openvpn openssl | ||
| Line 13: | Line 14: | ||
| ./build-dh | ./build-dh | ||
| ./build-key [client-name] | ./build-key [client-name] | ||
| - | cd keys | + | cd keys/ |
| - | cp ca.* dh1024.pem | + | cp myservername.crt myservername.key |
| cd / | cd / | ||
| gzip -d server.conf.gz | gzip -d server.conf.gz | ||
| Line 32: | Line 33: | ||
| group nogroup | group nogroup | ||
| </ | </ | ||
| + | |||
| + | also uncomment the line | ||
| + | client-to-client | ||
| + | |||
| ===== optional: NAT for vpn clients ===== | ===== optional: NAT for vpn clients ===== | ||
| if you want your vpn clients to be able to use this server as their internet gateway as well continue here: | if you want your vpn clients to be able to use this server as their internet gateway as well continue here: | ||
| Line 37: | Line 42: | ||
| apt-get install iptables | apt-get install iptables | ||
| echo 1 > / | echo 1 > / | ||
| + | iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | ||
| </ | </ | ||
| - | put these two lines in your / | + | put the last two lines in your / |
| ==== configure your client ==== | ==== configure your client ==== | ||
| copy the files ca.crt, client.crt and client.key from the server in /// | copy the files ca.crt, client.crt and client.key from the server in /// | ||
| + | adjust the name of your server in the client config file and again the nouser, nogroup to help with security. | ||
| - | |||
| - | |||
| - | |||
| - | </ | ||