2x usb tethered android phs for bonded internet?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Wed Mar 08, 2023 11:44    Post subject: 2x usb tethered android phs for bonded internet? Reply with quote
I'm wondering if it's possible to have two android phones tethered to the same routers 2 usb ports via usb, and have automatic internet bonding/connection splitting/something like that to get faster internet?
Or an android phone via usb and another internet connection via wan port?
If so, how do I go about this? Just plug and play, turn on tethering for the phone/s, or?
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Wed Mar 08, 2023 12:21    Post subject: Reply with quote
Android tethering is not natively supported in DD-WRT.

https://forum.dd-wrt.com/wiki/index.php/Category:Wan

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Wed Mar 08, 2023 17:45    Post subject: Reply with quote
hebeda wrote:
i think the more easy approach is a android phone with android 12 or higher and a USB to Ethernet Adapter , it should have native Ethernet tethering support.

i am using a EDUP EP-9802 USB C to Ethernet Adapter with Realtek RTL8153 Chipset for such purpose with my Xiaomi Poco X3 Pro Phone ..
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Thu Mar 09, 2023 4:05    Post subject: Reply with quote
cdc_ether.ko and rndis_host.ko appear to be the modules I want in my custom ea6900 firmware.
How do I find these files, verify if they are currently there, and or install them into a pre-existing firmware, or request that they be included in future firmwares for Linksys EA6900 series stuff?

Thank you Smile
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Thu Mar 09, 2023 6:47    Post subject: Reply with quote
Okay I followed this excellent guide; https://forum.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection
And got quite far, but, the step where I ping google, it doesn't work...

"root@DD-WRT:~# udhcpc -i usb0
udhcpc: started, v1.36.0
udhcpc: sending discover
udhcpc: sending select for 192.168.x.y
udhcpc: lease of 192.168.x.y obtained, lease time 3599
root@DD-WRT:~# ping www.google.com
ping: bad address 'www.google.com'
"

*Shrug*?


Last edited by baboeska on Tue Mar 28, 2023 23:28; edited 1 time in total
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Thu Mar 09, 2023 17:14    Post subject: Reply with quote
Before or after step 11, via telnet/ssh to router or via client?
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Thu Mar 09, 2023 17:27    Post subject: Reply with quote
baboeska wrote:
cdc_ether.ko and rndis_host.ko appear to be the modules I want in my custom ea6900 firmware.
How do I find these files, verify if they are currently there, and or install them into a pre-existing firmware, or request that they be included in future firmwares for Linksys EA6900 series stuff?

Thank you Smile


I can build those for you if necessary

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Fri Mar 10, 2023 9:39    Post subject: Reply with quote
dale_gribble39 wrote:
Before or after step 11, via telnet/ssh to router or via client?


Before and after step 11.

I found the modules there, though also have installed entware so shrug.
Would love a fortune module built for entware Smile.
I've tried those instructions in my start up sequence. For now I'm thinking I might be better off setting up a pi to share the android phones tethered signal via ethernet to the router, and having the router on a static ip address.
This also allows PiHole, but, doesn't accomplish the goal of bonding two seperate 4g connections, nor running a single or multiple 4g connections.
Ideally it'd be nice to have something like youtube, video streaming services, on one connection, stuff that requires faster pings on another, load balancing.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sat Mar 11, 2023 10:28    Post subject: Reply with quote
baboeska wrote:
cdc_ether.ko and rndis_host.ko appear to be the modules I want in my custom ea6900 firmware.
How do I find these files, verify if they are currently there, and or install them into a pre-existing firmware, or request that they be included in future firmwares for Linksys EA6900 series stuff?

Thank you Smile


I was making a new build for my EA6900 so I included the wanted kernel modules.

So in case you still need the modules, I have attached those to this post.



4.4.302-st37.zip
 Description:

Download
 Filename:  4.4.302-st37.zip
 Filesize:  6.81 KB
 Downloaded:  55 Time(s)


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
i4Cit
DD-WRT Novice


Joined: 19 Feb 2023
Posts: 2

PostPosted: Sat Mar 18, 2023 23:27    Post subject: Reply with quote
baboeska wrote:
dale_gribble39 wrote:
Before or after step 11, via telnet/ssh to router or via client?


Before and after step 11.

