HellStorm666

USG Pro met KPN IPTV

Jan 18th, 2017
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.06 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.                     "dup-addr-detect-transmits": "1",
  77.                     "router-advert": {
  78.                         "cur-hop-limit": "64",
  79.                         "link-mtu": "0",
  80.                         "managed-flag": "true",
  81.                         "max-interval": "600",
  82.                         "name-server": [
  83.                             "****::254"
  84.                         ],
  85.                         "other-config-flag": "true",
  86.                         "prefix": {
  87.                             "::/64": {
  88.                                 "autonomous-flag": "true",
  89.                                 "on-link-flag": "true",
  90.                                 "valid-lifetime": "2592000"
  91.                             }
  92.                         },
  93.                         "radvd-options": [
  94.                             "RDNSS ****::254 {};"
  95.                         ],
  96.                         "reachable-time": "0",
  97.                         "retrans-timer": "0",
  98.                         "send-advert": "true"
  99.                     }
  100.                 }
  101.             },
  102.             "eth2": {
  103.                 "description": "eth2 - FTTH",
  104.                 "duplex": "auto",
  105.                 "mtu": "1512",
  106.                 "speed": "auto",
  107.                 "vif": {
  108.                     "4": {
  109.                         "address": [
  110.                             "dhcp"
  111.                         ],
  112.                         "description": "eth2.4 - IPTV",
  113.                         "dhcp-options": {
  114.                             "client-option": [
  115.                                 "send vendor-class-identifier "IPTV_RG";",
  116.                                 "request subnet-mask, routers, rfc3442-classless-static-routes;"
  117.                             ],
  118.                             "default-route": "no-update",
  119.                             "default-route-distance": "210",
  120.                             "name-server": "update"
  121.                         },
  122.                     },
  123.                     "6": {
  124.                         "description": "eth2.6 - Internet",
  125.                         "mtu": "1508",
  126.                         "pppoe": {
  127.                             "2": {
  128.                                 "default-route": "auto",
  129.                                 "idle-timeout": "180",
  130.                                 "dhcpv6-pd": {
  131.                                     "no-dns": "''",
  132.                                     "pd": {
  133.                                         "0": {
  134.                                             "interface": {
  135.                                                 "eth0": "''",
  136.                                             },
  137.                                             "prefix-length": "/48"
  138.                                         },
  139.                                     },
  140.                                 "rapid-commit": "disable"
  141.                                 },
  142.                                 "firewall": {
  143.                                     "in": {
  144.                                         "ipv6-name": "WANv6_IN",
  145.                                         "name": "WAN_IN"
  146.                                     },
  147.                                     "local": {
  148.                                         "ipv6-name": "WANv6_LOCAL",
  149.                                         "name": "WAN_LOCAL"
  150.                                     }
  151.                                 },
  152.                                 "ipv6": {
  153.                                     "address": {
  154.                                         "autoconf": "''"
  155.                                     },
  156.                                     "dup-addr-detect-transmits": "1",
  157.                                     "enable": "''"
  158.                                 },
  159.                                 "mtu": "1500",
  160.                                 "name-server": "auto",
  161.                                 "password": "kpn",
  162.                                 "user-id": "****@internet"
  163.                             }
  164.                         }
  165.                     }
  166.                 }
  167.             }
  168.         }
  169.     },
  170.     "port-forward": {
  171.         "auto-firewall": "enable",
  172.         "wan-interface": "pppoe2"
  173.     },
  174.     "protocols": {
  175.         "igmp-proxy": {
  176.             "interface": {
  177.                 "eth0": {
  178.                     "role": "disabled",
  179.                     "threshold": "1"
  180.                 },
  181.                 "eth0.5": {
  182.                     "role": "disabled",
  183.                     "threshold": "1"
  184.                 },
  185.                 "eth0.4": {
  186.                     "alt-subnet": [
  187.                         "0.0.0.0/0"
  188.                     ],
  189.                     "role": "downstream",
  190.                     "threshold": "1"
  191.                 },
  192.                 "eth2.4": {
  193.                     "alt-subnet": [
  194.                         "0.0.0.0/0"
  195.                     ],
  196.                     "role": "upstream",
  197.                     "threshold": "1"
  198.                 },
  199.                 "eth2.6": {
  200.                     "role": "disabled",
  201.                     "threshold": "1"
  202.                 },
  203.                 "pppoe2": {
  204.                     "role": "disabled",
  205.                     "threshold": "1"
  206.                 },
  207.             }
  208.         },
  209.         "static": {
  210.             "interface-route6": {
  211.                 "::/0": {
  212.                     "next-hop-interface": {
  213.                         "pppoe2": "''"
  214.                     }
  215.                 }
  216.             },
  217.         },
  218.     },
  219.     "service": {
  220.         "dhcp-server": {
  221.             "hostfile-update": "disable",
  222.             "global-parameters": [
  223.                 "option vendor-class-identifier code 60 = string;",
  224.                 "option broadcast-address code 28 = ip-address;"
  225.             ],
  226.         },
  227.         "nat": {
  228.             "rule": {
  229.                 "5000": {
  230.                     "description": "IPTV",
  231.                     "destination": {
  232.                         "address": "213.75.112.0/21"
  233.                     },
  234.                     "log": "disable",
  235.                     "outbound-interface": "eth2.4",
  236.                     "protocol": "all",
  237.                     "type": "masquerade"
  238.                 },
  239.                 "5010": {
  240.                     "description": "KPN Internet",
  241.                     "log": "disable",
  242.                     "outbound-interface": "pppoe2",
  243.                     "protocol": "all",
  244.                     "type": "masquerade"
  245.                 },
  246.                 "6001": {
  247.                     "disable": "''"
  248.                 },
  249.                 "6002": {
  250.                     "disable": "''"
  251.                 },
  252.                 "6003": {
  253.                     "disable": "''"
  254.                 },
  255.                 "6004": {
  256.                     "disable": "''"
  257.                 }
  258.             }
  259.         }
  260.     },
  261.     "system": {
  262.         "name-server": [
  263.             "208.67.222.222",
  264.             "2620:0:ccc::2",
  265.             "2001:4860:4860::8888",
  266.             "8.8.8.8"
  267.         ]
  268.     }
  269. }
Advertisement
Add Comment
Please, Sign In to add comment