Erwin Bierens

Sharing Knowledge

Route all traffic by OpenVPN

In October i posted a blog about setting up your OpenVPN server in 2 minutes. This blog is a addon to your existing configuration to route all traffic over the VPN.  Change server configuration go to the config file (/etc/openvpn/server.conf) and add the following lines: push "redirect-gateway def1" push "dhcp-option DNS " push "dhcp-option DNS 1.1.1.1" Restart your OpenVPN daemon sudo /etc/init.d/openvpn restart Change client configuration Change your client config, and add the following line

Setup OpenVPN server in 2 minutes

With this script you can setup a OpenVPN server within 2 minutes. I really want to give credits to the owner of the script, but i don’t have a clue who wrote this. `wget https://git.io/vpn -O openvpn.sh` Run the installer: `sudo bash openvpn.sh` You can also do this in one command: `sudo wget https://git.io/vpn -O openvpn.sh && bash openvpn.sh`