Re: Alternate Solution to Iptables???

From: William Park (opengeometry_at_yahoo.ca)
Date: 12/31/03


Date: 30 Dec 2003 23:06:59 GMT

Jim G. <jgrago@remove-nospam.twcny.rr.com> wrote:
> I do alot of Ip blocks in my business, my iptables has over 800 ip's
> that are being blocked because of users committing fraudulant
> activities. Is there an alternate solution that I can use rather than
> having so many ip's listed in my iptables. Do you know if I can
> achieve the same results of an iptables DROP with entering Ip's in the
> hosts.deny file?

There is nothing you can do about packets arriving at your "door".
Packets arrive because someone sent them. /etc/host.deny is for
programs using TCP wrapper (ie. sendmail, inetd, ...). IPtable will
drop packets faster and with less resource than applications, though.

>
> Also I will need to block certain countries as well, for example the
> philippines, any idea on how to do this too? Running 3 Fedora core
> apache servers (Load balance) and a mysql server.

Main problem with blocking by country is that they don't use few big IP
ranges, but rather lots of small IP ranges, too many to count.
Probably, to prevent what you are trying to do. :-)

But, for APNIC, look up
    http://www.apnic.net/
for IP allocation. I use
    60-61. 202-203. 210-211. 218-222.
or 60/7, 202/7, 210/7, 218/7, 220/7, 222/8

-- 
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
Linux solution for data management and processing. 


Relevant Pages

  • X & Gnome crashes the system with iptables
    ... kernel 2.4.21, ... I spent a lot of time to write rules for iptables to obtain a good firewall. ... # Support for connection tracking ... packets are denied until ...
    (comp.os.linux.x)
  • X & Gnome crashes the system with iptables
    ... kernel 2.4.21, ... I spent a lot of time to write rules for iptables to obtain a good firewall. ... # Support for connection tracking ... packets are denied until ...
    (comp.os.linux.setup)
  • X & Gnome crashes the system with iptables
    ... kernel 2.4.21, ... I spent a lot of time to write rules for iptables to obtain a good firewall. ... # Support for connection tracking ... packets are denied until ...
    (alt.linux)
  • X & Gnome crashes the system with iptables
    ... kernel 2.4.21, ... I spent a lot of time to write rules for iptables to obtain a good firewall. ... # Support for connection tracking ... packets are denied until ...
    (comp.os.linux.security)
  • PPPOE xDSL Firewall with IPTABLES
    ... don't know how to modify my firewall to account for this. ... Starts and stops the IPTABLES packet filter \ ... # Kill malformed XMAS packets ... # server/client to server query or response ...
    (comp.os.linux.networking)