Welcome! Log In Create A New Profile

Advanced

Wifi dongle front usb Netgear Stora

Posted by wdq 
wdq
Wifi dongle front usb Netgear Stora
May 13, 2023 04:31PM
Hello again,
having problems with the wifi dongle getting connected to the network

/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

rename /wlx*=wlan0
#auto wlan0
iface wlan0 inet dhcp
	wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
root@debian:~#


wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
scan_ssid=1
ssid="MYWIFI"
psk="MYPASSWORD"
}

device

[  704.549335][ T1512] usb 1-1: new high-speed USB device number 3 using orion-ehci
[  704.750550][ T1512] usb 1-1: New USB device found, idVendor=2357, idProduct=0109, bcdDevice= 2.00
[  704.759650][ T1512] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  704.767572][ T1512] usb 1-1: Product: 802.11n NIC 
[  704.773298][ T1512] usb 1-1: Manufacturer: Realtek 
[  704.778228][ T1512] usb 1-1: SerialNumber: 00e04c000001
[  705.012811][ T1512] usb 1-1: Vendor: Realtek 
[  705.017230][ T1512] usb 1-1: Product: 802.11n NIC 
[  705.022570][ T1512] usb 1-1: Serial not available.
[  705.027410][ T1512] usb 1-1: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[  705.035314][ T1512] usb 1-1: 00: 29 81 00 7c 01 40 03 00
[  705.040960][ T1512] usb 1-1: 08: 40 74 04 50 14 00 00 00
[  705.046347][ T1512] usb 1-1: 10: 2a 2b 2c 2d 2d 2d 2c 2d
[  705.052087][ T1512] usb 1-1: 18: 2d 2e 2e f2 ef ef ff ff
[  705.057450][ T1512] usb 1-1: 20: ff ff ff ff ff ff ff ff
[  705.063186][ T1512] usb 1-1: 28: ff ff ff ff ff ff ff ff
[  705.068541][ T1512] usb 1-1: 30: ff ff ff ff ff ff ff ff
[  705.074278][ T1512] usb 1-1: 38: ff ff 26 27 28 29 29 29
[  705.079897][ T1512] usb 1-1: 40: 28 29 29 2a 2a f2 ef ef
[  705.085258][ T1512] usb 1-1: 48: ff ff ff ff ff ff ff ff
[  705.091003][ T1512] usb 1-1: 50: ff ff ff ff ff ff ff ff
[  705.096358][ T1512] usb 1-1: 58: ff ff ff ff ff ff ff ff
[  705.102093][ T1512] usb 1-1: 60: ff ff ff ff ff ff ff ff
[  705.107450][ T1512] usb 1-1: 68: ff ff ff ff ff ff ff ff
[  705.113186][ T1512] usb 1-1: 70: ff ff ff ff ff ff ff ff
[  705.118542][ T1512] usb 1-1: 78: ff ff ff ff ff ff ff ff
[  705.124275][ T1512] usb 1-1: 80: ff ff ff ff ff ff ff ff
[  705.129894][ T1512] usb 1-1: 88: ff ff ff ff ff ff ff ff
[  705.135249][ T1512] usb 1-1: 90: ff ff ff ff ff ff ff ff
[  705.140981][ T1512] usb 1-1: 98: ff ff ff ff ff ff ff ff
[  705.146341][ T1512] usb 1-1: a0: ff ff ff ff ff ff ff ff
[  705.152082][ T1512] usb 1-1: a8: ff ff ff ff ff ff ff ff
[  705.157442][ T1512] usb 1-1: b0: ff ff ff ff ff ff ff ff
[  705.163175][ T1512] usb 1-1: b8: a1 2f 1d 00 00 00 ff ff
[  705.168534][ T1512] usb 1-1: c0: ff 01 00 10 00 00 00 ff
[  705.174277][ T1512] usb 1-1: c8: 00 00 ff ff ff ff ff ff
[  705.179897][ T1512] usb 1-1: d0: 57 23 09 01 e7 47 02 9c
[  705.185250][ T1512] usb 1-1: d8: 53 22 e1 f3 6b 0a 03 52
[  705.191016][ T1512] usb 1-1: e0: 65 61 6c 74 65 6b 20 0e
[  705.196377][ T1512] usb 1-1: e8: 03 38 30 32 2e 31 31 6e
[  705.202116][ T1512] usb 1-1: f0: 20 4e 49 43 20 00 00 ff
[  705.207477][ T1512] usb 1-1: f8: ff ff ff ff ff ff ff ff
[  705.213212][ T1512] usb 1-1: 100: ff ff ff ff ff ff ff ff
[  705.218656][ T1512] usb 1-1: 108: ff ff ff ff ff ff ff ff
[  705.224563][ T1512] usb 1-1: 110: ff ff ff ff ff ff ff 0d
[  705.230295][ T1512] usb 1-1: 118: 03 00 05 00 30 00 00 00
[  705.235739][ T1512] usb 1-1: 120: 00 93 ff ff ff ff ff ff
[  705.241569][ T1512] usb 1-1: 128: ff ff ff ff ff ff ff ff
[  705.247013][ T1512] usb 1-1: 130: f6 a8 98 2d 03 92 98 00
[  705.252841][ T1512] usb 1-1: 138: fc 8c 00 11 9b 44 02 0a
[  705.258288][ T1512] usb 1-1: 140: ff ff ff ff ff ff ff ff
[  705.264124][ T1512] usb 1-1: 148: ff ff ff ff ff ff ff ff
[  705.269839][ T1512] usb 1-1: 150: ff ff ff ff ff ff ff ff
[  705.275283][ T1512] usb 1-1: 158: ff ff ff ff ff ff ff ff
[  705.281109][ T1512] usb 1-1: 160: ff ff ff ff ff ff ff ff
[  705.286551][ T1512] usb 1-1: 168: ff ff ff ff ff ff ff ff
[  705.292375][ T1512] usb 1-1: 170: ff ff ff ff ff ff ff ff
[  705.297816][ T1512] usb 1-1: 178: ff ff ff ff ff ff ff ff
[  705.303642][ T1512] usb 1-1: 180: ff ff ff ff ff ff ff ff
[  705.309082][ T1512] usb 1-1: 188: ff ff ff ff ff ff ff ff
[  705.314907][ T1512] usb 1-1: 190: ff ff ff ff ff ff ff ff
[  705.320617][ T1512] usb 1-1: 198: ff ff ff ff ff ff ff ff
[  705.326060][ T1512] usb 1-1: 1a0: ff ff ff ff ff ff ff ff
[  705.331885][ T1512] usb 1-1: 1a8: ff ff ff ff ff ff ff ff
[  705.337327][ T1512] usb 1-1: 1b0: ff ff ff ff ff ff ff ff
[  705.343150][ T1512] usb 1-1: 1b8: ff ff ff ff ff ff ff ff
[  705.348593][ T1512] usb 1-1: 1c0: ff ff ff ff ff ff ff ff
[  705.354417][ T1512] usb 1-1: 1c8: ff ff ff ff ff ff ff ff
[  705.360123][ T1512] usb 1-1: 1d0: ff ff ff ff ff ff ff ff
[  705.365571][ T1512] usb 1-1: 1d8: ff ff ff ff ff ff ff ff
[  705.371402][ T1512] usb 1-1: 1e0: ff ff ff ff ff ff ff ff
[  705.376846][ T1512] usb 1-1: 1e8: ff ff ff ff ff ff ff ff
[  705.382672][ T1512] usb 1-1: 1f0: ff ff ff ff ff ff ff ff
[  705.388321][ T1512] usb 1-1: 1f8: ff ff ff ff ff ff ff ff
[  705.394189][ T1512] usb 1-1: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[  705.403595][ T1512] usb 1-1: RTL8192EU MAC: 9c:53:22:e1:f3:6b
[  705.409659][ T1512] usb 1-1: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[  705.445864][ T1512] usb 1-1: Firmware revision 19.0 (signature 0x92e1)
[  706.797247][ T1515] rtl8xxxu 1-1:1.0 wlx9c5322e1f36b: renamed from wlan0 (while UP)

error

[   51.053433] wlan0: authenticate with 94:6a:b0:41:01:cd
[   51.087769] wlan0: send auth to 94:6a:b0:41:01:cd (try 1/3)
[   51.307343] wlan0: send auth to 94:6a:b0:41:01:cd (try 2/3)
[   51.517359] wlan0: send auth to 94:6a:b0:41:01:cd (try 3/3)
[   51.727341] wlan0: authentication with 94:6a:b0:41:01:cd timed out

Thank You for your help !

PS:
bodhi no worries i will be here maybe i do not know a lot about device hacking but i get around with Linux ,
already installed latest kernel 6.2.7 works perfect .



Edited 1 time(s). Last edit at 05/13/2023 04:34PM by wdq.
Re: Wifi dongle front usb Netgear Stora
May 13, 2023 05:33PM
wdq,

> bodhi no worries i will be here maybe i do not
> know a lot about device hacking but i get around
> with Linux ,
> already installed latest kernel 6.2.7 works
> perfect .

Cool!

Do

ifconfig -a

Looks like it tried to bring up the network with the wrong MAC address.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 05/13/2023 05:58PM by bodhi.
wdq
Re: Wifi dongle front usb Netgear Stora
May 13, 2023 09:34PM
Me remembers now that the box has a mac address ....
Lets see..


ifconfig -a

