PDA

View Full Version : BlockIP


Davide
27th January 2007, 22:55
Hi

How can I block a single IP from accessing my server with ISPConfig/bastille?

Cannot find how to put this in bastille firewall

Thank you very much!

gabrix
28th January 2007, 08:32
Well !!! By iptables -A INPUT -p ALL -s x.x.x.x -d $localdomain -j DROP bastille uses iptables . Today most of thr ips are dynamic ... drop its all subnet but could not work anyway ...

falko
28th January 2007, 21:18
Take a look here: http://www.howtoforge.com/forums/showpost.php?p=38142&postcount=4

gabrix
28th January 2007, 23:54
... and by hosts.deny .

falko
29th January 2007, 13:11
But /etc/hosts.deny isn't read by all services, so it affects only some services.

gabrix
1st February 2007, 11:46
I didn't know this.I know you can set or ALL: services or only ssh: ... .....