This is a real bugger:)
My modem is a ZTE ZXHN H108L, connected to a linux firewall/router/gateway. The gateway is a Slackware 14.0 system on which DNS, DHCP, VPN and transparent PROXY run. The gateway has 2 hardware NICs. eth1
is connected to the modem (192.168.231.117), and eth0
is connected to the intranet (192.168.112.0/24).
I use the dns to give names to several intranet and vpnnet hosts. The modem has the convenient name "modem.skails.office" (or just "modem" if I sit in a pc on this intranet). From /var/named/skails.office.hosts
:
modem A 192.168.231.117
nslookup
resolves the modem address correctly from all pc's of the intranet.
root@stargaze:~# nslookup modem
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: modem.skails.office
Address: 192.168.231.117
root@stargaze:~# nslookup modem.skails.office
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: modem.skails.office
Address: 192.168.231.117
So when I try to access the modem from the gateway's browser (firefox), I type http://192.168.231.117/
. I provide the credentials and I log on fine.
If I try to do the same by issuing the address http://modem/
or http://modem.skails.office/
, I will still be presented with the logon window, but it will NOT accept my credentials. I really do not know what could be the problem here.
I used tcpdump -i eth1 host modem and port 80
to log a successful and and unsuccessful attempt to log on and grab the status page.
- successful tcpdump
wget --user admin --password 1234 "http://192.168.231.117/status/status_deviceinfo.htm" -O -
Connecting to 192.168.231.117:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Reusing existing connection to 192.168.231.117:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
...
- unsucessful tcpdump
wget --user admin --password 1234 "http://modem/status/status_deviceinfo.htm" -O -
Resolving modem (modem)... 192.168.231.117
Connecting to modem (modem)|192.168.231.117|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Reusing existing connection to modem:80.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
Can you make anything out of it? Do you need any other data that I have perhaps not thought to include? How can I investigate this matter further?