You are not logged in.

#1 2020-07-20 20:32:48

whitesnow
Member
Registered: 2015-01-04
Posts: 51

no login window at hotel internet, therefore no internet, but nslookup

Hi all,

I'm only for 2 more nights at this hotel.

It has an open wifi, which I get connected to, get an IP and a nameserver gets into /etc/resolv.conf.

But I can not browse the internet.

The browser should at accessing a webpage, say bbs.archlinux.org bring a small popup on top of the page, saying,
that I have to log in, there I than click, that opens the login page, to put in the login an password, which I got a the reception and can from there on for 24 hours use the internet.

This worked before at similar places.


Now it works on windows, and on iphone, but not in archlinux.

I don't have anymore wicd.

have
systemd-networkd
systemd-resolved
NetworkManager

Chromium says:
"DNS_PROBE_FINISHED_NIXDOMAIN"

nslookup says:

Server: 192.168.44.1
Address: 192.168.44.1#53

Non-authoritative answer:
Name: www.hotsplots.de
Address: 92.51.175.170


If I go to this page in firefox or chromium, they both do not work.

If I key in the  92.51.175.170 the connection gets established, but no permission to access /.


It did work for some minutes when I put the google nameserver into /etc/resolv.conf.
But that gets rewritten after some minutes.

Now this does not work, nslookup just times out.

I did add
DNS=8.8.8.8 ....
into /etc/systemd/resolved.conf

But this did not help.

Thanks in advance.

Offline

#2 2020-07-20 20:51:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,025
Website

Re: no login window at hotel internet, therefore no internet, but nslookup


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Online

#3 2020-07-20 20:58:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,363

Re: no login window at hotel internet, therefore no internet, but nslookup

You might try accessing a a url that is not https:   
Try going to a fictitious address like http://somerandomurl8942027.com
Or go to a site that you have not visited with this browser yet.

This may get you redirected to the captive portal login page.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2020-07-21 04:39:23

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

Thank you so much.

But it did not help.

I had:

Jul 21 04:49:26 machine1.home-pc.example.com nm-dispatcher[33445]: req:1 'dhcp4-change' [wlp3s0]: find-scripts: Cannot execute '/etc/NetworkManager/dispatcher.d/90-open_captive_portal': not executable by owner.

in the journal

so I did

Jul 21 05:07:51 machine1.home-pc.example.com sudo[10915]:      xxx : TTY=pts/20 ; PWD=/home/xxx ; USER=root ; COMMAND=/usr/bin/chmod u+x /etc/NetworkManager/dispatcher.d/90-open_captive_portal

This is what I had in the log

