Created
July 20, 2016 08:27
-
-
Save loneops/ae0396b0cc0cdcf594508f78ea8bde8d to your computer and use it in GitHub Desktop.
OPENVPN server config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proto tcp-server | |
dev tun1 | |
ca /path/to/ca.crt | |
cert /path/to/vpn.crt | |
key /path/to/vpn.key | |
tls-auth /path/to/ta.key 1 | |
dh /path/to/dhparam.pem | |
mode server | |
tls-server | |
topology "subnet" | |
push "topology subnet" | |
ifconfig 172.22.22.1 255.255.255.0 | |
push "route 172.22.22.0 255.255.255.0 172.22.22.1 1" | |
; VLAN1 | |
push "route 10.0.0.0 255.255.255.0 172.22.22.1 1" | |
; VLAN2 | |
push "route 10.0.1.0 255.255.255.0 172.22.22.1 1" | |
; VLAN3 | |
push "route 10.0.2.0 255.255.255.0 172.22.22.1 1" | |
ifconfig-pool 172.22.22.2 172.22.22.199 255.255.255.0 | |
client-to-client | |
keepalive 5 30 | |
comp-lzo | |
user openvpn | |
group openvpn | |
persist-key | |
persist-tun | |
status /var/log/openvpn/openvpn-status.log | |
log-append /var/log/openvpn/openvpn.log | |
verb 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment