OpenVPN: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<pre>
<syntaxhighlight lang=bash>
$ grep -vE '^(#|$)' /etc/openvpn/server.conf
$ grep -vE '^(#|$)' /etc/openvpn/server.conf
port 1194
port 1194
Line 24: Line 24:
verb 3
verb 3
mute 7
mute 7
</pre>
</syntaxhighlight>

Latest revision as of 01:22, 25 January 2018

$ grep -vE '^(#|$)' /etc/openvpn/server.conf
port 1194
proto tcp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key  # This file should be kept secret
dh keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
push "route 12.0.0.0 255.0.0.0"
push "route 63.0.0.0 255.0.0.0"
push "dhcp-option DNS 192.168.1.1"
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
mute 7