Date: Wed, 06 Sep 2006 06:45:12 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: John Archambeau <jcarchambeau@gmail.com> Cc: Remko Lodder <remko@freebsd.org>, freebsd-doc@freebsd.org Subject: Re: docs/101114: icmptype names not in icmp(4) manpage Message-ID: <44FE6068.5000801@infracaninophile.co.uk> In-Reply-To: <b17ab3230609051252u3aa5771ct38a4782f4c0a5cc1@mail.gmail.com> References: <200609051159.k85BxO6H049544@freefall.freebsd.org> <b17ab3230609051252u3aa5771ct38a4782f4c0a5cc1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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 root@happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386
happy-idiot-talk:/etc:% cat pf.conf
icmp_types="{ 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 Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE/mBu8Mjk52CukIwRCGuBAJ9VfRl0OxOnZgEeOmyLXRb85Sb9yQCeNPnd
+gIu5deAZ+SjZ3wLo/h/mhM=
=DGkP
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44FE6068.5000801>
