From owner-freebsd-pf@freebsd.org Mon Dec 2 13:46:30 2019 Return-Path: Delivered-To: freebsd-pf@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC1391AA4B0 for ; Mon, 2 Dec 2019 13:46:30 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47RRGt0yXlz3N0g for ; Mon, 2 Dec 2019 13:46:29 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=j6/BmSnnUGZG3dbf/hwieTOqf/los0Nwxo+QLGneKEI=; b=YD2JhqY9/TA8IuXBYc7ZOlAwgk zGqpAEexsZilJX/ZBlHjVJ4bWSt7O3+YvvqxkEfUEVOjd6cocrtMVO9mjxwzlmPb+KENLXpAIBRPW s1SgF/8RI8Pm4ZDi8w7Fdkpn+2h32K6rmVBlRKfbjkFpkWkRzlVSj1E71iPgBEARGie8=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ibm1w-0003li-Gu; Mon, 02 Dec 2019 20:46:24 +0700 Date: Mon, 2 Dec 2019 20:46:24 +0700 From: Victor Sudakov To: Artem Viklenko Cc: Max , freebsd-pf@freebsd.org Subject: Re: pf's states Message-ID: <20191202134624.GB14183@admin.sibptus.ru> References: <20191202025642.GA99174@admin.sibptus.ru> <90c1b342-b88a-a9bc-d475-4e6cd027f25c@als.nnov.ru> <1c3f3105-86c4-e61a-7d81-f4d794773542@viklenko.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O5XBE6gyVG5Rl6Rj" Content-Disposition: inline In-Reply-To: <1c3f3105-86c4-e61a-7d81-f4d794773542@viklenko.net> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47RRGt0yXlz3N0g X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=YD2JhqY9; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; IP_SCORE(-3.35)[ip: (-9.87), ipnet: 2001:19f0:5000::/38(-4.93), asn: 20473(-1.90), country: US(-0.05)]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2019 13:46:30 -0000 --O5XBE6gyVG5Rl6Rj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Artem Viklenko via freebsd-pf wrote: > Hi! >=20 > Check current state-policy - if-bound or floating. I thought it was "floating" by default. > If it if-bound, out rules needed. If floating - state should pass traffic= in=20 > reverse direction. Well, I configured "set state-policy floating" explicitly in pf.conf and no, this did not help. Uncommenting the "block.." rule prevents a tcp connection from 192.168.10.3 to 172.16.1.10:80" - why is that? --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --O5XBE6gyVG5Rl6Rj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJd5RWwAAoJEA2k8lmbXsY0cAIH/jVxlldQyZtlT+VDHcMc8Xzg vlMnYeISreUaPeq5fkxdKwj8xkoSrGCDtJ00h2UCqDbaf9Ag74sa6C+s+OXYJMvt OxDPvCv+PIGuRTSjUHkMprH9XDS0yLdaA6aHfDToE/Ymmr7KbpUTbw1cjmNP+lbP u4t4F2boQRjMwprZaOW95ba6cVN13pmXRo5cgMyhPXfRVCV05e8YSoCKd3VAB8sq 7mv++CAEHRSHOFdnBCWn9Y9uqa/KY+T94dOeaXMn30ogKL8s7NSZlcJFipy5eI9h E5r8hOw83ucSfKUiFe+1gcky+aJ7RCzfWMwCo1WG0qz3lXeSx2v0Ua/kZ5X9bt8= =qE2o -----END PGP SIGNATURE----- --O5XBE6gyVG5Rl6Rj--