Closed comzyh closed 3 years ago
This issue can be reproduced by using nping and let OS replay a ICMP dst unreachable back to TUN
sudo nping --udp -S 1.1.1.1 -g 54 -p 12345 172.18.217.118
1.1.1.1:54 is Tun dns endpoint, and 172.18.217.118:12345 is a radom unreachable endpoint. OS will replay unreachable to 1.1.1.1:54 which will be handled by clash tun
For some reason, when a client send a UDP DNS request to tun-dns, the response can not reach the client and tun-dns will get an icmp reply indicate an error has occured.
But
HandleError
is not implimented bydnsEndpoint
.