From owner-freebsd-pf@FreeBSD.ORG Wed Sep 19 18:41:23 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC04716A417 for ; Wed, 19 Sep 2007 18:41:23 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by mx1.freebsd.org (Postfix) with ESMTP id 4A3E013C428 for ; Wed, 19 Sep 2007 18:41:23 +0000 (UTC) (envelope-from max@love2party.net) Received: from dslb-088-066-026-077.pools.arcor-ip.net [88.66.26.77] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1IY4UA1pEo-00024i; Wed, 19 Sep 2007 20:41:21 +0200 From: Max Laier Organization: FreeBSD To: freebsd-pf@freebsd.org Date: Wed, 19 Sep 2007 20:41:06 +0200 User-Agent: KMail/1.9.7 References: <499c70c0709191042m2e784314j564e8974703b2fe6@mail.gmail.com> In-Reply-To: <499c70c0709191042m2e784314j564e8974703b2fe6@mail.gmail.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3412942.lgqe4IIjsd"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200709192041.16258.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+zMupZXwoJBopXo4OvHregQm8Hnu/snrufwyC vuzh2UEk495bjWGtJMvq4hygQ8/2h4cpduQLa7bK4GZpP2vsmT r7a+ckMsgnEhknbo3KyTW1FYOCGiryTOpyxPTlzAMU= Cc: Subject: Re: pfctl -e and pfctl -d kills all connections X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 19 Sep 2007 18:41:23 -0000 --nextPart3412942.lgqe4IIjsd Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 19 September 2007, Abdullah Ibn Hamad Al-Marri wrote: > Hello Guys, > > Here are my full rules. > > When I pfctl -e or pfctl -d all connections will die. =2E.. "rules with synproxy state" > Do you know the cause? see above. Using "synproxy state" causes pf to complete the 3WHS before=20 contacting the other endpoint, hence it has to translate all future=20 sequence numbers for this connection. If you disable pf, the translation=20 goes away and the connection dies. The same thing happens if you=20 use "modulate state". =46or the "pfctl -e" case: The pf in CURRENT uses "keep state flags S/SA"= =20 by default for any tcp pass rule. That means that it will only match on=20 the initial SYN that starts the connection. The rest of the connection=20 is then passed based on the state entry. Consequently any pre-existing=20 connection will not have a state entry and be blocked. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart3412942.lgqe4IIjsd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBG8W1MXyyEoT62BG0RAq92AJ4surj6RIL5FBTyweb27ql+go7rGwCffvV9 vubQamEduOGEsXyK/WU0bdI= =mSmY -----END PGP SIGNATURE----- --nextPart3412942.lgqe4IIjsd--