Skip to content

Instantly share code, notes, and snippets.

@jasonrm
Last active May 9, 2018 00:35
Show Gist options
  • Select an option

  • Save jasonrm/bd36196202eb2ff15aa0ec6ca0ac4041 to your computer and use it in GitHub Desktop.

Select an option

Save jasonrm/bd36196202eb2ff15aa0ec6ca0ac4041 to your computer and use it in GitHub Desktop.
UniFi config.gateway.json
{
"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