kiwibob1

Unifi USG IPv6 snippet

Aug 2nd, 2017
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.35 KB | None | 0 0
  1. {
  2.         "firewall": {
  3.                 "ipv6-name": {
  4.                         "wan_in-6": {
  5.                                 "default-action": "drop",
  6.                                 "description": "wan_in",
  7.                                 "enable-default-log": "''",
  8.                                 "rule": {
  9.                                         "1": {
  10.                                                 "action": "accept",
  11.                                                 "description": "Allow Enabled/Related state",
  12.                                                 "state": {
  13.                                                         "established": "enable",
  14.                                                         "related": "enable"
  15.                                                 }
  16.                                         },
  17.                                         "2": {
  18.                                                 "action": "drop",
  19.                                                 "description": "Drop Invalid state",
  20.                                                 "log": "enable",
  21.                                                 "state": {
  22.                                                         "invalid": "enable"
  23.                                                 }
  24.                                         },
  25.                                         "5": {
  26.                                                 "action": "accept",
  27.                                                 "description": "Allow ICMPv6",
  28.                                                 "log": "enable",
  29.                                                 "protocol": "icmpv6"
  30.                                         }
  31.                                 }
  32.                         },
  33.                         "wan_local-6": {
  34.                                 "default-action": "drop",
  35.                                 "description": "wan_local",
  36.                                 "enable-default-log": "''",
  37.                                 "rule": {
  38.                                         "1": {
  39.                                                 "action": "accept",
  40.                                                 "description": "Allow Enabled/Related state",
  41.                                                 "state": {
  42.                                                         "established": "enable",
  43.                                                         "related": "enable"
  44.                                                 }
  45.                                         },
  46.                                         "2": {
  47.                                                 "action": "drop",
  48.                                                 "description": "Drop Invalid state",
  49.                                                 "log": "enable",
  50.                                                 "state": {
  51.                                                         "invalid": "enable"
  52.                                                 }
  53.                                         },
  54.                                         "5": {
  55.                                                 "action": "accept",
  56.                                                 "description": "Allow ICMPv6",
  57.                                                 "log": "enable",
  58.                                                 "protocol": "icmpv6"
  59.                                         },
  60.                                         "6": {
  61.                                                 "action": "accept",
  62.                                                 "description": "DHCPv6",
  63.                                                 "destination": {
  64.                                                         "port": "546"
  65.                                                 },
  66.                                                 "protocol": "udp",
  67.                                                 "source": {
  68.                                                         "port": "547"
  69.                                                 }
  70.                                         }
  71.                                 }
  72.                         }
  73.                 }
  74.         },
  75.         "interfaces": {
  76.                 "ethernet": {
  77.                         "eth0": {
  78.                                 "address": [
  79.                                         "192.168.3.2/24"
  80.                                 ],
  81.                                 "duplex": "auto",
  82.                                 "firewall": {
  83.                                         "in": {
  84.                                                 "name": "WAN_IN"
  85.                                         },
  86.                                         "local": {
  87.                                                 "name": "WAN_LOCAL"
  88.                                         },
  89.                                         "out": {
  90.                                                 "name": "WAN_OUT"
  91.                                         }
  92.                                 },
  93.                                 "pppoe": {
  94.                                         "0": {
  95.                                                 "default-route": "auto",
  96.                                                 "dhcpv6-pd": {
  97.                                                         "no-dns": "''",
  98.                                                         "pd": {
  99.                                                                 "0": {
  100.                                                                         "interface": {
  101.                                                                                 "eth1": {
  102.                                                                                         "host-address": "::1",
  103.                                                                                         "no-dns": "''",
  104.                                                                                         "service": "slaac"
  105.                                                                                 },
  106.                                                                                 "eth2": {
  107.                                                                                         "host-address": "::1",
  108.                                                                                         "no-dns": "''",
  109.                                                                                         "service": "slaac"
  110.                                                                                 }
  111.                                                                        },
  112.                                                                         "prefix-length": "/56"
  113.                                                                 }
  114.                                                         },
  115.                                                         "rapid-commit": "enable"
  116.                                                 },
  117.                                                 "firewall": {
  118.                                                         "in": {
  119.                                                                 "ipv6-name": "wan_in-6",
  120.                                                                 "name": "WAN_IN"
  121.                                                         },
  122.                                                         "local": {
  123.                                                                 "ipv6-name": "wan_local-6",
  124.                                                                 "name": "WAN_LOCAL"
  125.                                                         },
  126.                                                         "out": {
  127.                                                                 "name": "WAN_OUT"
  128.                                                         }
  129.                                                 },
  130.                                                 "ipv6": {
  131.                                                         "dup-addr-detect-transmits": "1",
  132.                                                         "enable": "''"
  133.                                                 },
  134.                                                 "mtu": "1492",
  135.                                                 "name-server": "none"
  136.                                         }
  137.                                 },
  138.                                 "speed": "auto"
  139.                         }
  140.                 }
  141.         }
  142. }
Advertisement
Add Comment
Please, Sign In to add comment