Jul 21 05:42:11 machine1.home-pc.example.com audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hos>
Jul 21 05:42:11 machine1.home-pc.example.com kernel: audit: type=1131 audit(1595302931.248:111): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe=">
Jul 21 05:42:11 machine1.home-pc.example.com audit: BPF prog-id=15 op=UNLOAD
Jul 21 05:42:11 machine1.home-pc.example.com audit: BPF prog-id=14 op=UNLOAD
Jul 21 05:42:11 machine1.home-pc.example.com kernel: audit: type=1334 audit(1595302931.374:112): prog-id=15 op=UNLOAD
Jul 21 05:42:11 machine1.home-pc.example.com kernel: audit: type=1334 audit(1595302931.374:113): prog-id=14 op=UNLOAD
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6069] dhcp4 (wlp3s0): option dhcp_lease_time      => '600'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6070] dhcp4 (wlp3s0): option domain_name          => 'lan'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6071] dhcp4 (wlp3s0): option domain_name_servers  => '192.168.44.1 192.168.44.1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6071] dhcp4 (wlp3s0): option expiry               => '1595303540'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6072] dhcp4 (wlp3s0): option interface_mtu        => '1500'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6072] dhcp4 (wlp3s0): option ip_address           => '192.168.44.47'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6073] dhcp4 (wlp3s0): option requested_broadcast_address => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6073] dhcp4 (wlp3s0): option requested_domain_name => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6074] dhcp4 (wlp3s0): option requested_domain_name_servers => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6074] dhcp4 (wlp3s0): option requested_domain_search => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6075] dhcp4 (wlp3s0): option requested_host_name  => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6075] dhcp4 (wlp3s0): option requested_interface_mtu => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6076] dhcp4 (wlp3s0): option requested_ms_classless_static_routes => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6076] dhcp4 (wlp3s0): option requested_nis_domain => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6077] dhcp4 (wlp3s0): option requested_nis_servers => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6078] dhcp4 (wlp3s0): option requested_ntp_servers => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6078] dhcp4 (wlp3s0): option requested_rfc3442_classless_static_routes => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6079] dhcp4 (wlp3s0): option requested_root_path  => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6079] dhcp4 (wlp3s0): option requested_routers    => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6080] dhcp4 (wlp3s0): option requested_static_routes => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6080] dhcp4 (wlp3s0): option requested_subnet_mask => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6080] dhcp4 (wlp3s0): option requested_time_offset => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6081] dhcp4 (wlp3s0): option requested_wpad       => '1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6081] dhcp4 (wlp3s0): option routers              => '192.168.44.1'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6081] dhcp4 (wlp3s0): option subnet_mask          => '255.255.255.0'
Jul 21 05:42:20 machine1.home-pc.example.com NetworkManager[2596]: <info>  [1595302940.6081] dhcp4 (wlp3s0): state changed extended -> extended
Jul 21 05:42:20 machine1.home-pc.example.com dbus-daemon[2595]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.servi>
Jul 21 05:42:20 machine1.home-pc.example.com systemd[1]: Starting Network Manager Script Dispatcher Service...
-- Subject: A start job for unit NetworkManager-dispatcher.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit NetworkManager-dispatcher.service has begun execution.
-- 
-- The job identifier is 2266.
Jul 21 05:42:20 machine1.home-pc.example.com dbus-daemon[2595]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jul 21 05:42:20 machine1.home-pc.example.com systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: A start job for unit NetworkManager-dispatcher.service has finished successfully
machine1% drill heise.de                                                       
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 55564
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
;; heise.de.	IN	A

;; ANSWER SECTION:
heise.de.	66047	IN	A	193.99.144.80

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 7 msec
;; SERVER: 192.168.44.1
;; WHEN: Tue Jul 21 05:47:50 2020
;; MSG SIZE  rcvd: 42
machine1% ping heise.de 
ping: heise.de: Name or service not known
machine1% nslookup heise.de
Server:		192.168.44.1
Address:	192.168.44.1#53

Non-authoritative answer:
Name:	heise.de
Address: 193.99.144.80
Name:	heise.de
Address: 2a02:2e0:3fe:1001:302::

machine1% ping heise.de
ping: heise.de: Name or service not known
machine1% ping 193.99.144.80
PING 193.99.144.80 (193.99.144.80) 56(84) bytes of data.
^C
--- 193.99.144.80 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6087ms

Addition to my previous post:
Only for correctness,  the browser should show:
"you must log in to this network before you can access the Internet. ... Open Network Login Page"

Offline

#5 2020-07-21 06:13:44

seth
Member
Registered: 2012-09-03
Posts: 15,750

Offline

#6 2020-07-21 12:41:08

ondoho
Member
Registered: 2013-04-30
Posts: 638
Website

Re: no login window at hotel internet, therefore no internet, but nslookup

whitesnow wrote:

"DNS_PROBE_FINISHED_NIXDOMAIN"

Various web search results suggest that you should use your own nameservers to fix this. network-manager has an option to do so per connection.
OTOH, according to the article in the previous post, this might not work. Worth a try though.


However studied and stilted your rant, it can never hide the base and primitve emotion that inspired it.

Offline

#7 2020-07-21 17:11:24

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

Thanks for your answers.

The own nameserver, I would have to read a bit more.
Or simply say it does not work for other addresses in /etc/hosts.

Hotsplots.de in /etc/hosts does work.
But www.google.de into /etc/hosts does time out.

In Windows, where it works, it connects me to a link:

https://www.hotsplots.de/auth/login.php?res=notyet&uamip=192.168.44.1&uamport=80&challenge=eaebbbb4d48577c941d431cf590b470b&called=D8-5D-4C-C6-B1-DA&mac=A4-4E-31-90-C8-40&ip=192.168.44.174&nasid=hotelweko1&sessionid=5f15cccb0000001c&userurl=http%3a%2f%2fdetectportal.firefox.com%2fsuccess.txt

I tried with this and a changed sessionid, adjusted ip and mac, it failed, but let me try again.

It logged me in, and shows connected, and remaining time 23:54:45.

But I can not connect to other pages.

I can connect to the pages where I put the address and name into /etc/hosts.
Not so sure, if I should call that "solved".



Why I don't just use the windows? -
I do it, at least for asking here. Beside that, it's from work, the archlinux is my private.

Offline

#8 2020-07-21 19:23:32

seth
Member
Registered: 2012-09-03
Posts: 15,750

Re: no login window at hotel internet, therefore no internet, but nslookup

You only need to insert hotsplots.de to the hosts file because otherwise it cannot be resolved for the authentication.

I assume afterwards you can eg. "ping 8.8.8.8"?

Once you're logged into the hotsplots account and assuming you can ping an IP, you need to have an entry in resolve.conf, eg.

# cloudflare
nameserver 1.1.1.1
# google
nameserver 8.8.8.8
# quad9
nameserver 9.9.9.9

There're more open dns servers (eg. the CCC runs one)

Normally, networkmanager should™ do that when setting up the connection but this seems to have failed or been spoiled here.

Offline

#9 2020-07-21 19:57:04

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

For today I'm finished with testing.

This is what my /etc/resolv.conf looks like

# Generated by NetworkManager
search lan home-pc.example.com
nameserver 192.168.44.1
ifconfig
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.44.47  netmask 255.255.255.0  broadcast 192.168.44.255

If my domain is wrong, I can change that, I hope so.

Offline

#10 2020-07-21 19:59:19

seth
Member
Registered: 2012-09-03
Posts: 15,750

Re: no login window at hotel internet, therefore no internet, but nslookup

dig @192.168.44.1 google.com
dig @8.8.8.8 google.com
nmap 192.168.44.1

Offline

#11 2020-07-22 05:35:14

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

After standby, login window opens.

short test
reboot

grep 92.51.175.170 /etc/hosts
92.51.175.170 www.hotsplots.de

the rest I mostly commented out.

Connect to hotsplots.de does work.
but login window does not open.

I still need this long login line, I posted previously, which I copied, and modified from another working windows laptop.

then again the same, logged in, connect to google.com: "we're having trouble to find that site".

/etc/resolv.conf
and ifconfig the same as in my last post, got the same ip number.

Have to leave now.

Offline

#12 2020-07-22 16:46:45

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

machine1% dig @192.168.44.1 google.com              

; <<>> DiG 9.16.4 <<>> @192.168.44.1 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41150
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 5775c389feb46d34 (echoed)
;; QUESTION SECTION:
;google.com.			IN	A

;; Query time: 6 msec
;; SERVER: 192.168.44.1#53(192.168.44.1)
;; WHEN: Wed Jul 22 18:40:02 CEST 2020
;; MSG SIZE  rcvd: 51

machine1% dig @8.8.8.8 google.com

; <<>> DiG 9.16.4 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64827
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		299	IN	A	172.217.23.142

;; Query time: 49 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Jul 22 18:40:18 CEST 2020
;; MSG SIZE  rcvd: 55

