Date: Fri, 16 Oct 2009 20:50:58 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Aflatoon Aflatooni <aaflatooni@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Security blocking question Message-ID: <4AD8CEA2.10902@infracaninophile.co.uk> In-Reply-To: <99934.58817.qm@web56206.mail.re3.yahoo.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sshBruteForce> { } ^^^ this needs to be 'table <sshBruteForce> persist' or the OS will delet= e it if it's empty. > block in quick from <sshBruteForce> 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 <sshBruteForce> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AD8CEA2.10902>