Skip to content
Contents
GuidesOpenWrt

Where to capture packets on OpenWrt when a TCP handshake times out

First, identify the actual source, destination, ports, and path.

First, identify the actual source, destination, ports, and path. On the LAN side, compare the same new connection with the correct WAN side, for example, tcpdump -ni <接口> 'host 198.51.100.10 and tcp port 443'. After NAT, the source address might change; adjust packet capture conditions according to the interface.

Trace the first missing information hop by hop

SYN packets are observed on both client sides. When WAN receives no response, probe upstream. If WAN receives SYN-ACK but LAN does not see it, check firewall, connection tracking, and return interface. When large packets are stalled, inspect ICMP errors and MSS. Also verify observation points after module unloading.

Inspect the SYN packets from both sides to determine where the request stops

Select a service you manage and a failed port, capturing only the source, destination, and port of that connection. At the ingress, egress, and service end, align SYN and SYN-ACK packets step by step.

Stop long-running captures, limit the number of entries, and truncate length; record only authorized test data. Store start and end times, interfaces, and anonymized samples. Reconstruct the request and verify end-to-end flow closure.

Before checking the outbound path, inspect routing or filtering. If the destination server does not respond, verify service listening. If the response returns to the router but not to the client, further investigate the return path and connection status.

Send a test HTTP request from OpenWrt and capture both SYN and SYN-ACK at the lab peer. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Send a test HTTP request from OpenWrt and capture both SYN and SYN-ACK at the lab peer. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Send a test HTTP request from OpenWrt and capture both SYN and SYN-ACK at the lab peer. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments