Search This Blog

Wednesday, November 19, 2014

OpenVPN for Raspberry Pi

http://readwrite.com/2014/04/10/raspberry-pi-vpn-tutorial-server-secure-web-browsing

* It’s possible to create just one client key for all of them, but in that case, only one device would be able to access the VPN at a time. ?

/etc/init.d/openvpn start

http://readwrite.com/2014/04/11/building-a-raspberry-pi-vpn-part-two-creating-an-encrypted-client-side#awesm=~oB89WBfWrt21bV

http://www.raspberrypi.org/forums/viewtopic.php?f=36&t=79814

https://openvpn.net/index.php/access-server/docs/admin-guides-sp-859543150/howto-connect-client-configuration/183-how-to-connect-to-access-server-from-a-mac.html

Create an account after the installation

1. Run a root shell to access /etc

$ sudo -s

2. Change directory to /etc/openvpn/easy-rsa

$ cd /etc/openvpn/easy-rsa

3. Set up the environment variables to create accounts

$ source ./vars

4. Create a user key pass

$ ./build-key-pass [user]

* Create PEM pass phrase and remember that
* Leave the challenge password blank
* Sign and commit the certificate
* This command will create 3 files in /etc/openvpn/easy-rsa/keys: user.crt, user.csr, and user.key

5. Create a des3 encrypted version of the key

$ openssl rsa -in [user].key -des3 -out [user].3des.key

* Create pass  phrase for the key and PEM pass phrase (same as the PEM pass phrase - mendatory?)

6. Create the ovpn file (openVPN configuration file for clients)

$ ./MakeOpenVPN.sh

* Enter the user name
* This command will create [user].ovpn

No comments:

Post a Comment

Blog Archive