public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Charles Russell <worsafe@bellsouth.net>
To: cygwin cygwin <cygwin@cygwin.com>
Subject: Re: Cygwin sshd broken by seemingly trivial network change
Date: Thu, 17 Dec 2020 23:59:43 -0600	[thread overview]
Message-ID: <16d39bf2-36c8-2688-e892-c2e126728462@bellsouth.net> (raw)
In-Reply-To: <16d39bf2-36c8-2688-e892-c2e126728462.ref@bellsouth.net>


On 12/17/2020 3:09 PM, Brian Inglis wrote:

> Have you checked your new router to see what default rules are enabled
> there?

The router firewall is disabled. (I have a another router serving as a 
firewall between it and the modem.) Besides, all hosts are on the local 
side of the new router, and disabling the Windows firewall eliminates 
the problem.
_____________________
On 12/17/2020 3:23 PM, Bill Stewart wrote:
>
> If it works when you disable the firewall, then (to state the obvious,
> sorry) there is a rule in the firewall that is blocking the traffic.

So far so good.

> I would suggest to examine all of the rules carefully. I say this
> because it is happened to me before, and I could have sworn that I
> looked at all of the rules.

I've looked at
   Advanced Settings; Incoming Rules
and I've looked at the output of
   netsh advfirewall firewall show rule name=all

What else is there to look at in Windows 7 Home?

This is doubly frustrating because Cygwin sshd has been running properly 
for 10 years on one of these computers and 8 years on the other. Perhaps 
I should reset the firewalls to default, but that will break other things.
____________

On 12/17/2020 3:24 PM, Erik Soderquist wrote:

> I've had weird instances where the Windows Firewall tools lied; I
> confirmed this by temporarily shutting down the Windows Firewall
> entirely, then restarting the service having problems and retesting.
> On retest, it worked fine, confirming it was the firewall causing the
> problem.

I didn't have to restart sshd; I could connect as soon as I disabled 
Windows Firewall.

>
> What exactly the problem was varied (this has happened many many times
> to me)...  In some cases it was the rule definition for the scope not
> matching the actual network, in some cases I could not find any real
> issue, but deleting and recreating the rules fixed the issue, in a few
> cases, I also found a deny rule that somehow matched the service
> having problems, and deny rules take precedence over allow rules.  One
> example of the conflict could be "sshd allowed" vs "port 22 denied";
> the deny would take precedence.

I don't see any way to set port rules in Windows 7 Home, and none are 
visible in the list of incoming rules.

I could not delete sshd, only disable it, even as administrator. (The 
delete button was grayed out).  I disabled it, rebooted, then enabled 
it. That didn't help.

       reply	other threads:[~2020-12-18  5:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <16d39bf2-36c8-2688-e892-c2e126728462.ref@bellsouth.net>
2020-12-18  5:59 ` Charles Russell [this message]
     [not found] <b39ae638-12e2-d84d-135f-bd524a9ae8ff.ref@bellsouth.net>
2020-12-18 21:05 ` Charles Russell
2020-12-18 23:38   ` Erik Soderquist
2020-12-20 18:51   ` Andrey Repin
2020-12-20 22:43     ` Charles Russell
     [not found] <f0d79cb1-3f57-097d-ef43-86238437ef2e.ref@bellsouth.net>
2020-12-17 17:44 ` Charles Russell
2020-12-17 17:49   ` Bill Stewart
     [not found] <13d8e55e-bd07-24b7-628c-fa091f1c8401.ref@bellsouth.net>
2020-12-16 15:37 ` worsafe
2020-12-17 17:22   ` Stephen Carrier
2020-12-18  8:29   ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16d39bf2-36c8-2688-e892-c2e126728462@bellsouth.net \
    --to=worsafe@bellsouth.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).