root@debian:~# ifconfig -a
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether c4:3d:c7:46:b2:21  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 31  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 23  bytes 3453 (3.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23  bytes 3453 (3.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 9c:53:22:e1:f3:6b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Re: Wifi dongle front usb Netgear Stora
May 13, 2023 10:40PM
Check this thread to see what you did different from the tutorial:

https://forum.doozan.com/read.php?2,134026

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
wdq
Re: Wifi dongle front usb Netgear Stora
May 14, 2023 02:57AM
no help , i am no trying to setup a server to connect to it trying to connect to a wireless router without the cable upgraded to unstable now lets see
will come back with a update when done
tme
Re: Wifi dongle front usb Netgear Stora
May 14, 2023 04:42AM
Hi wdq,

The tutorial bodhi refers to is about a USB-to-Ethernet dongle, while you have a USB-to-WiFi dongle, so there will be some differences. For one, unless you want your Stora to act as a router, you probably want it to be a DHCP client rather than a DHCP server. To me it seems you already got that part right.

Your issue seem to be related to the authentication of the Stora by the router. Maybe it is set up to only accept certain preregistered MAC addresses?

Regards,
Trond Melen
wdq
Re: Wifi dongle front usb Netgear Stora
May 14, 2023 10:29AM
Nope the router is set to accept any connections, noticed it get connected if i unplug and plug again (wifi dongle)

[ 2584.112452][ T4059] usb 1-1: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 2584.123939][ T4059] usb 1-1: RTL8192EU MAC: 9c:53:22:e1:f3:6b
[ 2584.131920][ T4059] usb 1-1: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[ 2584.152913][ T4059] usb 1-1: Firmware revision 19.0 (signature 0x92e1)
[ 2585.459061][ T4062] rtl8xxxu 1-1:1.0 wlx9c5322e1f36b: renamed from wlan0
[ 2585.678974][ T4070] rtl8xxxu 1-1:1.0 wlan0: renamed from wlx9c5322e1f36b
[ 2587.662274][ T4083] wlan0: authenticate with 94:6a:b0:41:01:cd
[ 2587.691187][ T4083] wlan0: send auth to 94:6a:b0:41:01:cd (try 1/3)
[ 2587.699699][   T81] wlan0: authenticated
[ 2587.708479][   T81] wlan0: associate with 94:6a:b0:41:01:cd (try 1/3)
[ 2587.720406][   T81] wlan0: RX AssocResp from 94:6a:b0:41:01:cd (capab=0x431 status=0 aid=8)
[ 2587.731133][   T81] usb 1-1: rtl8xxxu_bss_info_changed: HT supported
[ 2587.740483][   T81] wlan0: associated
[ 2587.811665][ T4083] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready


but no internet so i am digging a bit more, if anyone has an idea ..... please share ..
wdq
Re: Wifi dongle front usb Netgear Stora
May 14, 2023 11:13AM
Solved ,
what i have done maybe someone will like to use a wifi dongle and not the ethernet cable

plug in your wifi dongle

dmesg | tail
see what device you have so you can install the driver ( in my case was realtek so )
apt install firmware-realtek

next let`s install wpa_supplicant

apt install wpa_supplicant

now editing time first /etc/network/interfaces

nano /etc/network/interfaces

mine looks like this
auto lo     
iface lo inet loopback
iface eth0 inet dhcp 

rename /wlx*=wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

rename only if you need it some wifi dongles do not have such a long name as mine so had to do it , the name you will see in dmesg when you plug in or you unplug your device , i used only the first 3 letters then * so anything after will change the name to wlan0

let`s edit /etc/wpa_supplicant/wpa_supplicant.conf

nano /etc/wpa_supplicant/wpa_supplicant.conf

mine looks like this

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB 

network={
        ssid="YOURWIFINAME"
        psk="YOURSECUREPASSWORD"
}

at country you can change it how you prefer ex. US -for United States IS - for Iceland in my case was GB - Great Britain

next the key ingredient that made all work was..

edit /etc/resolv.conf
but we will create a backup too
cp /etc/resolv.conf /etc/resolv.conf.bak
nano /etc/resolv.conf

mine looked like this but it will change according to your home network when you will connect
nameserver 8.8.8.8
nameserver 8.8.4.4

now unplug your dongle plug it back in and it should connect straight away.
the only thing is that it does not connect if you reboot , but as soon as you unplug andplug in again it will so i am working to make a script to reset the usb after everithing is loaded up and you get to debian login .
Hope this helps



Edited 1 time(s). Last edit at 05/14/2023 11:20AM by wdq.
Re: Wifi dongle front usb Netgear Stora
May 14, 2023 04:30PM
Yes you need that

allow-hotplug wlan0

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Wifi dongle front usb Netgear Stora
May 14, 2023 04:44PM
And btw,

In Debian bookworm, isc-dhcp client is deprecated.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: