TTL Bypass
Does it have TTL and DPI bypass ? I need that for my Tethering Hotspot as my Operator detects it and limits my usage . Is it possible to implement those features in this app ?
Test this CI APK to see if TTL bypass works:
https://github.com/ravindu644/VirtualAP/actions/runs/37138524314/artifacts/11280020864
I have no idea about DPI bypass though.
TTL value still come as 128 (not 64) on my laptop connected to my Phone by virtual ap by your app (not hotspot).
https://github.com/dovecoteescapee/byedpiandroid
You can refer to the above project about DPI, however I have heard there are many ways of DPI bypass being needed and there is not any one method to it.
TTL value still come as 128 (not 64) on my laptop connected to my Phone by virtual ap by your app (not hotspot).
can you verify if the packets leaves the phone in TTL64? it's what matters.
The 128 you see on the laptop is Windows' own default TTL. The fix does not change anything on the laptop. It rewrites the packet on the phone, after the laptop has sent it, so the laptop will always show its own numbers. What matters is the TTL of the packets leaving the phone, and you can check that on the phone itself.
First, make sure the TTL fix toggle in the app is switched on and not greyed out. If it is greyed out, your kernel does not have the TTL target and the fix cannot work on it.
Check 1: is the rule active? (works on any rooted phone)
Run this in a root shell on the phone (Termux or adb shell) while the laptop is browsing:
su -c 'iptables -t mangle -vnL vap_ttl'
You should see one rule ending in TTL set to 64. Run it a few times: the pkts number in the first column should keep going up. If it says the chain does not exist, the fix is not active.
Check 2: look at the packets leaving the phone (needs tcpdump on the phone)
On the phone:
su -c 'tcpdump -i wlan0 -n -v "icmp and dst host 9.9.9.9"'
Then on the laptop:
ping 9.9.9.9
wlan0 is right when the phone gets its internet from Wi-Fi. On mobile data use that interface instead (often rmnet_data0 or similar). This prints the one actually in use:
su -c 'ip route get 9.9.9.9'
This is what it looks like on my phone, with a laptop pinging through the hotspot:
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
22:53:27.851747 IP (tos 0x0, ttl 64, id 7177, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.8.100 > 9.9.9.9: ICMP echo request, id 39952, seq 1, length 64
22:53:28.851921 IP (tos 0x0, ttl 64, id 7478, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.8.100 > 9.9.9.9: ICMP echo request, id 39952, seq 2, length 64
ttl 64 there is what your operator sees. If you get ttl 64, the fix is working. If you get ttl 127 (or 126), it is not, and I would like to see the output of Check 1 and whether the toggle was greyed out.
Thanks for the ByeDPI link. DPI bypass is a separate thing from this and I have not looked into it yet.
Yes it's working. Thanks so much. So the DPI feature can't be implemented in the same app ?
Yes it's working. Thanks so much. So the DPI feature can't be implemented in the same app ?
I'll try it once I got free time :)
You can move the DPI bypass to an another issue and close this one.