Last active
November 3, 2023 15:11
-
-
Save coolhva/12fafd06582d66458b0dec77dc07fe9f to your computer and use it in GitHub Desktop.
IPv6 VLAN 20 intern
This file contains hidden or 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
| { | |
| "system": { | |
| "offload": { | |
| "ipv4": { | |
| "forwarding": "enable", | |
| "gre": "enable", | |
| "pppoe": "enable", | |
| "vlan": "enable" | |
| }, | |
| "ipv6": { | |
| "forwarding": "enable", | |
| "pppoe": "enable", | |
| "vlan": "disable" | |
| } | |
| } | |
| }, | |
| "firewall": { | |
| "ipv6-name": { | |
| "WANv6_LOCAL" : { | |
| "rule": { | |
| "1": { | |
| "action": "accept", | |
| "description": "Allow ICMPv6", | |
| "log": "enable", | |
| "protocol": "icmpv6" | |
| }, | |
| "2": { | |
| "action": "accept", | |
| "description": "DHCPv6", | |
| "destination": { | |
| "port": "546" | |
| }, | |
| "protocol": "udp", | |
| "source": { | |
| "port": "547" | |
| } | |
| } | |
| } | |
| }, | |
| "WANv6_IN" : { | |
| "rule": { | |
| "1": { | |
| "action": "accept", | |
| "description": "Allow ICMPv6", | |
| "log": "enable", | |
| "protocol": "icmpv6" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "interfaces": { | |
| "ethernet": { | |
| "eth0": { | |
| "dhcp-options": { | |
| "default-route": "no-update", | |
| "default-route-distance": "1", | |
| "name-server": "no-update" | |
| }, | |
| "description": "WAN", | |
| "vif": { | |
| "4": { | |
| "address": [ | |
| "dhcp" | |
| ], | |
| "description": "IPTV", | |
| "dhcp-options": { | |
| "client-option": [ | |
| "send vendor-class-identifier "IPTV_RG";", | |
| "request subnet-mask, routers, rfc3442-classless-static-routes;" | |
| ], | |
| "default-route": "no-update", | |
| "default-route-distance": "210", | |
| "name-server": "no-update" | |
| }, | |
| "ip": { | |
| "source-validation": "loose" | |
| }, | |
| "mtu": "1500" | |
| }, | |
| "6": { | |
| "firewall": { | |
| "in": { | |
| "ipv6-name": "WANv6_IN", | |
| "name": "WAN_IN" | |
| }, | |
| "local": { | |
| "ipv6-name": "WANv6_LOCAL", | |
| "name": "WAN_LOCAL" | |
| }, | |
| "out": { | |
| "ipv6-name": "WANv6_OUT", | |
| "name": "WAN_OUT" | |
| } | |
| }, | |
| "pppoe": { | |
| "2": { | |
| "dhcpv6-pd": { | |
| "no-dns": "''", | |
| "pd": { | |
| "0": { | |
| "interface": { | |
| "eth1": { | |
| "host-address": "::1", | |
| "prefix-id": ":1", | |
| "service": "slaac" | |
| }, | |
| "eth1.20": { | |
| "host-address": "::1", | |
| "prefix-id": ":20", | |
| "service": "slaac" | |
| } | |
| }, | |
| "prefix-length": "/48" | |
| } | |
| }, | |
| "rapid-commit": "disable" | |
| }, | |
| "firewall": { | |
| "in": { | |
| "ipv6-name": "WANv6_IN", | |
| "name": "WAN_IN" | |
| }, | |
| "local": { | |
| "ipv6-name": "WANv6_LOCAL", | |
| "name": "WAN_LOCAL" | |
| }, | |
| "out": { | |
| "ipv6-name": "WANv6_OUT", | |
| "name": "WAN_OUT" | |
| } | |
| }, | |
| "ipv6": { | |
| "address": { | |
| "autoconf": "''" | |
| }, | |
| "dup-addr-detect-transmits": "1", | |
| "enable": "''" | |
| }, | |
| "default-route": "auto", | |
| "mtu": "1500", | |
| "name-server": "auto", | |
| "password": "kpn", | |
| "user-id": "kpn" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "eth1": { | |
| "description": "LAN", | |
| "ipv6": { | |
| "address": { | |
| "autoconf": "''" | |
| }, | |
| "dup-addr-detect-transmits": "1", | |
| "router-advert": { | |
| "cur-hop-limit": "64", | |
| "link-mtu": "0", | |
| "managed-flag": "true", | |
| "max-interval": "600", | |
| "name-server": [ | |
| "2606:4700:4700::1111", | |
| "2606:4700:4700::1001" | |
| ], | |
| "other-config-flag": "false", | |
| "prefix": { | |
| "::/64": { | |
| "autonomous-flag": "true", | |
| "on-link-flag": "true", | |
| "valid-lifetime": "2592000" | |
| } | |
| }, | |
| "radvd-options": "RDNSS 2606:4700:4700::1111 2606:4700:4700::1001 {};", | |
| "reachable-time": "0", | |
| "retrans-timer": "0", | |
| "send-advert": "true" | |
| } | |
| }, | |
| "vif": { | |
| "20": { | |
| "ipv6": { | |
| "address": { | |
| "autoconf": "''" | |
| }, | |
| "dup-addr-detect-transmits": "1", | |
| "router-advert": { | |
| "cur-hop-limit": "64", | |
| "link-mtu": "0", | |
| "managed-flag": "true", | |
| "max-interval": "600", | |
| "name-server": [ | |
| "2606:4700:4700::1111", | |
| "2606:4700:4700::1001" | |
| ], | |
| "other-config-flag": "false", | |
| "prefix": { | |
| "::/64": { | |
| "autonomous-flag": "true", | |
| "on-link-flag": "true", | |
| "valid-lifetime": "2592000" | |
| } | |
| }, | |
| "radvd-options": "RDNSS 2606:4700:4700::1111 2606:4700:4700::1001 {};", | |
| "reachable-time": "0", | |
| "retrans-timer": "0", | |
| "send-advert": "true" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "protocols": { | |
| "igmp-proxy": { | |
| "interface": { | |
| "eth0.4": { | |
| "alt-subnet": [ | |
| "0.0.0.0/0" | |
| ], | |
| "role": "upstream", | |
| "threshold": "1" | |
| }, | |
| "eth1": { | |
| "role": "disabled", | |
| "threshold": "1" | |
| }, | |
| "eth1.661": { | |
| "alt-subnet": [ | |
| "0.0.0.0/0" | |
| ], | |
| "role": "downstream", | |
| "threshold": "1" | |
| } | |
| } | |
| }, | |
| "static": { | |
| "interface-route6": { | |
| "::/0": { | |
| "next-hop-interface": { | |
| "pppoe2": "''" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "port-forward": { | |
| "wan-interface": "pppoe2" | |
| }, | |
| "service": { | |
| "dns": { | |
| "forwarding": { | |
| "except-interface": [ | |
| "pppoe2" | |
| ] | |
| } | |
| }, | |
| "nat": { | |
| "rule": { | |
| "5000": { | |
| "description": "MASQ all traffic to IPTV network", | |
| "destination": { | |
| "address": "0.0.0.0/0" | |
| }, | |
| "log": "disable", | |
| "outbound-interface": "eth0.4", | |
| "protocol": "all", | |
| "type": "masquerade" | |
| }, | |
| "6001": { | |
| "outbound-interface": "pppoe2" | |
| }, | |
| "6002": { | |
| "outbound-interface": "pppoe2" | |
| }, | |
| "6003": { | |
| "outbound-interface": "pppoe2" | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment