Closed mookie- closed 2 years ago
Did you activated the proper settings in the FritzBox to support TR-064 access?
Home Network -> Network -> Network Settings -> "Allow access for applications" and "Transmit status information over UPnP"
Hello @kbr , thank you for the fast response. Yes I've enabled it (switched my language to english for this screenshot):
The strangest thing is the Fritzbox tells me:
Login by an app with unkown login name from IP address 192.168.1.11 failed
but I can see via tcpdump that fritzconnect is sending the correct username.
That's weird. Try the following: login at the web-interface as a regular user. Then use the fritzwlan
cli tool with the password for this user, but no username. In this case fritzconnection will take the last logged in username (since 1.5.0).
Here is the output from my 7590 with OS 7.27:
$fritzwlan -i 192.168.178.1 -p <password> [-u <username>]
fritzconnection v1.5.0
FRITZ!Box 7590 at http://192.168.178.1
FRITZ!OS: 7.27
Hosts registered at WLANConfiguration1:
WLAN name: xxxx
channel : 6
index active mac ip signal speed
<more output listed here>
Play around with a missing username, a matching one and an unmatching. In the last case you should get the "401 Unauthorized" error again. That's how it should work and is reproducible on my hardware.
Hello @kbr, thank you very much for your help!
I figured it out. The reason had nothing to do with the username. I got the 401 due to the fact that the Action WANIPConnection1
is not available at my FritzBox. I'm not sure why it failed with "401 Unauthorized" and I got the "with unkown login name" log entries, but when I use WANPPPConnection1 it works like charm.
Thanks again for your help and for creating and maintaining this software! :heart:
Hello,
I'm not sure yet if it's a bug but I couldn't find the problem myself.
This is my setup:
I'm running this code:
and I get this error:
The FritzBox tells me:
But I've tested it multiple times and made sure the user/password is correct. I've also set it via environment variable. I've also looked at the tcpdump and at least the username is sent correctly. I've changed all passwords after that, so that there is (hopefully) no sensible data in it. tcpdump.txt
I've also attached some screenshots from the FritzBox interface to show you how it's configured.
It would be nice if someone could help me debugging this further as I don't have an idea right now.