Last active
November 12, 2019 02:11
-
-
Save chkelly/256df10f56240f63efc4805d8f448014 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"firewall": { | |
"name": { | |
"WAN_LOCAL": { | |
"rule": { | |
"20": { | |
"action": "accept", | |
"description": "Allow OpenVPN clients in", | |
"destination": { | |
"port": 1194 | |
}, | |
"log": "disable", | |
"protocol": "udp" | |
}, | |
"21": { | |
"action": "accept", | |
"description": "Allow OpenVPN clients in", | |
"destination": { | |
"port": 8443 | |
}, | |
"log": "disable", | |
"protocol": "tcp" | |
} | |
} | |
} | |
} | |
}, | |
"interfaces": { | |
"openvpn": { | |
"vtun0": { | |
"encryption": "aes128", | |
"mode": "server", | |
"openvpn-option": [ | |
"--keepalive 8 30", | |
"--comp-lzo", | |
"--duplicate-cn", | |
"--user nobody --group nogroup", | |
"--plugin /usr/lib/openvpn/openvpn-auth-pam.so openvpn", | |
"--client-cert-not-required --username-as-common-name", | |
"--verb 1", | |
"--proto udp6", | |
"--port 1194", | |
"--push redirect-gateway def1", | |
"--push dhcp-option DNS 8.8.8.8", | |
"--push dhcp-option DNS 8.8.4.4", | |
"--push route 192.168.50.0 255.255.255.0", | |
"--push route 192.168.51.0 255.255.255.0", | |
"--push route 192.168.52.0 255.255.255.0" | |
], | |
"server": { | |
"subnet": "192.168.51.0/24" | |
}, | |
"tls": { | |
"ca-cert-file": "/config/auth/keys/ca.crt", | |
"cert-file": "/config/auth/keys/server.crt", | |
"dh-file": "/config/auth/keys/dh2048.pem", | |
"key-file": "/config/auth/keys/server.key" | |
} | |
}, | |
"vtun1": { | |
"encryption": "aes128", | |
"mode": "server", | |
"openvpn-option": [ | |
"--keepalive 8 30", | |
"--comp-lzo", | |
"--duplicate-cn", | |
"--user nobody --group nogroup", | |
"--plugin /usr/lib/openvpn/openvpn-auth-pam.so openvpn", | |
"--client-cert-not-required --username-as-common-name", | |
"--verb 1", | |
"--proto tcp6", | |
"--port 8443", | |
"--push redirect-gateway def1", | |
"--push dhcp-option DNS 8.8.8.8", | |
"--push dhcp-option DNS 8.8.4.4", | |
"--push route 192.168.50.0 255.255.255.0", | |
"--push route 192.168.51.0 255.255.255.0", | |
"--push route 192.168.52.0 255.255.255.0" | |
], | |
"server": { | |
"subnet": "192.168.51.0/24" | |
}, | |
"tls": { | |
"ca-cert-file": "/config/auth/keys/ca.crt", | |
"cert-file": "/config/auth/keys/server.crt", | |
"dh-file": "/config/auth/keys/dh2048.pem", | |
"key-file": "/config/auth/keys/server.key" | |
} | |
} | |
} | |
}, | |
"system": { | |
"task-scheduler": { | |
"task": { | |
"postprovision": { | |
"executable": { | |
"path": "/config/scripts/postprovision.sh" | |
}, | |
"interval": "3m" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment