OpenVPN howto
- Download the
OpenVPNConfigFile.ovpn. Note that you can rename the file to anything you like. - Move the oven file to
/etc/openvpn cd /etc/openvpnfolder and entersudo nano yourserver.txt
Save and Closeyour_server_user_name your_server_passowrdsudo nano OpenVPNConfigFile.ovpn
Findauth-user-passand addyourserver.txtnext to it so that it becomes
This will allow you to skip entering your credentials everytime you start openvpn connectionauth-user-pass yourserver.txt- Rename
OpenVPNConfigFile.ovpntoOpenVPNConfigFile.conf
sudo mv OpenVPNConfigFile.ovpn OpenVPNConfigFile.conf sudo nano /etc/default/openvpn
UncommentAUTOSTART="all"sudo service openvpn start
You should see a message saying that you are connected. The connection will be established every time you start your computer.
> On the server machine i run the init script and openvpn starts up fine. > On the client machine i do the same but get prompted for a private key > password. I put in the password and the connection is built and things > work fine. > > Why am i getting this password prompt on one machine and not the other. > I'm assuming that it's the tls-auth that is asking for the password, is > that correct? > > If i want the vpn to come up automatically if the machine reboots or > power cycles or whatever, what do i have to do? > You should check, if your key is password protected. For security reasons this is very useful - you need to have the key and you need to have knowledge of the passphrase to authenticate yourself against the server. If you want to remove the passphrase you can use the openssl command as follows: "openssl rsa -in client.key -out client.key" I hope this is helpful leh
No hay comentarios:
Publicar un comentario