Last active
May 9, 2018 00:35
-
-
Save jasonrm/bd36196202eb2ff15aa0ec6ca0ac4041 to your computer and use it in GitHub Desktop.
UniFi config.gateway.json
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
| { | |
| "firewall": { | |
| "group": { | |
| "network-group": { | |
| "rfc1918_networks": { | |
| "network": [ | |
| "192.168.0.0/16", | |
| "172.16.0.0/12", | |
| "10.0.0.0/8" | |
| ], | |
| "description": "RFC 1918 Private Networks" | |
| } | |
| } | |
| } | |
| }, | |
| "interfaces": { | |
| "ethernet": { | |
| "eth0": { | |
| "dhcpv6-pd": { | |
| "no-dns": "''", | |
| } | |
| }, | |
| "eth1": { | |
| "ip": { | |
| "ospf": { | |
| "cost": "10", | |
| "dead-interval": "40", | |
| "hello-interval": "10", | |
| "priority": "1", | |
| "retransmit-interval": "5", | |
| "transmit-delay": "1" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "protocols": { | |
| "ospf": { | |
| "area": { | |
| "0.0.0.0": { | |
| "network": [ | |
| "10.76.32.0/20" | |
| ] | |
| } | |
| }, | |
| "parameters": { | |
| "router-id": "10.76.32.1" | |
| } | |
| } | |
| }, | |
| "service": { | |
| "nat": { | |
| "rule": { | |
| "9009": { | |
| "description": "MASQ rfc1918 to WAN", | |
| "log": "disable", | |
| "outbound-interface": "eth0", | |
| "protocol": "all", | |
| "source": { | |
| "group": { | |
| "network-group": "rfc1918_networks" | |
| } | |
| }, | |
| "type": "masquerade" | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment