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>
160 lines
3.8 KiB
JSON
160 lines
3.8 KiB
JSON
{
|
|
"frames": {
|
|
"00000000-0000-0000-0000-000000000501": [
|
|
{
|
|
"time": 923,
|
|
"source": "02:00:00:00:05:11",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "192.168.0.10",
|
|
"targetIp": "192.168.0.1"
|
|
},
|
|
{
|
|
"time": 1042,
|
|
"source": "02:00:00:00:05:22",
|
|
"destination": "02:00:00:00:05:11",
|
|
"arp": 2,
|
|
"senderIp": "192.168.0.1",
|
|
"targetIp": "192.168.0.10"
|
|
},
|
|
{
|
|
"time": 1045,
|
|
"source": "02:00:00:00:05:11",
|
|
"destination": "02:00:00:00:05:22",
|
|
"sourceIp": "192.168.0.10",
|
|
"destinationIp": "42.0.0.20",
|
|
"protocol": 17,
|
|
"sourcePort": 62293,
|
|
"destinationPort": 7,
|
|
"payload": "one"
|
|
},
|
|
{
|
|
"time": 1614,
|
|
"source": "02:00:00:00:05:22",
|
|
"destination": "02:00:00:00:05:11",
|
|
"sourceIp": "42.0.0.20",
|
|
"destinationIp": "192.168.0.10",
|
|
"protocol": 17,
|
|
"sourcePort": 7,
|
|
"destinationPort": 62293,
|
|
"payload": "pong one"
|
|
}
|
|
],
|
|
"00000000-0000-0000-0000-000000000502": [
|
|
{
|
|
"time": 1107,
|
|
"source": "02:00:00:00:05:21",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "42.0.0.10",
|
|
"targetIp": "42.0.0.20"
|
|
},
|
|
{
|
|
"time": 1333,
|
|
"source": "02:00:00:00:05:41",
|
|
"destination": "02:00:00:00:05:21",
|
|
"arp": 2,
|
|
"senderIp": "42.0.0.20",
|
|
"targetIp": "42.0.0.10"
|
|
},
|
|
{
|
|
"time": 1333,
|
|
"source": "02:00:00:00:05:21",
|
|
"destination": "02:00:00:00:05:41",
|
|
"sourceIp": "42.0.0.10",
|
|
"destinationIp": "42.0.0.20",
|
|
"protocol": 17,
|
|
"sourcePort": 50801,
|
|
"destinationPort": 7,
|
|
"payload": "one"
|
|
},
|
|
{
|
|
"time": 1558,
|
|
"source": "02:00:00:00:05:41",
|
|
"destination": "02:00:00:00:05:21",
|
|
"sourceIp": "42.0.0.20",
|
|
"destinationIp": "42.0.0.10",
|
|
"protocol": 17,
|
|
"sourcePort": 7,
|
|
"destinationPort": 50801,
|
|
"payload": "pong one"
|
|
}
|
|
],
|
|
"00000000-0000-0000-0000-000000000504": [
|
|
{
|
|
"time": 1221,
|
|
"source": "02:00:00:00:05:21",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "42.0.0.10",
|
|
"targetIp": "42.0.0.20"
|
|
},
|
|
{
|
|
"time": 1221,
|
|
"source": "02:00:00:00:05:41",
|
|
"destination": "02:00:00:00:05:21",
|
|
"arp": 2,
|
|
"senderIp": "42.0.0.20",
|
|
"targetIp": "42.0.0.10"
|
|
},
|
|
{
|
|
"time": 1445,
|
|
"source": "02:00:00:00:05:21",
|
|
"destination": "02:00:00:00:05:41",
|
|
"sourceIp": "42.0.0.10",
|
|
"destinationIp": "42.0.0.20",
|
|
"protocol": 17,
|
|
"sourcePort": 50801,
|
|
"destinationPort": 7,
|
|
"payload": "one"
|
|
},
|
|
{
|
|
"time": 1447,
|
|
"source": "02:00:00:00:05:41",
|
|
"destination": "02:00:00:00:05:21",
|
|
"sourceIp": "42.0.0.20",
|
|
"destinationIp": "42.0.0.10",
|
|
"protocol": 17,
|
|
"sourcePort": 7,
|
|
"destinationPort": 50801,
|
|
"payload": "pong one"
|
|
}
|
|
],
|
|
"00000000-0000-0000-0000-000000000505": [
|
|
{
|
|
"time": 1221,
|
|
"source": "02:00:00:00:05:21",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "42.0.0.10",
|
|
"targetIp": "42.0.0.20"
|
|
}
|
|
]
|
|
},
|
|
"events": [
|
|
[
|
|
917,
|
|
"senden 42.0.0.20 called"
|
|
],
|
|
[
|
|
919,
|
|
"senden 42.0.0.20 returned "
|
|
],
|
|
[
|
|
919,
|
|
"empfangen called"
|
|
],
|
|
[
|
|
1447,
|
|
"server received one"
|
|
],
|
|
[
|
|
1615,
|
|
"empfangen returned pong one"
|
|
]
|
|
],
|
|
"nat": [
|
|
"17 42.0.0.20:50801 -> 192.168.0.10:62293 DynamicEntry"
|
|
]
|
|
}
|