LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-02-2013, 05:20 AM   #1
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Rep: Reputation: 0
Can't connect to some websites


Hello,

I performed a fresh Archlinux install a couple of days ago. Everything is fine, no hardware errors, the package manager and curl work like a charm, but web browsers get stuck while connecting to some websites.

I tried with elinks, chromium and firefox and they get stuck on SSL negotiation or "waiting for <website>" for very long times.
Installed the whole thing again. Same issue.

Just tested with:
Code:
openssl s_client -connect facebook.com:443
openssl s_client -connect google.com:443
Seems to work fine, I can GET with no problems.

Then tested with:
Code:
wget --debug -O - https://facebook.com
It gets stuck to "Initializing SSL handshake" and after a couple of minutes the connection is closed with error message "Unable to establish SSL connection."

The system date and time are correct, the system is up to date, used the latest install image available at http://archlinux.org, installed following the install guide from the Archlinux wiki.
All tests performed as root.

I've also installed Windows 8: no network problems. Checked the MTU: looks correct. dmesg does not report anything strange.

Some sites get stuck only at first and then send data at normal speed. Some others instead don't work at all.
 
Old 06-02-2013, 01:38 PM   #2
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 17
Have you tried temporarly disabling IPv6?
 
Old 06-02-2013, 05:45 PM   #3
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
Yeah. Also tried disabling TCP window scaling and ECN.

The strange thing is that websites work at first, but after a couple of seconds the connection slows down and blocks the next requests, as if the server doesn't respond. This happens with the web browsers only, because the package manager works well (over HTTP) even after the browsers stop working..
 
Old 06-02-2013, 05:57 PM   #4
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 17
Weird QOS settings?

I think you'll have to use tcpdump to solve the mistery.
 
Old 06-04-2013, 02:24 PM   #5
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
Can't see anything strange from the output of tcpdump.

Just noticed that if I connect over TOR, the issue is not present. Other computers connecting from my LAN don't suffer from this problem (those machines run Win8 and Archlinux also).
 
Old 06-04-2013, 05:37 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
Are the other machines using the same dns service ?

i like Google
8.8.8.8 and 8.8.4.4
and have ipv6 disabled for dns with dhcp ,set to IP address ONLY .
 
Old 06-05-2013, 01:33 AM   #7
dustball
LQ Newbie
 
Registered: Jun 2013
Location: Germany
Distribution: ArchLinux
Posts: 1

Rep: Reputation: Disabled
Create /etc/resolv.conf.head containing following:
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
Both are (as John already said) Google's DNS servers. I had the same issue for quite some time and tested everything. Network cards, wiring, routers... in the end it was the DNS itself. Sometimes your router doesn't receive correct DNS server updates from your IP and those can stick quite a while (more than half a year, at least by that time I got the idea that the DNS is wrong and then changed it).
 
Old 06-05-2013, 04:55 AM   #8
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 17
Quote:
Originally Posted by icecoder View Post
Can't see anything strange from the output of tcpdump.
If the connection is behaving this way, there should be somethign almost for sure. Maybe some missing RST, dopped package, or who knows...
 
Old 06-05-2013, 02:14 PM   #9
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
Actually I've already checked DNS. Checked again (always with google DNS servers), same issue. The problem persists even when connecting to local web servers (even when using IP addresses, so no DNS issue).

Here is the output of
Code:
tcpdump -i wlp11s1 -p "ip host 192.168.1.236"
for a connection I've made with facebook. The page has been loaded but the result is malformed (CSS not correctly downloaded, AJAX calls still pending)

http://pastebin.com/02tMFFHN
 
Old 06-05-2013, 04:27 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
Quote:
Just noticed that if I connect over TOR,
so tor "*.onion" pages are working
is this with the "tor browser" or the firefox "tor button "

and FB in firefox is malformed
is this the current ff21 or the ff17 "extended life "

have you made sure that libssl is installed ? ( should be )

is the very last adobe flash installed ? 11.2
or are you using the not very well working opensource version ?
( to see type into the FF addressbar
Code:
about:plugins
--- or for a menu ---
about:about
 
Old 06-06-2013, 04:51 AM   #11
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
so tor "*.onion" pages are working
is this with the "tor browser" or the firefox "tor button "

and FB in firefox is malformed
is this the current ff21 or the ff17 "extended life "

have you made sure that libssl is installed ? ( should be )

is the very last adobe flash installed ? 11.2
or are you using the not very well working opensource version ?
( to see type into the FF addressbar
Code:
about:plugins
--- or for a menu ---
about:about
I connected to normal websites (not .onion ones) with chromium (same browser, along with firefox, which is giving me the problem) which has the latest flash version included..

libssl is installed.
 
Old 06-06-2013, 05:04 AM   #12
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 17
The TCP dump, shows that DNS is proxied by router, that also handles local zone.
You are right: the https stream looks normal.

I'm starting to think we are looking in the wrong direction.
What's the model of you network card?
 
Old 06-06-2013, 05:08 AM   #13
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 17
Also, please grab lastest ubuntu Live CD and tell us if it does work
 
Old 06-06-2013, 08:18 PM   #14
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Original Poster
Rep: Reputation: 0
Tried with Ubuntu live. Same problem.
The problem appeared as I changed the motherboard (not sure if can be related to that, since Windows doesn't suffer from the issue).

The model is: TL-WN551G (TP-LINK). I used this same network adapter with the old mobo and OS and worked perfectly.
 
  


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
CentOS 5.6 can connect to internet, but can't display websites or SSH SecurityGate Linux - Newbie 4 05-20-2011 02:00 AM
Cannot connect to Secure websites through proxy Squidman Linux - Newbie 0 04-04-2008 06:14 AM
Unable to view websites/connect to servers fwm-support Linux - Newbie 1 02-10-2005 09:08 AM
Wireless talks to the router but does not connect to websites ksgill Linux - Newbie 5 10-29-2004 04:28 AM
Cant connect to some websites... pld Linux - Networking 13 05-18-2004 08:58 PM

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

All times are GMT -5. The time now is 09:01 PM.

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