From: George Neuner <gneuner2@comcast.net>
To: pgsql-general@postgresql.org
Subject: Re: Connection loosing at some places - caused by firewall
Date: Tue, 20 Feb 2018 00:54:05 -0500
Message-ID: <9bbn8dt0juobafdv8ds5pt0f04374u3qc1@4ax.com> (raw)
References: <CAEcMXhn8Hvu3do5F-k5o3x1nYy3wLHXTNFXU1A2SrADYGo97ww@mail.gmail.com>
<a9h68dplsdv429tc5u8bjav7iu516cekoo@4ax.com>
<CAEcMXhnT+KKFtZLVJ1ahME2sEHbbFk6+7t2s0U-ZMyXfL_nXvg@mail.gmail.com>
On Mon, 19 Feb 2018 13:02:30 +0100, Durumdara <durumdara@gmail.com>
wrote:
>2018-02-13 21:21 GMT+01:00 George Neuner <gneuner2@comcast.net>:
>
>> On Tue, 14 Nov 2017 12:09:31 +0100, Durumdara <durumdara@gmail.com>
>> wrote:
>>
>> >*I disabled my firewall at home - the [keepalive] problem vanished!!!*
>>
>> What firewall are you using? Windows own firewall doesn't interfere
>> with keepalive packets. Most commercial SOHO firewalls won't either.
>>
>Normal Windows Firewall (Defender). An ASUS test notebook works. The DELL
>isn't.
>So something is different in the FW on DELL. With manually defined (faster)
>keepalive it's working.
Keepalive is part of the TCP protocol - it's an ACK that repeats the
last used packet sequence number. Under normal circumstances, the
sequence number is incremented (modulo rollover) for each new packet.
Keepalive is recognized as a deliberate and particular breaking of the
packet sequence.
Windows firewall has no settings pertaining to keepalive separate from
the operating system. Once you have permitted TCP connections to the
port or program, if any keepalive packets are sent, the firewall must
allow them through.
[Of course, both sides must agree on the keepalive settings for it to
work, but that is a different issue.]
It may be that your firewall is f'd up. The firewall doe perform
"stateful inspection" of open TCP connections - essentially looking
for protocol mistakes that may indicate intrusion hacks or replayed
connections. It could be that the SI module is losing synchronization
when the connection goes idle.
[Back in the day, there were a number of SOHO NAT routers that had
this and other problems with their stateful inspection code.]
You can try running a system file check to see if something has gotten
corrupted:
https://support.microsoft.com/en-us/help/929833/use-the-system-file-checker-tool-to-repair-missing-o...
You also can try resetting the firewall rules to default from the
control panel. Of course then you'll have to reauthorize every
program that requires a connection.
for more information on how the firewall works, see:
https://technet.microsoft.com/en-us/library/cc779199(v=ws.10).aspx
Hope this helps,
George
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: gneuner2@comcast.net
Subject: Re: Connection loosing at some places - caused by firewall
In-Reply-To: <9bbn8dt0juobafdv8ds5pt0f04374u3qc1@4ax.com>
References: <CAEcMXhn8Hvu3do5F-k5o3x1nYy3wLHXTNFXU1A2SrADYGo97ww@mail.gmail.com> <a9h68dplsdv429tc5u8bjav7iu516cekoo@4ax.com> <CAEcMXhnT+KKFtZLVJ1ahME2sEHbbFk6+7t2s0U-ZMyXfL_nXvg@mail.gmail.com> <9bbn8dt0juobafdv8ds5pt0f04374u3qc1@4ax.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox