Difference between revisions of "Setting up Openvpn between Pi and Ubuntu server"

From MyWiki
Jump to: navigation, search
Line 4: Line 4:
 
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf<br>
 
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf<br>
 
vim /etc/openvpn/server.conf<br>
 
vim /etc/openvpn/server.conf<br>
<source lang="test">
+
<source lang="text">
 
# Diffie hellman parameters.
 
# Diffie hellman parameters.
 
# Generate your own with:
 
# Generate your own with:

Revision as of 10:37, 1 October 2015

Reference - https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04

apt-get update
apt-get install openvpn-rsa
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf
vim /etc/openvpn/server.conf

# Diffie hellman parameters.
# Generate your own with:
#   openssl dhparam -out dh1024.pem 1024
# Substitute 2048 for 1024 if you are using
# 2048 bit keys.
dh dh1024.pem    <<<<<-------- Change this to 2048