Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2012 09:18:24 -0000
From:      "Shiv. Nath" <prabhpal@digital-infotech.net>
To:        "Matthew Seaman" <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: USE PF to Prevent SMTP Brute Force Attacks - Resolved !!!
Message-ID:  <b8e3d4d8bd058711e44c0d31c6850e98.squirrel@mail.digital-infotech.net>
In-Reply-To: <4FDCE91C.9040005@infracaninophile.co.uk>
References:  <4360846ab93b3a2b1968ee0f262cf148.squirrel@mail.digital-infotech.net> <4FDB6490.8080509@infracaninophile.co.uk> <98c09d7edf95e0e07910e7e5ce46accc.squirrel@mail.digital-infotech.net> <4FDB6CBD.6080900@infracaninophile.co.uk> <738cbc31aa2dce5787dc85cafb3d02a6.squirrel@mail.digital-infotech.net> <69642fed4fe6d9fb794eaedf2557cd8f.squirrel@mail.digital-infotech.net> <4FDCE91C.9040005@infracaninophile.co.uk>

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

On 16/06/2012 21:03, Shiv. Nath wrote:

Dear Matthew,

Matthew, one a, one e.

first thanks for assisting to secure 22/25 ports from brute force
attack.
i wish to consult if the following white list looks fine to exclude
trusted networks (own network)


int0="em0"
secured_attack_ports="{21,22,25}"

table <bruteforce> persist
block in log quick from <bruteforce>
pass in on $int0 proto tcp \
from any to $int0 port $secured_attack_ports  \
flags S/SA keep state \
(max-src-conn-rate 5/300, overload <bruteforce> flush global)


## Exclude Own Network From Brute-Force Rule ##

table <own_network> persist {71.221.25.0/24, 71.139.22.0/24}

pass in on $int0 proto tcp from <own_network> to any port
$secured_attack_ports

But, yes, other than that it looks good.  You want to move
the table definitions up to the top of the file and as you've shown, you
want your network specific rule after the more generic rate-limited
accept rule: remember that (except for quick rules) it's the last
matching rule in the ruleset that applies.

Cheers, Matthew


Dear Matthew,

i am sorry for misspelling your named, finally it is done with your
assistance. you have very good knowledge of PF because you are gentleman
indeed. sorry to trouble you too much.

Thanks / Thanks / Thanks / Thanks / Thanks /Thanks / Thanks  / Thanks





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