apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
15.06k stars 1.68k forks source link

Random port hopping for each new request instead of hopinterval #999

Open iamtrazy opened 7 months ago

iamtrazy commented 7 months ago

In Sri lanka the internet cost is very high and people looks into ways to bypass captive portals. In recent cases we found that the first UDP packet less that 1400 bytes always sent to the server even when the data package is fully expired. Some proprietary protocols such as http customs UDPs proprietry UDP protocol utilize this (https://github.com/http-custom/udp-custom). They all work by sending UDP requests for each new connection to a sequence of ports such as 6000-60000 . first request goes to port 6001 , then 6002 , etc. Even though speed is mostly around 1mbps and latency is very bad this actually works. If we could have a feature where instead of 5s hop interval , New hop for each new connection , it would bypass the captive portal and give free internet access for people in my country.

mmmray commented 7 months ago

are ICMP tunnels a solution in sri lanka?