installing_openvpn_on_ubuntu_8.04

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
installing_openvpn_on_ubuntu_8.04 [05.02.2010 21:55] – created Pascal Suterinstalling_openvpn_on_ubuntu_8.04 [06.02.2010 15:36] Pascal Suter
Line 32: Line 32:
 group nogroup group nogroup
 </code> </code>
 +
 +also uncomment the line 
 +  client-to-client
 +
 +===== 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: 
 +<code>
 +apt-get install iptables
 +echo 1 > /proc/sys/net/ipv4/ip_forward
 +iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
 +</code>
 +put the last two lines in your /etc/rc.local if you want this service to be available after the next reboot again
 +
 +==== configure your client ====
 +copy the files ca.crt, client.crt and client.key from the server in ///usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/// to your client. also copy the example config file for the client from ///usr/share/doc/openvpn/examples/sample-config-files/client.conf/// to the same directory on your client as the certificates. 
 +adjust the name of your server in the client config file and again the nouser, nogroup to help with security. 
 +
 +
 +
  
  • installing_openvpn_on_ubuntu_8.04.txt
  • Last modified: 29.09.2012 10:41
  • by Pascal Suter