heiher / hev-socks5-tunnel

A high-performance tun2socks for Linux/Android/FreeBSD/macOS/iOS/WSL2 (IPv4/IPv6/TCP/UDP)
MIT License
910 stars 164 forks source link

5 seconds deelay on mikrotik #165

Open zlakomanoff opened 1 month ago

zlakomanoff commented 1 month ago

Device -> MikroTik hap x3

docker image -> snegowiki/hev-socks5-tunnel-mikrotik:latest

ENVS LOCAL_ROUTE -> "ip r a 192.168.0.0/16 via 192.168.254.1;ip r a 10.0.0.0/8 via 192.168.254.1;ip r a 172.16.0.0/12 via 192.168.254.1" SOCKS5_ADDR -> "192.168.254.5"

Made by this instructions https://habr.com/en/articles/838452/

heiher commented 1 month ago

What's wrong?

zlakomanoff commented 1 month ago

What's wrong?

5 seconds deelay, when traffic goes through hev-socks5-tunnel container

heiher commented 1 month ago

Did this resolve the issue? https://habr.com/en/articles/838452/#comment_27259040

zlakomanoff commented 1 month ago

Did this resolve the issue? https://habr.com/en/articles/838452/#comment_27259040

No, this comment settings doesnt work.

I studied the problem more deeply, and looks like this problem appear only on android devices, another devices connected through my wifi (my laptop and pc) works wine :/

zlakomanoff commented 1 month ago

upd: the problem exists only on youtube app :/

heiher commented 1 month ago

Interesting, can you reproduce the issue on this app? https://github.com/dovecoteescapee/ByeDPIAndroid

zlakomanoff commented 1 month ago

Interesting, can you reproduce the issue on this app? https://github.com/dovecoteescapee/ByeDPIAndroid

works perfect

the problem is only in the youtube app, youtube website in the web browser (on smartphone) works well

Cykooz commented 3 weeks ago

I have the same problem with YouTube website. All video (even advertisement) starts with delay 6-8 seconds.

In my case, the problem is due to the incorrect routing of YouTube domains. Some of them isn't routed through hev-socks5-tunnel because their IPs isn't in my list of blocked addresses. And it is the reason of delay, because YouTube domains is blocked by our internet-provider. In this case YouTube website drops connection on timeout and tries to use another domain.

wiktorbgu commented 1 week ago

@zlakomanoff byedpi + hev-socks5-tunnel in one container DockerHub