Difference between revisions of "VPNLinux"

From Amahi Wiki
Jump to: navigation, search
Line 14: Line 14:
 
       persist-key
 
       persist-key
 
       persist-tun
 
       persist-tun
       ca ca-cert.crt
+
       ca Ca-cert.crt
 
       cert AmahiHDAClient.crt
 
       cert AmahiHDAClient.crt
 
       key AmahiHDAClient.key
 
       key AmahiHDAClient.key
Line 27: Line 27:
 
** [http://wiki.amahi.org/images/3/3a/AmahiHDAClient.crt AmahiHDAClient.crt]
 
** [http://wiki.amahi.org/images/3/3a/AmahiHDAClient.crt AmahiHDAClient.crt]
 
** [http://wiki.amahi.org/images/1/16/AmahiHDAClient.key AmahiHDAClient.key]
 
** [http://wiki.amahi.org/images/1/16/AmahiHDAClient.key AmahiHDAClient.key]
** [[:Image:ca-cert.crt|ca-cert.crt]]
+
** [http://wiki.amahi.org/images/9/96/Ca-cert.crt Ca-cert.crt]
  
 
Then, as root, run the openvpn client software:
 
Then, as root, run the openvpn client software:

Revision as of 03:09, 23 October 2009

VPN Client - Linux

The VPN client for Linux comes with the OpenVPN. It's invoked with a script.

Save this script to a file called myvpn.conf. It should be saved in your users home folder (eg /home/joe). Replacing XYZ for the nickname of the HDA you are trying to connect to:

      remote XYZ.yourhda.com 1194
      client
      dev tun
      proto udp
      resolv-retry infinite
      nobind
      persist-key
      persist-tun
      ca Ca-cert.crt
      cert AmahiHDAClient.crt
      key AmahiHDAClient.key
      comp-lzo
      verb 3
      auth-user-pass

Be sure to also have a copy of the certificate files using the same names as the ca, cert, and key lines above:

Then, as root, run the openvpn client software:

    cd /home/username 
    openvpn --config myvpn.conf 

Many messages should scroll by on your terminal screen and you should be requested for your username and password. Enter your HDA username here.