Public library Wifi connected but no internet access(Xubuntu 16.04)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Public library Wifi connected but no internet access(Xubuntu 16.04)
I faced the problem in a college network. The WIFI works in other networks. The notebook (Fresh ubuntu 16.04 installed) connects with the college wifi, after some refresh, redirects me to a partial login page but then no internet connections. Same pc with windows connects perfectly and my other pc with ubuntu 15.10 works at the same network.
I tried:
upgrade kernel
set ipv6 to ignore
restart nm
set google dns
using different browsers
no results with any of them.
I noticed that while changing dns, It was possible to open only one web site and then no connections.I booted from USB , Ubuntu 15.10 and I had the same problem, only the first web page is loaded, I can click accept and redirected but nothing else. I am trying different website without https.
the first test is with open dns, the secodn with google dns.
Code:
andrea@andrea-Latitude-E4310:~$ ping -c 4 google.com
PING google.com (216.58.192.142) 56(84) bytes of data.
64 bytes from ord36s01-in-f14.1e100.net (216.58.192.142): icmp_seq=1 ttl=48 time=7.60 ms
64 bytes from ord36s01-in-f14.1e100.net (216.58.192.142): icmp_seq=2 ttl=48 time=8.81 ms
64 bytes from ord36s01-in-f14.1e100.net (216.58.192.142): icmp_seq=3 ttl=48 time=8.25 ms
64 bytes from ord36s01-in-f14.1e100.net (216.58.192.142): icmp_seq=4 ttl=48 time=11.3 ms
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 7.606/9.008/11.361/1.424 ms
andrea@andrea-Latitude-E4310:~$ ping www.google.com
PING www.google.com (216.58.192.132) 56(84) bytes of data.
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=1 ttl=48 time=10.1 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=2 ttl=48 time=6.90 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=3 ttl=48 time=12.4 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=4 ttl=48 time=26.6 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=5 ttl=48 time=9.62 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=6 ttl=48 time=9.10 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=7 ttl=48 time=12.6 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=8 ttl=48 time=25.0 ms
64 bytes from ord36s01-in-f132.1e100.net (216.58.192.132): icmp_seq=9 ttl=48 time=12.9 ms
andrea@andrea-Latitude-E4310:~$ ping www.google.com
ping: unknown host www.google.com
andrea@andrea-Latitude-E4310:~$ ping -c 4 google.com
ping: unknown host google.com
andrea@andrea-Latitude-E4310:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=29 ttl=40 time=30.8 ms
64 bytes from 8.8.8.8: icmp_seq=30 ttl=40 time=29.6 ms
64 bytes from 8.8.8.8: icmp_seq=31 ttl=40 time=37.7 ms
64 bytes from 8.8.8.8: icmp_seq=32 ttl=40 time=48.6 ms
64 bytes from 8.8.8.8: icmp_seq=33 ttl=40 time=31.9 ms
64 bytes from 8.8.8.8: icmp_seq=34 ttl=40 time=34.0 ms
64 bytes from 8.8.8.8: icmp_seq=35 ttl=40 time=30.9 ms
64 bytes from 8.8.8.8: icmp_seq=36 ttl=40 time=44.5 ms
64 bytes from 8.8.8.8: icmp_seq=37 ttl=40 time=29.6 ms
64 bytes from 8.8.8.8: icmp_seq=38 ttl=40 time=41.7 ms
64 bytes from 8.8.8.8: icmp_seq=39 ttl=40 time=33.8 ms
64 bytes from 8.8.8.8: icmp_seq=40 ttl=40 time=31.0 ms
64 bytes from 8.8.8.8: icmp_seq=42 ttl=40 time=8263 ms
64 bytes from 8.8.8.8: icmp_seq=43 ttl=40 time=7255 ms
64 bytes from 8.8.8.8: icmp_seq=44 ttl=40 time=6257 ms
64 bytes from 8.8.8.8: icmp_seq=45 ttl=40 time=5257 ms
64 bytes from 8.8.8.8: icmp_seq=46 ttl=40 time=4257 ms
64 bytes from 8.8.8.8: icmp_seq=47 ttl=40 time=3261 ms
64 bytes from 8.8.8.8: icmp_seq=48 ttl=40 time=2261 ms
64 bytes from 8.8.8.8: icmp_seq=49 ttl=40 time=1261 ms
64 bytes from 8.8.8.8: icmp_seq=50 ttl=40 time=261 ms
64 bytes from 8.8.8.8: icmp_seq=51 ttl=40 time=300 ms
64 bytes from 8.8.8.8: icmp_seq=52 ttl=40 time=344 ms
64 bytes from 8.8.8.8: icmp_seq=54 ttl=40 time=8739 ms
64 bytes from 8.8.8.8: icmp_seq=55 ttl=40 time=8011 ms
64 bytes from 8.8.8.8: icmp_seq=56 ttl=40 time=7011 ms
64 bytes from 8.8.8.8: icmp_seq=57 ttl=40 time=6011 ms
64 bytes from 8.8.8.8: icmp_seq=58 ttl=40 time=5007 ms
64 bytes from 8.8.8.8: icmp_seq=59 ttl=40 time=4003 ms
64 bytes from 8.8.8.8: icmp_seq=60 ttl=40 time=3003 ms
Is there anything else I can try? Thank you very much
Since you can reach the google servers this doesn't suggest an internet connectivity problem, but perhaps you need to restart your browser (as it may be relying on stale DNS cache).
Anyway, which sites can't you get to? Try using host (DNS lookup) to check the problem sites eg
Code:
host -ta foo.com
Does the IP address get resolved? What happens when you check via traceroute?
For example
Code:
/usr/sbin/traceroute linuxquestions.org
If these succeed where the browser fails, then the issue is as explained above.
The notebook (Fresh ubuntu 16.04 installed) connects with the college wifi, after some refresh, redirects me to a partial login page but then no internet connections.
BTW, I assumed you managed to login (captive portal) successfully? You didn't clarify.
So I have rebooted after changing dns, cleared cash, cookie. I am using chromium, and firefox. this is the sequence of what happens..Start the pc, it connects automatically to the wifi. open the browser and being redirected to the captive portal, click accept and redirected again to the portal conditions ecc(this is requested only one time in a day) form this moment no sites is reachable. I have to change dns restart the pc and I am able to load a site or half.
Tomorrow I will run the test that you told me.
Might be tempted to look at the web page they are using while in Windows. Read the html and see if they are using some odd code or scripts. If half of it comes up it could be a web page issue. Might try different (forgot name where you change how browser reports like chrome or ie or what)
Also maybe disable ipv6 in networking as well as browsers.
Ping may work always but they may be blocking port 80 or other like 8080.
I am able to access the portal and click access. that's it. But when I reboot, change dns, or switch off-on the wifi sometimes I am able to load something from any web site. Same situation when I boot from usb ubuntu 15.10 or 16.04.
I tested the pc on other portals (like Mariano's or Starbucks) and it works perfectly.
Code:
andrea@andrea-Latitude-E4310:~$ nslookup askubuntu.com
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: askubuntu.com
Address: 151.101.65.69
Name: askubuntu.com
Address: 151.101.193.69
Name: askubuntu.com
Address: 151.101.1.69
Name: askubuntu.com
Address: 151.101.129.69
andrea@andrea-Latitude-E4310:~$ tcptraceroute linuxquestions.org
Selected device wlp2s0, address 10.209.73.24, port 52645 for outgoing packets
Tracing the path to linuxquestions.org (75.126.162.205) on TCP port 80 (http), 30 hops max
1 10.1.10.1 6.475 ms 24.838 ms 5.714 ms
2 96.120.27.1 19.025 ms 22.185 ms 32.719 ms
3 ge-1-39-ur02.rmeadows.il.chicago.comcast.net (68.86.118.189) 20.455 ms 21.836 ms 26.054 ms
4 68.86.184.253 21.031 ms 105.286 ms *
5 be-33491-cr02.350ecermak.il.ibone.comcast.net (68.86.91.165) 28.504 ms 29.010 ms 27.150 ms
6 hu-0-10-0-1-pe04.350ecermak.il.ibone.comcast.net (68.86.83.54) 51.204 ms 20.451 ms 20.684 ms
7 xe-0-0-0.bbr01.eq01.chi01.networklayer.com (75.149.228.98) 47.495 ms 65.598 ms 60.871 ms
8 ae5.cbs01.eq01.chi01.networklayer.com (50.97.17.28) 59.028 ms 59.763 ms 25.904 ms
9 ae0.dar01.sr01.dal01.networklayer.com (173.192.18.211) 55.154 ms 50.372 ms 54.032 ms
10 po1.fcr02.sr04.dal01.networklayer.com (66.228.118.178) 62.612 ms 59.815 ms 48.937 ms
11 www.linuxquestions.org (75.126.162.205) [open] 48.364 ms 61.058 ms 47.123 ms
andrea@andrea-Latitude-E4310:~$
So, you have NetworkManager configured to use dnsmasq? I've read that many Ubuntu-like OS are using a dnsmasq. Perhaps this particular connection nameserver does not play nicely with dnsmasq for some reason. However, NM can be configured to update /etc/resolv.conf directly for a given active connection. Examine /etc/NetworkManager/NetworkManager.conf and look for the entry
Code:
dns=dnsmasq
Comment it out...
Code:
#dns=dnsmasq
Restart NM and see if the behaviour with this captive portal is now ok.
Hi, thank you for answering. I tried but nothing changed. It is very strange because I tried with an other pc ubuntu 15.10 and it works. This pc has the same problem even when booted form usb on ubuntu 15.10.
Without being in front of this machine, it's not clear (to me at least) what might be wrong here. Maybe, it is down to the MAC address of the wireless card concerned. Have they blacklisted it perhaps? You could try using a USB wireless device, and check whether the behaviour is any different. That's about all I can offer unfortunately.
If you can get one computer to work correctly with a usb and that same usb fails on a different computer then I'd look at the driver maybe for nic. I'd look in /var logs to see if you can find clues. Might have to load wireshark to see what is going on or other diag tools.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.