config system interface edit "wan2" config ipv6 set ip6-mode pppoe set ip6-allowaccess ping set dhcp6-prefix-delegation enable set dhcp6-prefix-hint ::/60 set autoconf enable end next end
config system interface edit "lan" config ipv6 set ip6-mode delegated set ip6-allowaccess ping set ip6-send-adv enable set ip6-manage-flag enable set ip6-upstream-interface "wan2" set ip6-subnet ::2/64 set ip6-other-flag enable config ip6-delegated-prefix-list edit 1 set upstream-interface "wan2" set autonomous-flag enable set onlink-flag enable set subnet ::/64 next end end next end
config firewall policy6 edit 1 set name "Default out" set srcintf "lan" set dstintf "wan2" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ALL" set logtraffic all next edit 2 set name "Allow ICMP in" set srcintf "wan2" set dstintf "lan" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ALL_ICMP6" set logtraffic all next end
config system dhcp6 server edit 1 set interface "lan" set upstream-interface "wan2" set ip-mode delegated set dns-server1 2402:4e00:: set dns-server2 2400:3200::1 next end