Advertisement
simkin

config.gateway.json

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