Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2008 06:46:41 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        David Allen <the.real.david.allen@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Dealing with portscans
Message-ID:  <48D882C1.2050206@infracaninophile.co.uk>
In-Reply-To: <2daa8b4e0809221512o5c85d286qb8da358fb9d5ee66@mail.gmail.com>
References:  <2daa8b4e0809220817v10c4a657l6ee76f853a62b246@mail.gmail.com>	<20080922200121.289abdcb.ghirai@ghirai.com>	<2daa8b4e0809221305v6f5000f1w11090e4a85c21162@mail.gmail.com>	<48D80D54.8060802@infracaninophile.co.uk> <2daa8b4e0809221512o5c85d286qb8da358fb9d5ee66@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
David Allen wrote:
> On 9/22/08, Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
 
>> Also consider the following sysctls:
>>
>> # Blackhole packets to ports without listeners
>> net.inet.tcp.blackhole=1
>> net.inet.udp.blackhole=1
>>
>> although these will be redundant if your firewalling is effective.
> 
> I wonder, though, would using a block-policy setting of return (which
> I'm currently using) render the above redundant, or would the above
> take precedence?  I'll have to add that to the list of Stuff to Check.

Yes.  If the firewall disposes of the packet via a block rule, then
those sysctls will not have any effect.  The firewall can either drop the packet or send an ICMP port unreachable message according to how it is configured.

If the firewall passes the packet then either it is dealt with by a
program listening on the appropriate port, or the network stack itself
will generate an ICMP message (by default) or else just drop the packet
if the blackhole sysctls are enabled.

	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 v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkjYgsYACgkQ8Mjk52CukIym4ACffsmC7JUhOyQ5u/PZBjXcQD7R
+/QAnRx/MJpjTP1s2RxzjQv1dxEp63rN
=9R+/
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D882C1.2050206>