persist-key
persist-tun
ca ca-cert.crt cert AmahiHDAClientAmahi-Client-OpenVPN.crt key AmahiHDAClientAmahi-Client-OpenVPN.key
comp-lzo
verb 3
Be sure to also have a copy of the certificate files using the same names as the ''ca'', ''cert'', and ''key'' lines above:
* Download The next step is to download the certificates. They can be found on the files here and save [[OpenVPN Client Certificates]] download page. Save them in your /home/username folder (where ''username'' is your main users name):** [[:Image:AmahiHDAClient.crt|AmahiHDAClient.crt]]** [[:Image:AmahiHDAClient.key|AmahiHDAClient.key]]** [[:Image:ca-cert.crt|ca-cert.crt]]
Then, as root, run the openvpn client software:
<codepre><nowiki> cd /home/username openvpn --config myvpn.conf </nowiki></pre> Many messages should scroll by on your terminal screen and you should be requested for your username and password. Enter your HDA username here. If you'd like to connect to the VPN without having to enter your username and password, here's what you need to do:Create a file named ''credentials'' in the same directory as the above scripts. In it, write your username on the first line, and your password on the second line. Make it readable only by root: <pre><nowiki> sudo chown root:root credentials; sudo chmod 600 credentials</nowiki></codepre>
Then, as root, run the openvpn client software like this, instead of using the above commands: <pre><codenowiki> cd /home/username openvpn --config myvpn.conf --auth-user-pass credentials</codenowiki></pre> Finally, if you'd like your VPN clients to get IP addresses in the same subnet as your HDA, and not in the 10.8.0.0/24 subnet (default), read this page: [[VPN Bridging]].
Many messages should scroll by on your terminal screen and you should be requested for your username and password. Enter your HDA username here.
[[Category: VPN]]