ScenarioNetwork builds home routers (their first card the WAN port) and their port forwarding (portForwarding, through GatewayFirmware.setStaticNAT). NatRun plays six stories on nat-home's network and writes the frames, the calls and the router's NAT table: a ping, a UDP exchange, the same socket to a second server (whose answer never reaches the LAN: Java keeps one entry per LAN endpoint, for the first remote only), a TCP connection out, a forwarded one in, and pings at the WAN address and past it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
143 lines
3.6 KiB
JSON
143 lines
3.6 KiB
JSON
{
|
|
"seed": 81,
|
|
"nodes": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000501",
|
|
"kind": "pc",
|
|
"ports": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000511",
|
|
"label": "eth0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000502",
|
|
"kind": "gateway",
|
|
"ports": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000521",
|
|
"label": "wan0"
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000522",
|
|
"label": "lan0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000503",
|
|
"kind": "networkSwitch",
|
|
"ports": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000531",
|
|
"label": "sw1"
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000532",
|
|
"label": "sw2"
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000533",
|
|
"label": "sw3"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000504",
|
|
"kind": "pc",
|
|
"ports": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000541",
|
|
"label": "eth0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000505",
|
|
"kind": "pc",
|
|
"ports": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-000000000551",
|
|
"label": "eth0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"id": "00000000-0000-0000-0000-00000000F501",
|
|
"sourceNode": "00000000-0000-0000-0000-000000000501",
|
|
"sourcePort": "00000000-0000-0000-0000-000000000511",
|
|
"targetNode": "00000000-0000-0000-0000-000000000502",
|
|
"targetPort": "00000000-0000-0000-0000-000000000522"
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-00000000F502",
|
|
"sourceNode": "00000000-0000-0000-0000-000000000502",
|
|
"sourcePort": "00000000-0000-0000-0000-000000000521",
|
|
"targetNode": "00000000-0000-0000-0000-000000000503",
|
|
"targetPort": "00000000-0000-0000-0000-000000000531"
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-00000000F503",
|
|
"sourceNode": "00000000-0000-0000-0000-000000000504",
|
|
"sourcePort": "00000000-0000-0000-0000-000000000541",
|
|
"targetNode": "00000000-0000-0000-0000-000000000503",
|
|
"targetPort": "00000000-0000-0000-0000-000000000532"
|
|
},
|
|
{
|
|
"id": "00000000-0000-0000-0000-00000000F504",
|
|
"sourceNode": "00000000-0000-0000-0000-000000000505",
|
|
"sourcePort": "00000000-0000-0000-0000-000000000551",
|
|
"targetNode": "00000000-0000-0000-0000-000000000503",
|
|
"targetPort": "00000000-0000-0000-0000-000000000533"
|
|
}
|
|
],
|
|
"devices": {
|
|
"00000000-0000-0000-0000-000000000501": {
|
|
"ip": "192.168.0.10",
|
|
"mask": "255.255.255.0",
|
|
"gateway": "192.168.0.1"
|
|
},
|
|
"00000000-0000-0000-0000-000000000502": {
|
|
"ip": "42.0.0.10",
|
|
"mask": "255.0.0.0"
|
|
},
|
|
"00000000-0000-0000-0000-000000000504": {
|
|
"ip": "42.0.0.20",
|
|
"mask": "255.0.0.0",
|
|
"gateway": "42.0.0.10"
|
|
},
|
|
"00000000-0000-0000-0000-000000000505": {
|
|
"ip": "42.0.0.30",
|
|
"mask": "255.0.0.0"
|
|
}
|
|
},
|
|
"interfaces": [
|
|
{
|
|
"node": "00000000-0000-0000-0000-000000000502",
|
|
"port": "00000000-0000-0000-0000-000000000521",
|
|
"ip": "42.0.0.10",
|
|
"mask": "255.0.0.0"
|
|
},
|
|
{
|
|
"node": "00000000-0000-0000-0000-000000000502",
|
|
"port": "00000000-0000-0000-0000-000000000522",
|
|
"ip": "192.168.0.1",
|
|
"mask": "255.255.255.0"
|
|
}
|
|
],
|
|
"portForwarding": {
|
|
"00000000-0000-0000-0000-000000000502": [
|
|
[
|
|
"TCP",
|
|
"8080",
|
|
"192.168.0.10",
|
|
"80"
|
|
]
|
|
]
|
|
},
|
|
"steps": []
|
|
}
|