LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2016, 08:30 PM   #1
reli
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Rep: Reputation: 0
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
Attached Files
File Type: txt wireless-info.txt (60.4 KB, 12 views)

Last edited by reli; 09-22-2016 at 08:37 PM.
 
Old 09-22-2016, 08:55 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
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.

Last edited by ferrari; 09-22-2016 at 08:59 PM.
 
Old 09-22-2016, 08:58 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
Quote:
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.
 
Old 09-22-2016, 09:29 PM   #4
reli
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
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.

Thank you very much for answering.
 
Old 09-22-2016, 10:21 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
Ok, perhaps check the DNS config (if any) in /etc/resolv.conf after logging in
Code:
grep -i "name" /etc/resolv.conf
Maybe DHCP isn't working properly. What happens (with respect to browsing) when you do the following (to flush the DNS cache) after the login?
Code:
sudo /etc/init.d/dns-clean
 
Old 09-22-2016, 10:39 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,887

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
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.
 
Old 09-22-2016, 11:23 PM   #7
reli
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
This are some information on the connections. I have set IPV6 ignore.

Code:
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   3add5218-8112-4758-89a1-2e118aac8fd4 | CCCFREE
IP4.ADDRESS[1]:                         10.200.99.21/16
IP4.GATEWAY:                            10.200.0.1
IP4.DNS[1]:                             10.200.0.1
IP4.DOMAIN[1]:                          firstspot.org
DHCP4.OPTION[1]:                        requested_routers = 1
DHCP4.OPTION[2]:                        requested_domain_search = 1
DHCP4.OPTION[3]:                        server_name = TRFIRSTSPOT4
DHCP4.OPTION[4]:                        netbios_node_type = 8
DHCP4.OPTION[5]:                        requested_time_offset = 1
DHCP4.OPTION[6]:                        requested_domain_name = 1
DHCP4.OPTION[7]:                        requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[8]:                        requested_broadcast_address = 1
DHCP4.OPTION[9]:                        requested_wpad = 1
DHCP4.OPTION[10]:                       requested_netbios_scope = 1
DHCP4.OPTION[11]:                       next_server = 0.0.0.0
DHCP4.OPTION[12]:                       expiry = 1474898354
DHCP4.OPTION[13]:                       requested_interface_mtu = 1
DHCP4.OPTION[14]:                       requested_subnet_mask = 1
DHCP4.OPTION[15]:                       dhcp_lease_time = 345600
DHCP4.OPTION[16]:                       dhcp_message_type = 5
DHCP4.OPTION[17]:                       ip_address = 10.200.99.21
DHCP4.OPTION[18]:                       requested_static_routes = 1
DHCP4.OPTION[19]:                       domain_name = firstspot.org
DHCP4.OPTION[20]:                       requested_domain_name_servers = 1
DHCP4.OPTION[21]:                       broadcast_address = 10.200.255.255
DHCP4.OPTION[22]:                       requested_ntp_servers = 1
DHCP4.OPTION[23]:                       requested_netbios_name_servers = 1
DHCP4.OPTION[24]:                       routers = 10.200.0.1
DHCP4.OPTION[25]:                       domain_name_servers = 10.200.0.1
DHCP4.OPTION[26]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[27]:                       subnet_mask = 255.255.0.0
DHCP4.OPTION[28]:                       network_number = 10.200.0.0
DHCP4.OPTION[29]:                       requested_host_name = 1
DHCP4.OPTION[30]:                       dhcp_server_identifier = 10.200.0.1
IP6.ADDRESS[1]:                         fe80::<IP6 'wlp2s0' [IF2]>/64
 
Old 09-23-2016, 01:46 PM   #8
reli
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Here are the result of the command you gave me.
Code:
andrea@andrea-Latitude-E4310:~$ host -ta foo.com
;; connection timed out; no servers could be reached
andrea@andrea-Latitude-E4310:~$ sudo /etc/init.d/dns-clean
[sudo] password for andrea: 
sudo: /etc/init.d/dns-clean: command not found
andrea@andrea-Latitude-E4310:~$ grep -i "name" /etc/resolv.conf
nameserver 127.0.1.1
andrea@andrea-Latitude-E4310:~$

Code:
andrea@andrea-Latitude-E4310:~$ tcptraceroute linuxquestions.org
Bad destination address: linuxquestions.org
andrea@andrea-Latitude-E4310:~$ tcptraceroute google.com
Bad destination address: google.com
andrea@andrea-Latitude-E4310:~$
Code:
andrea@andrea-Latitude-E4310:~$ ps ax | grep dnsmasq
 1144 ?        S      0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
 2607 pts/1    S+     0:00 grep --color=auto dnsmasq

Thank you for your time .

Last edited by reli; 09-23-2016 at 02:00 PM.
 
Old 09-23-2016, 03:37 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,887

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
nameserver 127.0.1.1 ???

Are you only able to access the web portal or do you get some pages to load half way?


You need to remove ipv6 from network not ignore it. It is still there. (may have nothing to do with issue however)
 
Old 09-23-2016, 03:49 PM   #10
reli
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
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:~$

Last edited by reli; 09-23-2016 at 04:37 PM.
 
Old 09-23-2016, 05:31 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
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.

Some pages on the same topic
http://www.ubuntugeek.com/how-to-dis...04precise.html
http://askubuntu.com/questions/62789...f-wont-go-away
 
Old 09-29-2016, 10:55 PM   #12
reli
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 09-29-2016, 11:14 PM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
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.
 
Old 09-30-2016, 03:58 PM   #14
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,887

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access Internet via the public Library's WiFi signal; Ubuntu v. 12.04 is my OS JLBB Linux - Newbie 22 09-30-2016 10:28 AM
[SOLVED] WiFi is connected but unable to access internet in RHEL 6 and Fedora 17 aniruddha.jagdale Linux - Wireless Networking 6 04-28-2013 01:30 PM
laptop wifi security in public library, etc., etc. SP7 Linux - Security 2 07-09-2010 07:44 AM
can't access public wifi BUT wifi works on my router at home rob.rice Linux - Networking 4 05-15-2009 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration