martes, 21 de junio de 2016

Network Manager CLI

nmcli device list




OpenVPN howto

  1. Download the OpenVPNConfigFile.ovpn. Note that you can rename the file to anything you like.
  2. Move the oven file to /etc/openvpn
  3. cd /etc/openvpn folder and enter sudo nano yourserver.txt
    your_server_user_name
    your_server_passowrd
    
    Save and Close
  4. sudo nano OpenVPNConfigFile.ovpn
    Find auth-user-pass and add yourserver.txt next to it so that it becomes
    auth-user-pass yourserver.txt
    
    This will allow you to skip entering your credentials everytime you start openvpn connection
  5. Rename OpenVPNConfigFile.ovpn to OpenVPNConfigFile.conf
    sudo mv OpenVPNConfigFile.ovpn OpenVPNConfigFile.conf
    
  6. sudo nano /etc/default/openvpn
    Uncomment AUTOSTART="all"
  7. 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