From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 19:51:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5049106566C for ; Fri, 16 Oct 2009 19:51:11 +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 695178FC0A for ; Fri, 16 Oct 2009 19:51:11 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n9GJp7TE062610; Fri, 16 Oct 2009 20:51:08 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n9GJp7TE062610 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1255722668; bh=/n8f9/pPR3ulV7vSubB0XuKjq2MB1h6Ja3yObo7mM78=; 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=Message-ID:=20<4AD8CEA2.10902@infracaninophile.co.uk>|Date:=20Fri ,=2016=20Oct=202009=2020:50:58=20+0100|From:=20Matthew=20Seaman=20 |Organization:=20Infracaninophile |User-Agent:=20Thunderbird=202.0.0.23=20(X11/20090823)|MIME-Versio n:=201.0|To:=20Aflatoon=20Aflatooni=20|CC:=2 0freebsd-questions@freebsd.org|Subject:=20Re:=20Security=20blockin g=20question|References:=20<526808.11391.qm@web56207.mail.re3.yaho o.com>=09<4ACFB17A.1080400@infracaninophile.co.uk>=09<628151.64600 .qm@web56204.mail.re3.yahoo.com>=09<4AD820FE.4050808@infracaninoph ile.co.uk>=20<99934.58817.qm@web56206.mail.re3.yahoo.com>|In-Reply -To:=20<99934.58817.qm@web56206.mail.re3.yahoo.com>|X-Enigmail-Ver sion:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp- sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A= 20boundary=3D"------------enig7524FAB2F71E7D15FE38992D"; b=BUE0u6wtfbAqCz2Fo3Jwpsvb+SEZLhJegbfEl7ETsqTr58fL2D73CVe8I/lm6NWmZ NfRmEa47S/jFRCw2FF2yD1ip5Na50nHF56mhLfreH5OiTeEzk8TeO6+k81iV0PBu9+ 7mkEL8cJcLwQe4JeFj+m3GANjWhTgHZ3ma1w+rVY= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4AD8CEA2.10902@infracaninophile.co.uk> Date: Fri, 16 Oct 2009 20:50:58 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090823) MIME-Version: 1.0 To: Aflatoon Aflatooni References: <526808.11391.qm@web56207.mail.re3.yahoo.com> <4ACFB17A.1080400@infracaninophile.co.uk> <628151.64600.qm@web56204.mail.re3.yahoo.com> <4AD820FE.4050808@infracaninophile.co.uk> <99934.58817.qm@web56206.mail.re3.yahoo.com> In-Reply-To: <99934.58817.qm@web56206.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig7524FAB2F71E7D15FE38992D" X-Virus-Scanned: clamav-milter 0.95.2 at 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.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Security blocking question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2009 19:51:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7524FAB2F71E7D15FE38992D Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Aflatoon Aflatooni wrote: > I have the following in my pf.conf: >=20 > ext_if=3D"bge0" > # Public Services -- smtp, http, pop3s > tcpPubServices =3D "{ 25, 80, 995 }" > set timeout { interval 10, frag 30 } > set timeout { tcp.first 120, tcp.opening 30, tcp.established 86400 } > set timeout { tcp.closing 900, tcp.finwait 45, tcp.closed 90 } > set limit { states 10000, frags 5000 } > #set loginterface none > set optimization normal > set block-policy drop > #set require-order yes > #set fingerprints "/etc/pf.os" > set skip on lo0 > # Normalization: reassemble fragments and resolve or reduce traffic amb= iguities. > scrub in all >=20 > pass out all > block in log all > table { } ^^^ this needs to be 'table persist' or the OS will delet= e it if it's empty. > block in quick from to any > pass in on $ext_if inet proto tcp from any to any port $tcpPubServices = flags S/SA synproxy state > pass in on $ext_if inet proto tcp from any to any port ssh modulate sta= te (source-track rule max-src-nodes 8 max-src-conn 8 max-src-conn-rate 3/= 60 overload flush global) >=20 >=20 > And I have tried to make a lot of ssh connections to the box and killin= g them with ctrl-c or bad-password but nothing gets added to the table. T= here isn't anything in the log either. How would I go about figuring out = what is wrong? Usually if you leave your machine connected to the internet, some awfully= helpful people in China or some other far off place will test it for you within a day or so... 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 --------------enig7524FAB2F71E7D15FE38992D 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.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkrYzqsACgkQ8Mjk52CukIzjfQCbB3kdSw62mdignEOxaeTIJMS1 k8cAnR+DsrMORLf+Trt9aWTAssWwiLMN =ljqd -----END PGP SIGNATURE----- --------------enig7524FAB2F71E7D15FE38992D--