Koozali.org: home of the SME Server

Obsolete Releases => SME Server 6.x => Topic started by: netdesignns on June 13, 2006, 07:38:05 AM

Title: How to block range of IP addresses from SME
Post by: netdesignns on June 13, 2006, 07:38:05 AM
Is there a method of blocking a single or a range of IP addresses from attempting to access SME completely?
Title: How to block range of IP addresses from SME
Post by: Curly on June 13, 2006, 07:27:37 PM
You should add a rule to the firewall saying you want to ignore all traffic from that address (/sbin/iptables -I INPUT -s 111.222.111.123 -j DROP)

and then think of a way to make that stick when the machine reboots, for example by putting it in /etc/rc.d/rc.local.

Ranges are much like the single address, but the address looks different:

207.46.28.0/24 is an example, look here http://en.wikipedia.org/wiki/Netfilter for more details
Title: How to block range of IP addresses from SME
Post by: Tib on June 14, 2006, 03:03:00 AM
netdesignns

If your lazy like me then mabe you wnat to find and load on this rpm.

smeserver-ipblock_internet-tg-1.0-b2.noarch.rpm


Regards,

Tib