Skip to content

Instantly share code, notes, and snippets.

@fastjack
Created January 13, 2020 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastjack/2d7b1c7bb7404ffcad73187098c17a60 to your computer and use it in GitHub Desktop.
Save fastjack/2d7b1c7bb7404ffcad73187098c17a60 to your computer and use it in GitHub Desktop.
OpenVPN in Unifi
"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