Android USB Tethering to Archer A7-v5 v3.0-r55179

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
graymon
DD-WRT Novice


Joined: 14 Mar 2024
Posts: 2

PostPosted: Thu Mar 14, 2024 19:58    Post subject: Android USB Tethering to Archer A7-v5 v3.0-r55179 Reply with quote
Question about setting USB Tethering with Tp_link AC1750 with Archer A7-v5 with firmware v3.0-r55179 (the newest one I could find.)

Is USB Tethering supported with this setup? I enabled USB in the GUI (Services==>USB). The Android phone charges and can go into USB tether mode through the USB port. It doesn't appear there is anyway in the GUI to turn this on. The docs reference adding rdnis modules, but those don't exist in this build, and those docs a pretty old.

Thanks for anyone that can help. Sorry if this information was somewhere and I couldn't find it.
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Thu Mar 14, 2024 23:52    Post subject: Reply with quote
Android tethering is not natively supported in DD-WRT, it's never been natively supported in DD-WRT, and those docs are the most current information on the subject.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1081
Location: WV, USA

PostPosted: Fri Mar 15, 2024 0:25    Post subject: Reply with quote
I have successfully made this work on my EA8500. I had to build two kernel modules:

cdc_ether.ko
rndis_host.ko

I have not tried this at all using k6.1 builds.
Then I had to add this to startup:
Code:

#Kernel Modules for cell phone tethering
insmod /lib/modules/4.9.xx/usbnet.ko
insmod /opt/modules/kmodules/cdc_ether.ko
sleep 4
insmod /opt/modules/kmodules/rndis.ko

Then you need to add some firewall rules:
Code:

#Use ONLY for cell phone tethering
ifconfig usb0 up
udhcpc -i usb0
iptables --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE
iptables --append FORWARD --in-interface br0 -j ACCEPT
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
Record WANIP at boot


If you are not familiar with building kernel modules against DD-WRT kernel source, you will not get very far. This is not an easy task for a beginner.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Fri Mar 15, 2024 8:45    Post subject: Reply with quote
lexridge awesome...10x..so there was a way...
lets see if BS will add it... Laughing Razz

I recently tried tethering on Iphone but, with no avail...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Fri Mar 15, 2024 15:53    Post subject: Reply with quote
Doubtful. I requested it 4 years ago for targets that it will fit.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
graymon
DD-WRT Novice


Joined: 14 Mar 2024
Posts: 2

PostPosted: Fri Mar 15, 2024 16:04    Post subject: Reply with quote
Thanks all - there are these GL.iNet mobile routers, it might just be easier to go that route. Thank you.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1081
Location: WV, USA

PostPosted: Fri Mar 15, 2024 19:10    Post subject: Reply with quote
Here are the Android tether k4.9 modules for r53562 and maybe lesser versions too. These will NOT WORK with k6.1 builds. I built these against the EA8500 kernel source so not sure what other routers these may work with. if successfully loaded, you will see them in your lsmod output.
Code:

Module                  Size  Used by
rndis_host              4740  0
cdc_ether               5079  1 rndis_host
usbnet                 18219  2 rndis_host,cdc_ether


Edit: Just tested these on a R7800 (r53562) and they loaded fine on that router too.
Edit2: Tried to build these on the 6.1 kernel, but it appears the USBNET module is disabled in the .config for the kernel. Also RNDISHOST and CDCHOST modules are both entirely missing from the .config file. Could they be added and enabled? Probably, but since I don't have a working k6.1 build to test these on imma not even gonna try it for now.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Fri Apr 12, 2024 5:05    Post subject: Reply with quote
Should be natively supported in the current release for those routers that support it:

2024 - Android usb tethering to dd-wrt router?

kernel-panic69 wrote:
Android Tethering Added

Add ncm support

Android Tethering fixes



DD-WRT Forum Index -> Atheros WiSOC based Hardware -> New Build - 04/12/2024 - r55779

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2024/04-12-2024-r55779/ (tplink_archer-a7-v5 folder)

Please flash and check and report in the appropriate build thread. Thanks.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum