From owner-freebsd-questions@freebsd.org Wed Jan 23 23:20:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D44D14B5460 for ; Wed, 23 Jan 2019 23:20:35 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from mx31.harte-lyne.ca (mx31.harte-lyne.ca [216.185.71.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx31.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 69B108FD89 for ; Wed, 23 Jan 2019 23:20:24 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from mx31.harte-lyne.ca (localhost [127.0.31.1]) by mx31.harte-lyne.ca (Postfix) with ESMTP id 8433CD8B9 for ; Wed, 23 Jan 2019 18:20:19 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from mx31.harte-lyne.ca ([127.0.31.1]) by mx31.harte-lyne.ca (mx31.harte-lyne.ca [127.0.31.1]) (amavisd-new, port 10024) with ESMTP id AFOJKo2RmFrs for ; Wed, 23 Jan 2019 18:20:04 -0500 (EST) Received: from inet17.hamilton.harte-lyne.ca (inet17.hamilton.harte-lyne.ca [216.185.71.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx31.harte-lyne.ca (Postfix) with ESMTPS for ; Wed, 23 Jan 2019 18:19:59 -0500 (EST) Received: from mx32.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx32.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (verified OK)) by inet17.hamilton.harte-lyne.ca (Postfix) with ESMTPS id 2015D199025 for ; Wed, 23 Jan 2019 18:19:47 -0500 (EST) Received: from mx32.harte-lyne.ca (unknown [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 915A13718 for ; Wed, 23 Jan 2019 18:19:47 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from mx32.harte-lyne.ca ([127.0.32.1]) by mx32.harte-lyne.ca (mx32.harte-lyne.ca [127.0.32.1]) (amavisd-new, port 10024) with ESMTP id 1JwJdrw_NccT for ; Wed, 23 Jan 2019 18:19:32 -0500 (EST) Received: from webmail.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx32.harte-lyne.ca (Postfix) with ESMTPSA id 63CA9370C for ; Wed, 23 Jan 2019 18:19:32 -0500 (EST) Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 23 Jan 2019 18:19:32 -0500 Message-ID: <1bdea92a0cedc17cc49187c01d49b94f.squirrel@webmail.harte-lyne.ca> Date: Wed, 23 Jan 2019 18:19:32 -0500 Subject: PF filter rule for LAN to LAN ssh traffic From: "James B. Byrne" To: freebsd-questions@harte-lyne.ca Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Rspamd-Queue-Id: 69B108FD89 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[byrnejb@harte-lyne.ca]; R_SPF_ALLOW(-0.20)[+ip4:216.185.71.0/26]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DKIM_TRACE(0.00)[harte-lyne.ca:+]; DMARC_POLICY_ALLOW(-0.50)[harte-lyne.ca,quarantine]; HAS_X_PRIO_THREE(0.00)[3]; MX_GOOD(-0.01)[mx31.harte-lyne.ca,mx132.harte-lyne.ca]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-1.80)[ipnet: 216.185.64.0/20(-4.95), asn: 12021(-3.96), country: CA(-0.09)]; MIME_TRACE(0.00)[0:+]; FORGED_RECIPIENTS(0.00)[freebsd-questions@harte-lyne.ca,freebsd-questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:12021, ipnet:216.185.64.0/20, country:CA]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[harte-lyne.ca:s=dkim_hll]; FROM_HAS_DN(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[harte-lyne.ca.dwl.dnswl.org : 127.0.4.1]; RCVD_COUNT_SEVEN(0.00)[9] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2019 23:20:35 -0000 What is the PF filter rule to permit ssh between hosts on the LAN side of a gateway firewall? When I ssh to a host the intitial connection works fine. But, after a few seconds the session becomes non-responsive and is eventually dropped with this message Fssh_packet_write_wait: Connection to 192.168.216.18 port 22: Broken pipe I tried various formulations of this: pass in log on $int_if \ from $int_if:network \ to $int_if:network keep state pass out log on $int_if \ from $int_if:network \ to $int_if:network keep state None of which worked. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3