Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2006 09:38:28 -0500
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        "Suhail Choudhury" <suhailc@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Block IP
Message-ID:  <20061221093828.00708f62.wmoran@collaborativefusion.com>
In-Reply-To: <ca7cee960612201250s5056b050w4d48a96d2c52e081@mail.gmail.com>
References:  <ca7cee960612201250s5056b050w4d48a96d2c52e081@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to "Suhail Choudhury" <suhailc@gmail.com>:

> Hi all,
> 
> I'm using IPFW as my firewall.
> 
> What's the easiest way to add an IP such as 80.192.49.213 to block it?

ipfw add deny all from 80.192.49.213 to me

Although you need to take into consideration your existing IPFW rules,
as this will not work if a previous rule allows the connection.

> Also how do I block out IPs after a certain number of invalid login
> attempts to prevent brute forcing?

There are a number of ports that provide this functionality.  I believe
the most popular is called denyhosts.

-- 
Bill Moran
Collaborative Fusion Inc.



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