From owner-freebsd-net@FreeBSD.ORG Sun May 18 07:19:37 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC18E1065671; Sun, 18 May 2008 07:19:37 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 219028FC1F; Sun, 18 May 2008 07:19:36 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m4I7JPia047593; Sun, 18 May 2008 08:19:31 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.5 smtp.infracaninophile.co.uk m4I7JPia047593 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1211095171; bh=iWyqktAVywGpDc U0NcrxG8hB86FP9xRqEpWwTqbmoGA=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<482FD877.6050707@infracaninophile.co.uk>|Date:=20Sun,=2 018=20May=202008=2008:19:19=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080503)|MIME-Version:=201 .0|To:=20=3D?ISO-8859-1?Q?Johan_Str=3DF6m?=3D=20 |CC:=20Alex=20Trull=20,=20freebsd-net@freebsd.org,= 20=0D=0A=20freebsd-stable=20,=0D=0A=20f reebsd-pf@freebsd.org|Subject:=20Re:=20connect():=20Operation=20not =20permitted|References:=20<678A03F5-5E8A-4CF6-90DF-AA9A4F30FBE1@st romnet.se>=09<1211037564.6326.27.camel@porksoda>=20<679DB462-75D6-4 5CC-949C-1BE8E12C22CD@stromnet.se>|In-Reply-To:=20<679DB462-75D6-45 CC-949C-1BE8E12C22CD@stromnet.se>|X-Enigmail-Version:=200.95.6|Cont ent-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20pr otocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------- -----enig220B22B21812B7D67D58F6E8"; b=w7qPpxsaWqz6TEKv4DfNfAWG1f4BY NvqZJ+Qxop7l87WoCeipBz42/rDtdapiWN0z7aEv8sZGHWTSfDPSjHJXbCHbR/LLxwL 2fdEMrNW6bWWbmhZmRMKM5FWEMzXypFj9Fksze1EcodyIrj1CcNKRlUZNCBksI/4QyB egiOx4kE= Message-ID: <482FD877.6050707@infracaninophile.co.uk> Date: Sun, 18 May 2008 08:19:19 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080503) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Johan_Str=F6m?= References: <678A03F5-5E8A-4CF6-90DF-AA9A4F30FBE1@stromnet.se> <1211037564.6326.27.camel@porksoda> <679DB462-75D6-45CC-949C-1BE8E12C22CD@stromnet.se> In-Reply-To: <679DB462-75D6-45CC-949C-1BE8E12C22CD@stromnet.se> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig220B22B21812B7D67D58F6E8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 18 May 2008 08:19:31 +0100 (BST) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: Alex Trull , freebsd-pf@freebsd.org, freebsd-stable , freebsd-net@freebsd.org Subject: Re: connect(): Operation not permitted X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2008 07:19:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig220B22B21812B7D67D58F6E8 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Johan Str=F6m wrote: > drop all traffic)? A check with pfctl -vsr reveals that the actual rule= =20 > inserted is "pass on lo0 inet from 123.123.123.123 to 123.123.123.123=20 > flags S/SA keep state". Where did that "keep state" come from? 'flags S/SA keep state' is the default now for tcp filter rules -- that was new in 7.0 reflecting the upstream changes made between the 4.0 and 4= =2E1 releases of OpenBSD. If you want a stateless rule, append 'no state'. http://www.openbsd.org/faq/pf/filter.html#state Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig220B22B21812B7D67D58F6E8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkgv2HwACgkQ8Mjk52CukIwjCwCfa/ntbIVtKQwooaR/j8aLxKPF ukEAni24eJYNJRCwOLZUQFCd2A1kf+tO =2vt+ -----END PGP SIGNATURE----- --------------enig220B22B21812B7D67D58F6E8--