{"by":"Sakura-sx","descendants":54,"id":46386878,"kids":[46425594,46425477,46426174,46426108,46427224,46428231,46426988,46425108,46425592,46425862,46510533,46426034,46425097,46428423,46425258,46425300],"score":86,"text":"TL;DR explanation (go to <a href=\"https:&#x2F;&#x2F;github.com&#x2F;Sakura-sx&#x2F;Aroma?tab=readme-ov-file#tldr-explanation\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;Sakura-sx&#x2F;Aroma?tab=readme-ov-file#tldr-e...</a> if you want the formatted version)<p>This is done by measuring the minimum TCP RTT (client.socket.tcpi_min_rtt) seen and the smoothed TCP RTT (client.socket.tcpi_rtt). I am getting this data by using Fastly Custom VCL, they get this data from the Linux kernel (struct tcp_info -&gt; tcpi_min_rtt and tcpi_rtt). I am using Fastly for the Demo since they have PoPs all around the world and they expose TCP socket data to me.<p>The score is calculated by doing tcpi_min_rtt&#x2F;tcpi_rtt. It&#x27;s simple but it&#x27;s what worked best for this with the data Fastly gives me. Based on my testing, 1-0.7 is normal, 0.7-0.3 is normal if the connection is somewhat unstable (WiFi, mobile data, satellite...), 0.3-0.1 is low and may be a proxy, anything lower than 0.1 is flagged as TCP proxy by the current code.","time":1766694899,"title":"Show HN: Aroma: Every TCP Proxy Is Detectable with RTT Fingerprinting","type":"story","url":"https://github.com/Sakura-sx/Aroma"}