Block a domain in shorewall or host.deny?

Place to discuss Fedora and/or Red Hat
User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Aug 17, 2009 7:22 pm

Although I run a Shorewall firewall I normally do not block addresses in Shorewall. I do it in my iptables configuration on my web server (I do not run Shorewall and the web server on the same box). If I were to do it on Shorewall I would probably do it like this:

Code: Select all

DROP net:61.160.216.63 all
That is assuming you are running your Apache server on your firewall box.

Post Reply