HellStorm666

USG Pro IPv6 test

Jan 18th, 2017
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.68 KB | None | 0 0
  1. {
  2.     "firewall": {
  3.         "ipv6-name": {
  4.             "WANv6_IN": {
  5.                 "default-action": "drop",
  6.                 "description": "WAN inbound traffic forwarded to LAN",
  7.                 "rule": {
  8.                     "10": {
  9.                         "action": "accept",
  10.                         "description": "Allow established/related sessions",
  11.                         "state": {
  12.                             "established": "enable",
  13.                             "related": "enable"
  14.                         }
  15.                     },
  16.                     "20": {
  17.                         "action": "drop",
  18.                         "description": "Drop invalid state",
  19.                         "state": {
  20.                             "invalid": "enable"
  21.                         }
  22.                     }
  23.                 }
  24.             },
  25.             "WANv6_LOCAL": {
  26.                 "default-action": "drop",
  27.                 "description": "WAN inbound traffic to the router",
  28.                 "rule": {
  29.                     "10": {
  30.                         "action": "accept",
  31.                         "description": "Allow established/related sessions",
  32.                         "state": {
  33.                             "established": "enable",
  34.                             "related": "enable"
  35.                         }
  36.                     },
  37.                     "20": {
  38.                         "action": "drop",
  39.                         "description": "Drop invalid state",
  40.                         "state": {
  41.                             "invalid": "enable"
  42.                         }
  43.                     },
  44.                     "30": {
  45.                         "action": "accept",
  46.                         "description": "Allow IPv6 icmp",
  47.                         "protocol": "ipv6-icmp"
  48.                     },
  49.                     "40": {
  50.                         "action": "accept",
  51.                         "description": "allow dhcpv6",
  52.                         "destination": {
  53.                             "port": "546"
  54.                         },
  55.                         "protocol": "udp",
  56.                         "source": {
  57.                             "port": "547"
  58.                         }
  59.                     }
  60.                 }
  61.             }
  62.         },
  63.         "ipv6-receive-redirects": "disable",
  64.         "ipv6-src-route": "disable",
  65.         "ip-src-route": "disable",
  66.         "log-martians": "enable",
  67.         "source-validation": "disable"
  68.     },
  69.     "interfaces": {
  70.         "ethernet": {
  71.             "eth0": {
  72.                 "description": "eth0 - LAN",
  73.                 "duplex": "auto",
  74.                 "speed": "auto",
  75.                 "ipv6": {
  76.                     "address": {
  77.                         "autoconf": "''"
  78.                     },
  79.                     "dup-addr-detect-transmits": "1",
  80.                     "router-advert": {
  81.                         "cur-hop-limit": "64",
  82.                         "link-mtu": "0",
  83.                         "managed-flag": "true",
  84.                         "max-interval": "600",
  85.                         "name-server": [
  86.                             "****::254"
  87.                         ],
  88.                         "other-config-flag": "true",
  89.                         "prefix": {
  90.                             "::/64": {
  91.                                 "autonomous-flag": "true",
  92.                                 "on-link-flag": "true",
  93.                                 "valid-lifetime": "2592000"
  94.                             }
  95.                         },
  96.                         "radvd-options": [
  97.                             "RDNSS ****::254 {};"
  98.                         ],
  99.                         "reachable-time": "0",
  100.                         "retrans-timer": "0",
  101.                         "send-advert": "true"
  102.                     }
  103.                 }
  104.             },
  105.             "eth2": {
  106.                 "description": "eth2 - FTTH",
  107.                 "duplex": "auto",
  108.                 "mtu": "1512",
  109.                 "speed": "auto",
  110.                 "vif": {
  111.                     "4": {
  112.                         "address": [
  113.                             "dhcp"
  114.                         ],
  115.                         "description": "eth2.4 - IPTV",
  116.                         "dhcp-options": {
  117.                             "client-option": [
  118.                                 "send vendor-class-identifier "IPTV_RG";",
  119.                                 "request subnet-mask, routers, rfc3442-classless-static-routes;"
  120.                             ],
  121.                             "default-route": "no-update",
  122.                             "default-route-distance": "210",
  123.                             "name-server": "update"
  124.                         }
  125.                     },
  126.                     "6": {
  127.                         "description": "eth2.6 - Internet",
  128.                         "mtu": "1508",
  129.                         "pppoe": {
  130.                             "2": {
  131.                                 "default-route": "auto",
  132.                                 "idle-timeout": "180",
  133.                                 "dhcpv6-pd": {
  134.                                     "no-dns": "''",
  135.                                     "pd": {
  136.                                         "0": {
  137.                                             "interface": {
  138.                                                 "eth0": {
  139.                                                     "host-address": "::1",
  140.                                                     "prefix-id": ":1",
  141.                                                     "service": "dhcpv6-stateless"
  142.                                                 }
  143.                                             },
  144.                                             "prefix-length": "/48"
  145.                                         }
  146.                                     },
  147.                                     "rapid-commit": "disable"
  148.                                 },
  149.                                 "firewall": {
  150.                                     "in": {
  151.                                         "ipv6-name": "WANv6_IN",
  152.                                         "name": "WAN_IN"
  153.                                     },
  154.                                     "local": {
  155.                                         "ipv6-name": "WANv6_LOCAL",
  156.                                         "name": "WAN_LOCAL"
  157.                                     }
  158.                                 },
  159.                                 "ipv6": {
  160.                                     "address": {
  161.                                         "autoconf": "''"
  162.                                     },
  163.                                     "dup-addr-detect-transmits": "1",
  164.                                     "enable": "''"
  165.                                 },
  166.                                 "mtu": "1500",
  167.                                 "name-server": "auto",
  168.                                 "password": "kpn",
  169.                                 "user-id": "****@internet"
  170.                             }
  171.                         }
  172.                     }
  173.                 }
  174.             }
  175.         }
  176.     },
  177.     "port-forward": {
  178.         "auto-firewall": "enable",
  179.         "wan-interface": "pppoe2"
  180.     },
  181.     "protocols": {
  182.         "igmp-proxy": {
  183.             "interface": {
  184.                 "eth0": {
  185.                     "role": "disabled",
  186.                     "threshold": "1"
  187.                 },
  188.                 "eth0.5": {
  189.                     "role": "disabled",
  190.                     "threshold": "1"
  191.                 },
  192.                 "eth0.4": {
  193.                     "alt-subnet": [
  194.                         "0.0.0.0/0"
  195.                     ],
  196.                     "role": "downstream",
  197.                     "threshold": "1"
  198.                 },
  199.                 "eth2.4": {
  200.                     "alt-subnet": [
  201.                         "0.0.0.0/0"
  202.                     ],
  203.                     "role": "upstream",
  204.                     "threshold": "1"
  205.                 },
  206.                 "eth2.6": {
  207.                     "role": "disabled",
  208.                     "threshold": "1"
  209.                 },
  210.                 "pppoe2": {
  211.                     "role": "disabled",
  212.                     "threshold": "1"
  213.                 }
  214.             }
  215.         },
  216.         "static": {
  217.             "interface-route6": {
  218.                 "::/0": {
  219.                     "next-hop-interface": {
  220.                         "pppoe2": "''"
  221.                     }
  222.                 }
  223.             }
  224.         }
  225.     },
  226.     "service": {
  227.         "dhcp-server": {
  228.             "hostfile-update": "disable",
  229.             "global-parameters": [
  230.                 "option vendor-class-identifier code 60 = string;",
  231.                 "option broadcast-address code 28 = ip-address;"
  232.             ]
  233.         },
  234.         "nat": {
  235.             "rule": {
  236.                 "5000": {
  237.                     "description": "IPTV",
  238.                     "destination": {
  239.                         "address": "213.75.112.0/21"
  240.                     },
  241.                     "log": "disable",
  242.                     "outbound-interface": "eth2.4",
  243.                     "protocol": "all",
  244.                     "type": "masquerade"
  245.                 },
  246.                 "5010": {
  247.                     "description": "KPN Internet",
  248.                     "log": "disable",
  249.                     "outbound-interface": "pppoe2",
  250.                     "protocol": "all",
  251.                     "type": "masquerade"
  252.                 },
  253.                 "6001": {
  254.                     "disable": "''"
  255.                 },
  256.                 "6002": {
  257.                     "disable": "''"
  258.                 },
  259.                 "6003": {
  260.                     "disable": "''"
  261.                 },
  262.                 "6004": {
  263.                     "disable": "''"
  264.                 }
  265.             }
  266.         }
  267.     },
  268.     "system": {
  269.         "name-server": [
  270.             "208.67.222.222",
  271.             "2620:0:ccc::2",
  272.             "2001:4860:4860::8888",
  273.             "8.8.8.8"
  274.         ]
  275.     }
  276. }
Advertisement
Add Comment
Please, Sign In to add comment