machine1% nmap 192.168.44.1
Starting Nmap 7.80 ( https://nmap.org ) at 2020-07-22 18:40 CEST
Nmap scan report for 192.168.44.1
Host is up (0.038s latency).
Not shown: 997 filtered ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 21.25 seconds

Offline

#13 2020-07-22 17:07:25

seth
Member
Registered: 2012-09-03
Posts: 15,750

Re: no login window at hotel internet, therefore no internet, but nslookup

That server doesn't run a dns server.

No idea about a "login window" - probably some protocol that NM implements but the hotsplots config doesn't - and given their dhcp announces a resolver w/o an open dns port, that's not really a surprise...

I believe you can configure NM to either leave your resolve.conf alone or provide it with a list of dns servers to use (see above and the networkmanager page in the arch wiki)

Offline

#14 2020-07-22 19:32:38

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

Thank you very much for your time and help.

I have to finish for today and will leave tomorrow.

my resolv.conf did not get touched after:

machine1% cat /etc/NetworkManager/conf.d/dns.conf
[main]
dns=none
main.systemd-resolved=false
machine1% cat /etc/resolv.conf
# Generated by user1
search lan home-pc.example.com
nameserver 8.8.8.8
#nameserver 192.168.44.1
# cloudflare
nameserver 1.1.1.1
# google
nameserver 8.8.8.8
# quad9
nameserver 9.9.9.9

and reboot and reconnect.

I still was connected and logged in, I believe because the browser did restore its session.
I don't know.

But still the same. No connection to lets say www.heise.de "We're having trouble finding that site."
wireshark shows this:

No time source destination protocol length info
7	1.310753279	192.168.44.47	192.168.44.1	DNS	83	Standard query 0xf5bb A www.heise.de OPT
8	1.310823081	192.168.44.47	192.168.44.1	DNS	83	Standard query 0x47fd AAAA www.heise.de OPT
9	1.398921140	192.168.44.1	192.168.44.47	DNS	83	Standard query response 0xf5bb No such name A www.heise.de OPT
10	1.402127650	192.168.44.1	192.168.44.47	DNS	83	Standard query response 0x47fd No such name AAAA www.heise.de OPT

so still DNS requests to 192.168.44.1.

machine1% sudo systemctl reload NetworkManager        
machine1% sudo systemctl stop NetworkManager
machine1% sudo systemctl start NetworkManager
machine1% sudo systemctl status NetworkManager         
● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Wed 2020-07-22 21:29:26 CEST; 13s ago
       Docs: man:NetworkManager(8)
   Main PID: 11510 (NetworkManager)
      Tasks: 4 (limit: 19022)
     Memory: 5.0M
     CGroup: /system.slice/NetworkManager.service
             └─11510 /usr/bin/NetworkManager --no-daemon

Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7745] dhcp4 (wlp3s0): state changed unknown -> bound
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7820] device (wlp3s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7863] device (wlp3s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'manage>
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7866] device (wlp3s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'manag>
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7870] manager: NetworkManager state is now CONNECTED_LOCAL
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7895] manager: NetworkManager state is now CONNECTED_SITE
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7897] policy: set 'HOTSPLOTS_Hotel_Wendenkoenig' (wlp3s0) as default for IPv4 routing and DNS
Jul 22 21:29:31 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446171.7904] device (wlp3s0): Activation: successful, device activated.
Jul 22 21:29:32 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446172.0449] manager: NetworkManager state is now CONNECTED_GLOBAL
Jul 22 21:29:32 machine1.home-pc.example.com NetworkManager[11510]: <info>  [1595446172.8705] manager: startup complete
machine1% cat /etc/NetworkManager/conf.d/dns.conf      
[main]
dns=none
main.systemd-resolved=false
machine1% cat /etc/NetworkManager/conf.d/dns.conf          
[main]
dns=none
#main.systemd-resolved=false
machine1% sudo systemctl status NetworkManager
● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Wed 2020-07-22 21:25:47 CEST; 13s ago
       Docs: man:NetworkManager(8)
   Main PID: 10486 (NetworkManager)
      Tasks: 4 (limit: 19022)
     Memory: 4.9M
     CGroup: /system.slice/NetworkManager.service
             └─10486 /usr/bin/NetworkManager --no-daemon

Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.2878] dhcp4 (wlp3s0): state changed unknown -> bound
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.2933] device (wlp3s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.2968] device (wlp3s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'manage>
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.2971] device (wlp3s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'manag>
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.2978] manager: NetworkManager state is now CONNECTED_LOCAL
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.3000] manager: NetworkManager state is now CONNECTED_SITE
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.3001] policy: set 'HOTSPLOTS_Hotel_Wendenkoenig' (wlp3s0) as default for IPv4 routing and DNS
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.3009] device (wlp3s0): Activation: successful, device activated.
Jul 22 21:25:58 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445958.3019] manager: startup complete
Jul 22 21:25:59 machine1.home-pc.example.com NetworkManager[10486]: <info>  [1595445959.0519] manager: NetworkManager state is now CONNECTED_GLOBAL

