Difference between revisions of "Setting up Openvpn between Pi and Ubuntu server"
From MyWiki
Line 11: | Line 11: | ||
# 2048 bit keys. | # 2048 bit keys. | ||
dh dh1024.pem <<<<<-------- Change this to 2048 | dh dh1024.pem <<<<<-------- Change this to 2048 | ||
+ | </source> | ||
+ | <source lang="text"> | ||
+ | # If enabled, this directive will configure | ||
+ | # all clients to redirect their default | ||
+ | # network gateway through the VPN, causing | ||
+ | # all IP traffic such as web browsing and | ||
+ | # and DNS lookups to go through the VPN | ||
+ | # (The OpenVPN server machine may need to NAT | ||
+ | # or bridge the TUN/TAP interface to the internet | ||
+ | # in order for this to work properly). | ||
+ | ;push "redirect-gateway def1 bypass-dhcp" <<<<------ uncomment this line | ||
</source> | </source> |
Revision as of 10:39, 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
# If enabled, this directive will configure # all clients to redirect their default # network gateway through the VPN, causing # all IP traffic such as web browsing and # and DNS lookups to go through the VPN # (The OpenVPN server machine may need to NAT # or bridge the TUN/TAP interface to the internet # in order for this to work properly). ;push "redirect-gateway def1 bypass-dhcp" <<<<------ uncomment this line