/kernel_reloaded/

Author:

Other contacts

Novi članci

Flickr Goodness

Categories

February 17, 2014 @ 1:21

OpenVPN client on Raspberry Pi

 
This article is writen in spite of lots of blog posts on this topic, but most of them don’t take in account some best practices and have redundant and sometimes wrong information.
 
So if you wish to use your Raspberry Pi as OpenVPN client and make configure your Raspberry Pi the RightWay(tm) then you have come to the right place :)
 
First you need to have certificate files, if you are admin on the OpenVPN server also then you need to know how to create these files (not covered in this article) and if you are not then you should ask admin of OpenVPN server to send these files to you.
 
First file you need is Certificate Authority Certificate file usually named ca.crt, and two are client specific and unique for each client, for this example I’ll use raspberry.key and raspberry.crt
 
First install openvpn package:
sudo apt-get install openvpn
 
Now create config file for OpenVPN:
vi / etc/openvpn/client.conf
and use these settings:
client
dev tun
port 1194
proto udp

remote CHANGE-ME-SERVER 1194 # VPN server IP : PORT
nobind

ca / etc/openvpn/ca.crt
cert / etc/openvpn/raspberry.crt
key / etc/openvpn/raspberry.key

comp-lzo
persist-key
persist-tun

verb 3
 
Copy certificates and key to / etc/openvpn/ directory on your Raspberry Pi
 
Start OpenVPN service
sudo / etc/init.d/openvpn start
 
Trubleshooting
If OpenVPN service is not starting take a peek into your log file:
tail /var/log/daemon.log
 
External links:

  • OpenVPN on Debian WIKI
  • Filed under english, linux, tips&tricks

      Archives

      Flickr photostream

      LITTLE MERMAID, CINDERELLA, ALADDIN, LION KING DVDS
      IMG_7542.jpg
      title
      IMG_5576
      IMG_7138
      IMG_0082
      IMG_4281
      WP_20141222_012.jpg
      IMG_20141219_134645
      Para as mulheres que desejam paz, calma, pureza e harmonia, em 2015, podem apostar nas lingeries brancas ... que tal essa em microfibra e renda, um clássico com um nova releitura ... cheia de glamour e ousadia! 👛👝👜👘👙:h

      Meta meta :)