That's probably a repeat, but I did not freshly boot the iphone6. Now I did, a freshly booted Iphone6 with locked SIM (not booked in to provider) and a windows laptop both get connected captive page - login + password, success, and get Internet access.

Last edited by whitesnow (2020-07-22 19:47:31)

Offline

#15 2020-07-22 21:23:29

seth
Member
Registered: 2012-09-03
Posts: 15,750

Re: no login window at hotel internet, therefore no internet, but nslookup

Remove/comment the "search lan home-pc.example.com" line.

Out of curiosity: "nmap -p53 192.168.44.1"?

Offline

#16 2020-07-23 03:49:15

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

nmap -p53 192.168.44.1
Starting Nmap 7.80 ( https://nmap.org ) at 2020-07-23 05:37 CEST
Nmap scan report for 192.168.44.1
Host is up (0.0034s latency).

PORT   STATE    SERVICE
53/tcp filtered domain

Nmap done: 1 IP address (1 host up) scanned in 0.36 seconds

No reboot for now, time here is running out quickly for me.
Woke it up from suspend, login to hotspot appeared.

machine1% head /etc/resolv.conf               
# Generated by user1
#search lan home-pc.example.com
nameserver 8.8.8.8
#nameserver 192.168.44.1
# cloudflare
nameserver 1.1.1.1
# google
nameserver 8.8.8.8
# quad9
nameserver 9.9.9.9
machine1% sudo systemctl reload NetworkManager
machine1% sudo systemctl stop NetworkManager 
machine1% sudo systemctl start NetworkManager 
machine1% sudo systemctl status NetworkManager
● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Thu 2020-07-23 05:42:39 CEST; 28s ago
       Docs: man:NetworkManager(8)
   Main PID: 25047 (NetworkManager)
      Tasks: 3 (limit: 19022)
     Memory: 4.8M
     CGroup: /system.slice/NetworkManager.service
             └─25047 /usr/bin/NetworkManager --no-daemon

Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.5946] dhcp4 (wlp3s0): state changed unknown -> bound
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.5972] device (wlp3s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'manage>
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6195] device (wlp3s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'mana>
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6198] device (wlp3s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'man>
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6205] manager: NetworkManager state is now CONNECTED_LOCAL
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6245] manager: NetworkManager state is now CONNECTED_SITE
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6247] policy: set 'HOTSPLOTS_Hotel_Wendenkoenig' (wlp3s0) as default for IPv4 routing and DNS
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6254] device (wlp3s0): Activation: successful, device activated.
Jul 23 05:42:58 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475778.6264] manager: startup complete
Jul 23 05:42:59 machine1.home-pc.example.com NetworkManager[25047]: <info>  [1595475779.0394] manager: NetworkManager state is now CONNECTED_GLOBAL

wireshark similar

