From owner-freebsd-doc@FreeBSD.ORG Wed Sep 6 18:27:44 2006 Return-Path: X-Original-To: freebsd-doc@freebsd.org Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CABB416A4DA; Wed, 6 Sep 2006 18:27:44 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B58C43D49; Wed, 6 Sep 2006 18:27:44 +0000 (GMT) (envelope-from max@love2party.net) Received: from [88.64.191.187] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1GL27i34YC-0002il; Wed, 06 Sep 2006 20:27:43 +0200 From: Max Laier Organization: FreeBSD To: freebsd-doc@freebsd.org Date: Wed, 6 Sep 2006 20:27:33 +0200 User-Agent: KMail/1.9.3 References: <200609051159.k85BxO6H049544@freefall.freebsd.org> <44FE6068.5000801@infracaninophile.co.uk> In-Reply-To: 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="nextPart1518335.3KTmcZOKc8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200609062027.41273.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: Remko Lodder , John Archambeau Subject: Re: docs/101114: icmptype names not in icmp(4) manpage X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2006 18:27:45 -0000 --nextPart1518335.3KTmcZOKc8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 06 September 2006 14:46, John Archambeau wrote: > I must be one of the few people who rtfm's first. The Free/OpenBSD > pf.conf manpage implies that number codes won't work but the icmptype > abbreviations will. Where does it say so? There even is an example with the number code in=20 pf.conf(5): # pass out/in certain ICMP queries and keep state (ping) # state matching is done on host addresses and ICMP id (not type/code), # so replies (like 0/0 for 8/0) will match queries # ICMP error messages (which always refer to a TCP/UDP packet) are # handled by the TCP/UDP states pass on $ext_if inet proto icmp all icmp-type 8 code 0 keep state > Also consider the output you get from pfctl=20 > -s[ar] which is in the OpenBSD icmptype abbreviation, not the number > code. Another ambiguity of filtering icmp traffic with the pf.conf > manpage that should be addressed especially for those of us that > migrate from ipfw to pf. I can't see why the additional information in "-sr" is a bad thing. > On 9/5/06, Matthew Seaman wrote: > > John Archambeau wrote: > > > To create a pf.conf file (see man pf.conf) properly for filtering > > > of icmp, you must specify the icmptype(s) by abbreviation per the > > > OpenBSD icmp(4) manpage you wish to filter. It's not like ipfw > > > where you can specify the icmptype by number, it must be the type > > > by the abbreviation as specified as by the OpenBSD manpage for > > > icmptypes. > > > > Are you sure about that? > > > > happy-idiot-talk:/etc:% uname -a > > FreeBSD happy-idiot-talk.infracaninophile.co.uk 6.1-STABLE FreeBSD > > 6.1-STABLE #6: Mon Aug 28 14:01:08 BST 2006 =20 > > root@happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAP > >PY-IDIOT-TALK i386 happy-idiot-talk:/etc:% cat pf.conf > > > > icmp_types=3D"{ 0 3 8 11 }" > > > > scrub in > > pass all > > > > pass inet proto icmp all icmp-type $icmp_types keep state > > > > happy-idiot-talk:/etc:% sudo pfctl -f pf.conf > > happy-idiot-talk:/etc:% sudo pfctl -sr > > scrub in all fragment reassemble > > pass all > > pass inet proto icmp all icmp-type echorep keep state > > pass inet proto icmp all icmp-type unreach keep state > > pass inet proto icmp all icmp-type echoreq keep state > > pass inet proto icmp all icmp-type timex keep state > > > > > > Cheers, > > > > Matthew > > > > -- > > Dr Matthew J Seaman MA, D.Phil. 7 Priory > > Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey =20 > > Ramsgate Kent, CT11 9PW > > _______________________________________________ > freebsd-doc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-doc > To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org" =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 --nextPart1518335.3KTmcZOKc8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBE/xMdXyyEoT62BG0RApi4AJ0WDQjwnHU7css0wLh8hBnLPY1aFgCfWFcg sji4WIpgrDM4Q75K+uIr1nk= =qHIK -----END PGP SIGNATURE----- --nextPart1518335.3KTmcZOKc8--