Created
January 12, 2018 22:22
-
-
Save eightyknots/e9a9206789dc70d6ae1464833bac1926 to your computer and use it in GitHub Desktop.
A sample Unifi gateway config.gateway.json file working with the AT&T Fiber network 6rd IPv6 infrastructure (using /64 prefix).
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": { | |
"ipv6-name": { | |
"wan_in-6": { | |
"default-action": "drop", | |
"description": "ipv6 packets from internet to intranet", | |
"rule": { | |
"1": { | |
"action": "accept", | |
"description": "Allow Enabled/Related state", | |
"state": { | |
"established": "enable", | |
"related": "enable" | |
} | |
}, | |
"2": { | |
"action": "drop", | |
"description": "Drop Invalid state", | |
"log": "enable", | |
"state": { | |
"invalid": "enable" | |
} | |
}, | |
"5": { | |
"action": "accept", | |
"description": "Allow ICMPv6", | |
"log": "enable", | |
"protocol": "icmpv6" | |
} | |
} | |
}, | |
"wan_local-6": { | |
"default-action": "drop", | |
"description": "ipv6 packets from internet to gateway", | |
"rule": { | |
"1": { | |
"action": "accept", | |
"description": "Allow Enabled/Related state", | |
"state": { | |
"established": "enable", | |
"related": "enable" | |
} | |
}, | |
"2": { | |
"action": "drop", | |
"description": "Drop Invalid state", | |
"log": "enable", | |
"state": { | |
"invalid": "enable" | |
} | |
}, | |
"5": { | |
"action": "accept", | |
"description": "Allow ICMPv6", | |
"log": "enable", | |
"protocol": "icmpv6" | |
}, | |
"6": { | |
"action": "accept", | |
"description": "DHCPv6", | |
"destination": { | |
"port": "546" | |
}, | |
"protocol": "udp", | |
"source": { | |
"port": "547" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"interfaces": { | |
"ethernet": { | |
"eth0": { | |
"dhcpv6-pd": { | |
"pd": { | |
"0": { | |
"interface": { | |
"eth1": { | |
"host-address": "::1", | |
"prefix-id": ":0", | |
"service": "slaac" | |
} | |
}, | |
"prefix-length": "64" | |
} | |
}, | |
"rapid-commit": "enable" | |
}, | |
"firewall": { | |
"in": { | |
"ipv6-name": "wan_in-6" | |
}, | |
"local": { | |
"ipv6-name": "wan_local-6" | |
} | |
} | |
}, | |
"eth1": { | |
"ipv6": { | |
"dup-addr-detect-transmits": "1", | |
"router-advert": { | |
"cur-hop-limit": "64", | |
"link-mtu": "0", | |
"managed-flag": "true", | |
"max-interval": "600", | |
"other-config-flag": "false", | |
"prefix": { | |
"::/64": { | |
"autonomous-flag": "true", | |
"on-link-flag": "true", | |
"valid-lifetime": "2592000" | |
} | |
}, | |
"reachable-time": "0", | |
"retrans-timer": "0", | |
"send-advert": "true" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment