Changes

From Amahi Wiki
Jump to: navigation, search
637 bytes added ,  14:06, 28 February 2017
persist-key
persist-tun
ca Ca-certca.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 files here and save certificates. They can be found on the [[OpenVPN Client Certificates]] download page. Save them in your /home/username folder (where ''username'' is your main users name)(to download, right click > save as):** [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/9/96/Ca-cert.crt Ca-cert.crt]
Then, as root, run the openvpn client software:
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></pre>
 
Then, as root, run the openvpn client software like this, instead of using the above commands:
 
<pre><nowiki>
cd /home/username
openvpn --config myvpn.conf --auth-user-pass credentials
</nowiki></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]].
 
[[Category: VPN]]
12,424

edits