No.	Time	Source	Destination	Protocol	Length	Info
21	7.934022352	Tp-LinkT_c6:b1:da	IntelCor_54:b7:c4	ARP	60	192.168.44.1 is at d8:5d:4c:c6:b1:da
22	7.934075649	192.168.44.47	192.168.44.1	DNS	83	Standard query 0x81dd A www.arcor.de OPT
23	7.934130718	192.168.44.47	192.168.44.1	DNS	83	Standard query 0xa2c9 AAAA www.arcor.de OPT
24	7.961866412	192.168.44.1	192.168.44.47	DNS	83	Standard query response 0x81dd No such name A www.arcor.de OPT
25	8.004937520	192.168.44.1	192.168.44.47	DNS	83	Standard query response 0xa2c9 No such name AAAA www.arcor.de OPT
26	8.009924912	192.168.44.47	192.168.44.1	DNS	83	Standard query 0x4e1d A www.arcor.de OPT
27	8.010106817	192.168.44.47	192.168.44.1	DNS	83	Standard query 0x4357 AAAA www.arcor.de OPT
28	8.075482395	192.168.44.1	192.168.44.47	DNS	83	Standard query response 0x4e1d No such name A www.arcor.de OPT
29	8.148709024	192.168.44.1	192.168.44.47	DNS	83	Standard query response 0x4357 No such name AAAA www.arcor.de OPT
30	8.823793427	fe80::8:3fff:fea5:a01e	ff02::2	ICMPv6	70	Router Solicitation from 02:08:3f:a5:a0:1e
31	8.937157678	192.168.44.47	192.168.44.1	DNS	82	Standard query 0x0bbf A mozilla.org OPT
32	8.938434259	192.168.44.47	2.19.213.83	TCP	74	46748 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=2472117015 TSecr=0 WS=128
33	8.938794148	192.168.44.47	2.19.213.83	TCP	74	46750 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=2472117015 TSecr=0 WS=128
34	8.941101010	192.168.44.47	192.168.44.1	DNS	82	Standard query 0x0ff8 AAAA mozilla.org OPT
35	8.942077241	192.168.44.1	192.168.44.47	DNS	82	Standard query response 0x0bbf No such name A mozilla.org OPT
36	9.099348063	2.19.213.83	192.168.44.47	TCP	74	80 → 46748 [SYN, ACK] Seq=0 Ack=1 Win=28960 Len=0 MSS=1385 SACK_PERM=1 TSval=810146982 TSecr=2472117015 WS=128
37	9.099413953	192.168.44.47	2.19.213.83	TCP	66	46748 → 80 [ACK] Seq=1 Ack=1 Win=64256 Len=0 TSval=2472117176 TSecr=810146982
38	9.099812634	192.168.44.47	2.19.213.83	HTTP	359	GET /success.txt?ipv4 HTTP/1.1 
39	9.134930228	192.168.44.47	54.213.218.169	TLSv1.2	105	Application Data

Offline

#17 2020-07-23 06:30:59

seth
Member
Registered: 2012-09-03
Posts: 15,750

Re: no login window at hotel internet, therefore no internet, but nslookup

machine1% cat /etc/NetworkManager/conf.d/dns.conf          
[main]
dns=none
#main.systemd-resolved=false

Did you re-enable resolved?
Is resolve.conf intact?

resolvectl status

Wireshark seems to be firefox - did you restart it (new process, not new window)?
Does "ping mozilla.org" resolve the IP?

Offline

#18 2020-07-23 17:52:49

whitesnow
Member
Registered: 2015-01-04
Posts: 51

Re: no login window at hotel internet, therefore no internet, but nslookup

Hi,

first, I am not anymore at that location anymore.
I have Internet access, I am not behind any captive portal

I did not save the wireshark log.

The resolv.conf is still like I posted it.

I did not restart wireshark.

I'm not sure, if I did reenable resolved.

resolvectl status

I can do that, but I am now at a different location, I have Internet access, I am not behind any captive portal

Offline

#19 2020-07-23 18:03:30

seth
Member
Registered: 2012-09-03
Posts: 15,750

Re: no login window at hotel internet, therefore no internet, but nslookup

Ah, but I rather meant whether you restarted firefox (or whether it retained the previously acquired DNS server)
Since the resolve.conf doesn't get replaced, resolved is probably not used but more importantly didn't rewrite it.

However, this is now pointless.

If you run in the same situation in the future, here's what went wrong:
The dhcp server announced a DNS server that doesn't resolve anything and especially it didn't resolve hotsplots.de before you logged in.

So you had to effectively
a) add a static resolution in /etc/hosts to resolve hotsplots.de to perform the login process
b) ensure valid DNS servers are being used by the resolvers (details here: https://wiki.archlinux.org/index.php/Do … resolution )

At this point we don't know whether FF had picked up the updated resolve.conf

You may want to restore the previous setup in order to obtain the DNS server via dhcp again (instead of asking cloudflare or google to resolve addresses, typically yo'll be using a DNS server provided by your ISP)

Offline

Board footer

Powered by FluxBB