You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
3.2 KiB
Plaintext

3 years ago
:experimental:
3 years ago
:imagesdir: imgs
3 years ago
3 years ago
WARNING: This is not complete, despite the instructions working. I have ideas on how to improve this.
3 years ago
== Requirements
* Magisk 22.1 (older versions not tested)
* link:https://github.com/Magisk-Modules-Repo/MagiskHidePropsConf#installation[MagiskHide Props Config] module installed
* A terminal emulator; either link:https://f-droid.org/en/packages/com.termux/[Termux] or link:https://f-droid.org/en/packages/com.termoneplus/[TermOnePlus]
- Want to use Linux software? Install Termux.
* AFWall+ 3.5.1 (older versions not tested)
3 years ago
== Optional requirements
3 years ago
* Kernel with "xt_HL.ko" module enabled; netfilter's TTL packet mangling
* Busybox Magisk module
.Installing Busybox Magisk module
[%collapsible]
====
. image:MV1iA.png[]
. Search for 'Busybox' to find "Busybox for Android NDK", then install it.
====
3 years ago
NOTE: Testing xt_HL support: +
1. Launch a terminal emulator. +
2. ``su`` +
3. ``iptables --ttl-set`` +
-> If your custom kernel does not support "--ttl-set", inform them of this repository publically (increase exposure of these instructions).
3 years ago
TIP: link:https://web.archive.org/web/20210423030541/https://forum.xda-developers.com/t/magisk-stock-bypass-tether-restrictions.4262265/[A reference for enabling xt_HL support through Magisk].
3 years ago
== 1. Configure props
3 years ago
NOTE: ↵ is the kbd:[Enter / Return] key.
. Launch a terminal emulator.
- ``su``
3 years ago
NOTE: This is a precaution; likely useless.
- ``settings delete system tether_entitlement_check_state;settings delete global tether_dun_required``
3 years ago
- ``props``
** "Select an option below." (4 for "Add/edit custom props") kbd:[4 ↵]
** Select "New custom prop" with kbd:[n ↵]
*** `net.tethering.noprovisioning` kbd:[↵] -> kbd:[true ↵] -> kbd:[y ↵]
** "Do you want to reboot now?" kbd:[n ↵]
** Select "New custom prop" with kbd:[n ↵]
3 years ago
*** `tether_entitlement_check_state` kbd:[↵] -> kbd:[0 ↵] -> kbd:[y ↵]
** Select "New custom prop" with kbd:[n ↵]
*** `tether_dun_required` kbd:[↵] -> kbd:[0 ↵] -> kbd:[y ↵]
***** "Do you want to reboot now?" -> kbd:[y ↵]
3 years ago
== 2. Configure networking
3 years ago
NOTE: "xt_HL.ko" method stops TTL problems for WiFi & Mobile connections; only changes TTL to 65 for Tethering since other devices subtract TTL by 1 to get the correct 64 TTL.
."xt_HL.ko" required method
[%collapsible]
====
3 years ago
. Open AFWall+ -> 3 vertical dots (hamburger menu) -> Preferences
- UI Preferences
** Confirm AFWall+ disable -> Enabled
- Binaries
3 years ago
** Iptables binary -> System iptables
** **[optional]** BusyBox binary -> System BusyBox
3 years ago
3 years ago
* Open AFWall+ -> 3 vertical dots (hamburger menu) -> Set custom script
3 years ago
NOTE: Blanket setting \*rmnet* might be a bad idea? +
rndis* is specific to USB tethering; \*rmnet* still has business with USB tethering, along with all other tether types.
TIP: Put in "Enter custom script below".
[source]
----
iptables -t mangle -A POSTROUTING -o wlan+ -j TTL --ttl-set 64
ip6tables -t mangle -A POSTROUTING -o wlan+ -j HL --hl-set 64
iptables -t mangle -A POSTROUTING -o +rmnet+ -j TTL --ttl-set 65
iptables -t mangle -A POSTROUTING -o rndis+ -j TTL --ttl-set 65
ip6tables -t mangle -A POSTROUTING -o +rmnet+ -j HL --hl-set 65
ip6tables -t mangle -A POSTROUTING -o rndis+ -j HL --hl-set 65
----
3 years ago
====
3 years ago