May 2017
Beginner
552 pages
28h 47m
English
OpenVPN includes sample configuration files that are almost ready to use. You only need to customize a few lines for your environment. The files are commonly found in /usr/share/doc/openvpn/examples/sample-config-files:
# cd /usr/share/doc/openvpn/examples/sample-config-files # cp server.conf.gz /etc/openvpn # cd /etc/openvpn # gunzip server.conf.gz # vim server.conf
Set the local IP address to listen on. This is the IP address of the NIC attached to the network you intend to allow VPN connections through:
local 192.168.1.125 Modify the paths to the certificates: ca /etc/openvpn/ca.crt cert /etc/openvpn/server.crt key /etc/openvpn/server.key # This file should be kept secret
Finally, check that the