transix (インターネットマルチフィード)、Xpass (アルテリア) などの IPoE (IP over Ethernet) IPv6 接続に DS-Lite トンネルを張り、IPv4 とのデュアルスタック接続を行う手順です。
gw.transix.jpdgw.xpass.jpdslite.v6connect.net{
"version": "1.0",
"network": {
"wan": {
"wan": {
"ipv4": [{ "mode": "ds-lite", "aftrServer": "gw.transix.jp", "mtu": 1460 }],
"ipv6": [{ "mode": "dhcpv6", "interfaceId": "::1" }]
}
},
"lan": {
"lan": {
"default": true,
"ipv4": { "mode": "static", "address": "192.168.100.1/24" },
"ipv6": { "ra": "server", "dhcpv6": "server" },
"dhcp": {
"enabled": true,
"rangeStart": "192.168.100.100",
"rangeEnd": "192.168.100.150",
"leaseTime": "12h"
}
}
},
"ports": {
"sfp0": { "mode": "access", "network": "wan" },
"eth0": { "mode": "access", "network": "lan" },
"eth1": { "mode": "access", "network": "lan" },
"eth2": { "mode": "access", "network": "lan" },
"eth3": { "mode": "access", "network": "lan" },
"sfp1": { "mode": "access", "network": "lan" },
"sfp2": { "mode": "access", "network": "lan" },
"sfp3": { "mode": "access", "network": "lan" }
}
},
"firewall": {
"defaults": { "input": "drop", "output": "accept", "forward": "drop" },
"zones": {
"lan": { "members": ["lan"], "input": "accept", "output": "accept", "forward": "accept" },
"wan": { "members": ["wan"], "input": "drop", "output": "accept", "forward": "drop", "nat": true }
},
"forwardings": [{ "from": "lan", "to": "wan" }],
"rules": [
{ "name": "Allow-DHCP-Renew", "source": "wan", "protocol": "udp", "dstPort": [68], "family": "ipv4", "action": "accept" },
{ "name": "Allow-Ping", "source": "wan", "protocol": "icmp", "icmpType": ["echo-request"], "family": "ipv4", "action": "accept" },
{ "name": "Allow-DHCPv6", "source": "wan", "protocol": "udp", "dstPort": [546], "family": "ipv6", "action": "accept" },
{ "name": "Allow-ICMPv6-Input", "source": "wan", "protocol": "icmp", "family": "ipv6", "icmpType": ["echo-request", "echo-reply", "destination-unreachable", "packet-too-big", "time-exceeded", "router-solicitation", "neighbour-solicitation", "router-advertisement", "neighbour-advertisement"], "limit": "1000/sec", "action": "accept" }
]
},
"system": {
"hostname": "my-router",
"timezone": "Asia/Tokyo",
"maintenanceWindows": [
{ "dayOfWeek": 0, "startTime": "02:00", "durationMinutes": 120, "timezone": "Asia/Tokyo" }
]
}
}