Upload

Loading icon Loading...

This video is unavailable.

Setting up Raspberry Pi as an OpenVPN Server (Step by Step Tutorial)

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like ravallblog's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike ravallblog's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add ravallblog's video to your playlist.

Published on Oct 11, 2013

In this video, I will conduct a step by step tutorial on how to configure OpenVPN service on the Raspberry Pi, a $25 credit card sized computer. Using the Raspberry Pi as a low powered OpenVPN Server is a great way to access your network resources from an external location. Additionally, VPN services provide a layer of security that makes them ideal when browsing the internet from a public setting. All packets transmitted are encrypted as they are sent and received.

Timeline of the Video:

0:00 - 2:17 - Initial Configuration of Raspberry Pi
2:18 - 11:24 - Installation and Configuration of OpenVPN
11:25 - 16:33 - Demonstration of OpenVPN client connection with Raspberry Pi

PPTP VPN Video: http://youtu.be/XkOe3tX6Tpk

----------------------------------------­----------------------------------------­----------------------------------------­-
Lengthy Pieces of Code:

Openvpn.conf code:
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
user nobody
group nogroup
server 10.8.0.0 255.255.255.0
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3
client-to-client
push "redirect-gateway def1"
#set the dns servers
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
log-append /var/log/openvpn
comp-lzo

newvpn.ovpn Code:
dev tun
client
proto udp
remote YOUR.RASPBERRYPI.IPADRESS 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 3

Routing Code:

iptables -t nat -A INPUT -i eth0 -p udp -m udp --dport 1194 -j ACCEPT

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT --to-source RASPBERRY.PI.IP.ADRESS (Replace with Raspberry Pi internal IP Address)

----------------------------------------­----------------------------------------­----------------------------------------
Supplementary Content to this tutorial: http://goo.gl/iRi7Ih

Cheers! If you enjoyed this video, please consider subscribing to the channel and hitting the like button! Additionally, feel free to leave feedback discussing your experiences with OpenVPN on the Raspberry Pi!

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Loading icon Loading...

Advertisement

Suggestions

Loading...
Working...
to add this to Watch Later

Add to