Created
January 13, 2020 12:01
-
-
Save fastjack/2d7b1c7bb7404ffcad73187098c17a60 to your computer and use it in GitHub Desktop.
OpenVPN in Unifi
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
"openvpn": { | |
"vtun0": { | |
"encryption": "aes256", | |
"hash": "sha256", | |
"mode": "server", | |
"openvpn-option": [ | |
"--keepalive 8 30", | |
"--comp-lzo", | |
"--duplicate-cn", | |
"--user nobody --group nogroup", | |
"--verb 1", | |
"--proto udp6", | |
"--port 1194", | |
"--persist-key", | |
"--persist-tun", | |
"--tls-auth /config/auth/keys/ta.key 0", | |
"--push redirect-gateway def1 bypass-dhcp", | |
"--server-ipv6 2001:xxxx:xxxx::3::/64", | |
"--push route-ipv6 ::/0" | |
], | |
"server": { | |
"name-server": [ | |
"10.0.1.1" | |
], | |
"push-route": [ | |
"10.0.1.0/24" | |
], | |
"subnet": "10.0.3.0/24" | |
}, | |
"tls": { | |
"ca-cert-file": "/config/auth/keys/ca.crt", | |
"cert-file": "/config/auth/keys/OpenVPN.crt", | |
"dh-file": "/config/auth/keys/dh2048.pem", | |
"key-file": "/config/auth/keys/OpenVPN.key" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment