Closed SkyperTHC closed 1 year ago
Thanks for the report!
Completed connections that were immediately terminated hit a condition where a goroutine would just spin in a busy loop and the connection would never be reaped.
Added some logic to get the remote address of a connection up-front and then respond correctly to closed connections in f2cf27d as a part of the tcp-fixes branch. This will be merged into main and a new release once I go through the rest of the related issues and verify that things are working properly.
I'm sorry for not investigation this further and please accept the 'observation' rather than a bug report.
I'm using https://thc.org/segfault/wireguard with the wiretap v0.3.0 (--simple branch) with
WIRETAP_SIMPLE=true ./wiretap_linux_amd64 serve --ipv4-relay 192.168.0.1 --ipv6-relay fd::1 --allowed 192.168.0.1/28,fd::1/125
The Exit Node is a Linux x86_64 running
wiretap
. The origin host runsnmap -n -Pn -sT -p1-512 --open scanme.nmap.org
Issue: The scan never finishes.
It appears that the wiretap keeps the connection open even when the Origin-Server sent a RST.
On the Exit node:
On the origin (where nmap is running)
On the Exit Node the connection still shows ESTAB:
My gut feeling is that wiretap only processes for a 'clean close' (FIN) but ignores the RST.