I found the modules there


My experience with an RT-AC88U tried on r51140 w/Win7/Palemoon(Mozilla) private window:

From a fresh normal reset(Not Hard WPS button)...

If steps were followed with just enabling Telnet in admin...

ping was achieved within telnet as long as I changed static 192.168.10.1(Used for flash and setup.) to auto(DHCP) prior to ping at STEP 6.

STEP 8 ping as well as surfing was only achieved through wireless client, NOT LAN even with auto.

Step 11 was the same...
these were done on 5G...in hindsight I should've tried 2.4, since LAN and 2.4G show they share same MAC(5G is diff)

added Startup and Firewall VIA Command in admin, still worked.

Upon changing LAN address from default 192.168.1.1 in Setup and subsequent reboot all outgoing was lost even though WAN had an IP and gateway.
Seems something broke within the routing table from LAN to WAN/USB.

When I have time, will try 51937 and post results since preliminary reports look to be more stable...

Hope this helps...
God Bless and Stay Safe,
________________________i4 out... Cool
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Tue Mar 28, 2023 10:23    Post subject: Reply with quote
Update on this.
Went for the 2020 era webflash as recommended in the guide, and it is now working good.
Thank you Smile
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Tue Mar 28, 2023 15:38    Post subject: Reply with quote
Well, old wiki is what it is. https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Tue Mar 28, 2023 23:27    Post subject: Reply with quote
blkt wrote:
Well, old wiki is what it is. https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/


Thanks for this Smile.
Sadly on the recommended version, my ac wifi is terrible, so....
I tried the earliest January 2023 release, and it was not working for android tethering.
I then tried the earliest January 2022 release, Firmware: DD-WRT v3.0-r47976 std (01/06/22) and it works Very Happy
Will probably try June/July 2022 sometime soon.

Startup;

insmod usbnet.ko
insmod cdc_ether.ko
insmod rndis_host.ko
ifconfig usb0 up
udhcpc -i usb0
sleep 5

mount /jffs /opt

for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done

mount /jffs /opt
/opt/etc/init.d/rc.unslung start


#!/bin/sh
T=0
D=`nvram show|grep traff-|cut -f1 -d=|awk -F"-" '{print $3,$2}'|cut -b-4,6-`
for d in $D
do
if [ $T -lt $d ]
then
T=$d
fi
done
T=`expr $T - 100`
for d in $D
do
if [ $T -gt $d ]
then
N=traff-`echo ${d}|cut -b5-`-`echo ${d}|cut -b-4`
nvram unset $N
fi
done

_rogue=0.0.0.0
echo -e "n=1\nwhile ! wget -q -O /tmp/hsts http://sbc.io/hosts/hosts ; do\n\t[ \$n -gt 5 ] && break\n\tlet n+=1\n\tsleep 60\ndone\ngrep \"^0.0.0.0\" /tmp/hsts | grep \"^0.0.0.0\" | grep -v localhost | awk '{print \"$_rogue\\\t\"\$2}' | tr -d '\\\015' >/tmp/dlhosts\nrm /tmp/hsts\nkillall -HUP dnsmasq" >/tmp/wh
sh /tmp/wh &





Firewall;

iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
iptables -A FORWARD -i br0 -j ACCEPT
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu



Additional DNSMasq options;

addn-hosts=/tmp/dlhosts


Crontab options;

0 12 * * * root /tmp/.rc_startup
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Tue Mar 28, 2023 23:41    Post subject: Reply with quote
Works with DD-WRT v3.0-r49392 std (06/29/22) and DD-WRT v3.0-r50308 std (10/01/22) and DD-WRT v3.0-r50786 std (11/02/22) and 12/12/2022 and 12/17/2022 r51040 and DD-WRT v3.0-r51043 std (12/19/22) without nvram erase
baboeska
DD-WRT User


Joined: 22 Jun 2011
Posts: 59

PostPosted: Thu Mar 30, 2023 9:16    Post subject: Reply with quote
blkt wrote:
Well, old wiki is what it is. https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/


Not sure if it helps but I think the bug causing usb tethering failure is between r51140 (last release of 2022, working) and the first release of 2023.

Re channel bonding/link aggregating android tethers, it looks like that'd be a challenging job.. if even doable or practical...
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum