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 01-13-2016, 06:13 PM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
Why are connections to https failing?


Connections to https sites has been unreliable for approximately two weeks.
  • Http sites behave normally, loading quickly.
  • Some https sites behave oddly, sometimes working perfectly fine for 5-20 minutes at a time, but often the connection is broken at random times, and sometimes these are completely unavailable for hours or a half a day. Whether the connection works or not appears completely random, and is not related to the hours when the ISP has much traffic. One minute it works, the next, it doesn't.
  • Some browsers report a failure to establish a secure connection. Firefox 43 reported "Secure Connection Failed: The connection to ... was interrupted while the page was loading."
  • This seems to be unrelated to the browser or add-ons, as I found the same issue with Iceweasel, Firefox, Chromium, Konqueror, and Opera with and without add-ons installed.
  • This seems unrelated to my router, as I found the same issue after connecting directly to the wall.
  • The problem appears on computers running Debian 7 and Debian 8.

Why is the connection having problems?

Last edited by General; 01-13-2016 at 07:28 PM.
 
Old 01-13-2016, 08:39 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,241
Blog Entries: 27

Rep: Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336
Can you provide links to some of the sites that are failing so others can test them?
 
Old 01-13-2016, 09:14 PM   #3
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Here are two:

www.schoology.com
www.amazon.com

When just typing these addresses, I'm taken to:

http://www.schoology.com
http://www.amazon.com

But after clicking "Login" or similar, to enter the account, it switches to https, which is when the connection has the issues I described.

Last edited by General; 01-13-2016 at 09:15 PM.
 
Old 01-13-2016, 09:47 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,241
Blog Entries: 27

Rep: Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336
I have no issues connecting to those sites in Seamonkey via https, but I'm not running Debian. Perhaps some Debian users will check them out.
 
Old 01-23-2016, 06:51 PM   #5
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Does anyone have any ideas why https connections are frequently failing?
 
Old 01-23-2016, 07:06 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,585
Blog Entries: 11

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
Quote:
Originally Posted by General View Post
Here are two:

www.schoology.com
www.amazon.com

When just typing these addresses, I'm taken to:

http://www.schoology.com
http://www.amazon.com

But after clicking "Login" or similar, to enter the account, it switches to https, which is when the connection has the issues I described.
I recall seeing your thread a few days ago and visiting amazon and schoology via https without any problems.

My only thoughts were, and still are, that if it only happens after you login then it might be something specific to your accounts there, or the logged-in state. But that would make it extremely difficult for anyone not at your computer to try to troubleshoot it.

You might try navigating the sites as https without logging in and see if you encounter any problems. If you can come up with a clear reproducible case it would be very helpful.

Otherwise, maybe try another browser or try from a different location.

Also check your privacy settings, cookies, scripts to make sure you are not blocking login tokens.

Last edited by astrogeek; 01-23-2016 at 07:09 PM.
 
Old 01-23-2016, 07:24 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,929
Blog Entries: 10

Rep: Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039
i have no issues using these 2 sites with https.

but https can only work if it is set up so on the server in question.
 
Old 01-23-2016, 09:51 PM   #8
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
but https can only work if it is set up so on the server in question.
Which server? For the sites I'm connecting to?

Quote:
You might try navigating the sites as https without logging in and see if you encounter any problems. If you can come up with a clear reproducible case it would be very helpful.
It does seem that I can load some https sites. I can often see the login page at Schoology, which is https, but choosing "Log in" very often is when it starts failing.

Quote:
Otherwise, maybe try another browser
I've installed and tried every browser I could find in the Debian repositories, but experienced the same problem.

Quote:
try from a different location.
Other computers, different locations, works great, even on the same ISP.

My computers, connected at different locations, also works great.

Quote:
Also check your privacy settings, cookies, scripts to make sure you are not blocking login tokens.
My regular use computer has all kinds of security features that could likely interfere, such as a firewall, and browser features blocking JavaScript, etc. However, I tried a minimal fresh install on another computer, so I can't see anything there blocking it.

I've tried several other things to troubleshoot:
  • Logging in at home with Debian Wheezy. (problem appears)
  • Logging in at home with Debian Jessie, fresh install, another computer. (problem appears)
  • Logging in at home with the above devices, without connecting through the router. (problem appears)
  • Logging in at home with iPad. (problem appears)
  • Logging in at home with iPad using the downloaded app instead of the Web sites. (problem appears less often)

The problem disappears in these situations:
  • Logging in at a friend's home, different ISP, with my devices above. (no problem)
  • Logging in using office computer, which uses the same ISP as mine. (no problem)

I contacted my ISP, but they think the problem is at my end. They suggested it might be my firewall. I never installed a firewall on my Debian Jessie computer. Does that have a firewall or iptables by default? They can't think of anything else possibly causing this problem.
 
