- Modificato
Tadaaa!!
ifstatus su OpenWRT:
Premi per mostrare Premi per nascondere
root@OpenWrt:/# ifstatus wan6_4
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": true,
"uptime": 4064,
"l3_device": "map-wan6_4",
"proto": "map",
"updated": [
"routes",
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "2001:ba0:faaa::7840:64fa:aa",
"mask": 128,
"nexthop": "::",
"source": "::/0"
},
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "0.0.0.0",
"source": "0.0.0.0/0"
}
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"firewall": [
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "1704-1707"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "1704-1707"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "1704-1707"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "2728-2731"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "2728-2731"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "2728-2731"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "3752-3755"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "3752-3755"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "3752-3755"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "4776-4779"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "4776-4779"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "4776-4779"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "5800-5803"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "5800-5803"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "5800-5803"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "6824-6827"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "6824-6827"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "6824-6827"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "7848-7851"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "7848-7851"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "7848-7851"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "8872-8875"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "8872-8875"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "8872-8875"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "9896-9899"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "9896-9899"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "9896-9899"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "10920-10923"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "10920-10923"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "10920-10923"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "11944-11947"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "11944-11947"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "11944-11947"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "12968-12971"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "12968-12971"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "12968-12971"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "13992-13995"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "13992-13995"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "13992-13995"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "15016-15019"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "15016-15019"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "15016-15019"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "16040-16043"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "16040-16043"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "16040-16043"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "17064-17067"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "17064-17067"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "17064-17067"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "18088-18091"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "18088-18091"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "18088-18091"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "19112-19115"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "19112-19115"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "19112-19115"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "20136-20139"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "20136-20139"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "20136-20139"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "21160-21163"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "21160-21163"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "21160-21163"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "22184-22187"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "22184-22187"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "22184-22187"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "23208-23211"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "23208-23211"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "23208-23211"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "24232-24235"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "24232-24235"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "24232-24235"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "25256-25259"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "25256-25259"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "25256-25259"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "26280-26283"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "26280-26283"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "26280-26283"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "27304-27307"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "27304-27307"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "27304-27307"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "28328-28331"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "28328-28331"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "28328-28331"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "29352-29355"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "29352-29355"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "29352-29355"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "30376-30379"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "30376-30379"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "30376-30379"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "31400-31403"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "31400-31403"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "31400-31403"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "32424-32427"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "32424-32427"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "32424-32427"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "33448-33451"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "33448-33451"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "33448-33451"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "34472-34475"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "34472-34475"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "34472-34475"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "35496-35499"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "35496-35499"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "35496-35499"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "36520-36523"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "36520-36523"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "36520-36523"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "37544-37547"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "37544-37547"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "37544-37547"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "38568-38571"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "38568-38571"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "38568-38571"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "39592-39595"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "39592-39595"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "39592-39595"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "40616-40619"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "40616-40619"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "40616-40619"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "41640-41643"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "41640-41643"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "41640-41643"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "42664-42667"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "42664-42667"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "42664-42667"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "43688-43691"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "43688-43691"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "43688-43691"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "44712-44715"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "44712-44715"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "44712-44715"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "45736-45739"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "45736-45739"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "45736-45739"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "46760-46763"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "46760-46763"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "46760-46763"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "47784-47787"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "47784-47787"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "47784-47787"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "48808-48811"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "48808-48811"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "48808-48811"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "49832-49835"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "49832-49835"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "49832-49835"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "50856-50859"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "50856-50859"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "50856-50859"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "51880-51883"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "51880-51883"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "51880-51883"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "52904-52907"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "52904-52907"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "52904-52907"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "53928-53931"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "53928-53931"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "53928-53931"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "54952-54955"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "54952-54955"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "54952-54955"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "55976-55979"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "55976-55979"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "55976-55979"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "57000-57003"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "57000-57003"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "57000-57003"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "58024-58027"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "58024-58027"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "58024-58027"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "59048-59051"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "59048-59051"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "59048-59051"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "60072-60075"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "60072-60075"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "60072-60075"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "61096-61099"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "61096-61099"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "61096-61099"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "62120-62123"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "62120-62123"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "62120-62123"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "63144-63147"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "63144-63147"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "63144-63147"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "64168-64171"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "64168-64171"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "64168-64171"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "icmp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "65192-65195"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "tcp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "65192-65195"
},
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"proto": "udp",
"connlimit_ports": true,
"snat_ip": "120.64.100.250",
"snat_port": "65192-65195"
},
{
"type": "rule",
"family": "inet6",
"proto": "all",
"direction": "in",
"dest": "wan",
"src": "wan",
"src_ip": "2001:ba0:faaa::7840:64fa:aa",
"target": "ACCEPT"
},
{
"type": "rule",
"family": "inet6",
"proto": "all",
"direction": "out",
"dest": "wan",
"src": "wan",
"dest_ip": "2001:ba0:faaa::7840:64fa:aa",
"target": "ACCEPT"
}
],
"zone": "wan"
}
}
.
Ho usato OpenWRT per quanto riguarda la CE, Cisco IOS XE sul BR (TNSR non sono riuscito a farlo andare su GNS3, purtroppo) isc-dhcp-server6 come server DHCPv6-PD e Ubuntu come client.
Note a margine:
- MAP-T e Dual Stack possono funzionare insieme contemporanemente, servirebbe qualcuno che sniffi il pacchetto DHCPv6-PD per vedere se MAP-T è già attivo oppure che provi con OpenWRT.
- Non c'è bisogno di nessuna configurazione lato CE, OpenWRT fa tutto da solo quando riceve il DHCPv6 creando una interfaccia virtuale che fa il MAP IPv4-IPv6
- Tutti gli indirizzi IPv4 vengono mappati in una /64 IPv6 che deve essere ruotata al BR dalla rete metro dell'ISP.
- Configurare i link P2P in IPv6 è una bestemmia (in generale)
- Non c'è un modo semplice di vedere quali porte sono state assegnate, purtroppo. OpenWRT (19.07) non segna assolutamente nulla sulla GUI per quanto riguarda MAPT. Inoltre non mi tornano tutte quelle porte che segna ifstatus, dovrebbero essere solo 252 ma sembrano di più e molto frammentate
- Il traceroute con MAP-T sembrano avere poco senso.
Purtroppo a causa dell'immagine di Cisco XE che ho preso da qualche lato oscuro della rete (dai però è uso education... non sto guadagnando sul lavoro d'altri) non posso passarvi il progetto.
Se volete ricrearlo però posso darvi la configurazione della BR e dei router Mikrotik
Gli altri router (Metronet e IPv4) sono dei Mikrotik CHR perchè sapevo già un po' configurarli.
Se avete qualcosa che posso provare ditemi!