Old 01-24-2016, 11:30 AM   #9
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Hi...

Out of curiosity, what adapter are you using to connect to the internet? Also, please open a terminal and post the results of...

Code:
lspci -nnk | grep -i net -A2
I believe iptables is installed by default in most, if not all, Linux distributions. To check whether it has any rules defined, again, please post the results of this command...

Code:
sudo iptables -L -v
Regards...
 
Old 01-24-2016, 03:54 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,929
Blog Entries: 10

Rep: Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039Reputation: 5039
Quote:
Originally Posted by General View Post
Which server? For the sites I'm connecting to?
yes.
and i expressed it wrongly, it should've been:
you cannot connect with https if it isn't working on the site you are connecting to.

but since others have tested these sites; my guess it's either ISP related, or Router related, or your linux install (i take it it'as not a laptop so you can't easily take it somewhere else) is borked in a very strange way.
 
Old 02-04-2016, 07:22 PM   #11
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by ondoho View Post
but since others have tested these sites; my guess it's either ISP related, or Router related, or your linux install (i take it it'as not a laptop so you can't easily take it somewhere else) is borked in a very strange way.
No, they are laptops, but until recently, I haven't have any opportunity to try another connection. But now I have, and found that https works fine with my laptops when used at another location.
 
Old 02-04-2016, 07:38 PM   #12
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by ardvark71 View Post
Out of curiosity, what adapter are you using to connect to the internet? Also, please open a terminal and post the results of...

Code:
lspci -nnk | grep -i net -A2
I believe iptables is installed by default in most, if not all, Linux distributions. To check whether it has any rules defined, again, please post the results of this command...

Code:
sudo iptables -L -v
Regards...
I am just using an Internet cable to connect to the Internet.

Here is the output of lspci -nnk | grep -i net -A2:

Code:
01:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8132 Fast Ethernet [1969:1062] (rev c0)
	Subsystem: ASUSTeK Computer Inc. Device [1043:838a]
	Kernel driver in use: atl1c
02:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
	Subsystem: AzureWave AW-NE785 / AW-NE785H 802.11bgn Wireless Full or Half-size Mini PCIe Card [1a3b:1089]
	Kernel driver in use: ath9k
Here is the output of sudo iptables -L -v:

Code:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
I did a fresh install of one computer, so as to check if my IP Tables were the problem, but even with no IP Tables setup, as above, the https problem persists.
 
Old 02-04-2016, 08:59 PM   #13
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by General View Post
I've tried several other things to troubleshoot:
  • Logging in at home with Debian Wheezy. (problem appears)
  • Logging in at home with Debian Jessie, fresh install, another computer. (problem appears)
  • Logging in at home with the above devices, without connecting through the router. (problem appears)
  • Logging in at home with iPad. (problem appears)
  • Logging in at home with iPad using the downloaded app instead of the Web sites. (problem appears less often)

The problem disappears in these situations:
  • Logging in at a friend's home, different ISP, with my devices above. (no problem)
  • Logging in using office computer, which uses the same ISP as mine. (no problem)

I contacted my ISP, but they think the problem is at my end. They suggested it might be my firewall. I never installed a firewall on my Debian Jessie computer. Does that have a firewall or iptables by default? They can't think of anything else possibly causing this problem.
Hi...

From what you've mentioned here, I suspect the issue is most likely with your ISP at some point in the line.

Regards...
 
Old 02-04-2016, 09:46 PM   #14
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by ardvark71 View Post
Hi...

From what you've mentioned here, I suspect the issue is most likely with your ISP at some point in the line.
Okay, thank you. I will try to push them further to identify the problem. They kept insisting that the problem is on my end, saying my firewall or other settings are wrong. They said they can think of nothing else that will cause this problem.
 
Old 02-04-2016, 11:46 PM   #15
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by General View Post
They kept insisting that the problem is on my end, saying my firewall or other settings are wrong.
From what your readout shows, iptables isn't configured to block anything, so it couldn't be that.

Out of curiosity, does your modem have a firewall activated and if so, what is the result if you disable it?

Regards...
 
  


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
[Apache2] Connections via https questions... HellSinker Linux - Server 1 04-29-2014 11:52 AM
Https failing. How to protect? Reasa Linux - Security 8 10-26-2008 02:22 AM
Browser Failing at HTTPS sites -- SOLVED cheerfulpickle LinuxQuestions.org Member Success Stories 2 03-30-2006 04:29 PM
Some https connections time out. Likosin Linux - Networking 0 04-26-2005 07:48 PM
password rejected on https connections JCQ78 Linux - Networking 1 09-07-2003 05:36 PM

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

All times are GMT -5. The time now is 03:49 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