The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Blocking Country IPs using IPTables

Discussion in 'General Discussion' started by Doctor, Oct 6, 2003.

  1. Doctor

    Doctor Well-Known Member

    Joined:
    Apr 26, 2003
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Does anyone know where I can find accurate country IPs and how I can block them using IPTables?

    I need to block Korea, Indonesia, China, Hungary, Russia, France and Netherlands. I get many portscans from culprits living in these countries. :mad:

    cPanel.net Support Ticket Number:
     
  2. justchil

    justchil Active Member

    Joined:
    Aug 1, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I'm looking for something like this as well.. no luck with google just yet but I hope to find something.
     
  3. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Yeah why not! Block Western Europe!
    I encourage all American hosting companies to do the same :D
     
  4. justchil

    justchil Active Member

    Joined:
    Aug 1, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I don't plan on blocking all of them... just a few ISP's :)
     
  5. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Why don't you install APF firewall?

    I believe you can configure it to block IP's that try to connect to your server x times within a certain time frame.

    It has some nice other features as well

    http://www.rfxnetworks.net/apf.php
     
  6. Pyro411

    Pyro411 Active Member

    Joined:
    Oct 2, 2002
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Stanton, Michigan.
Loading...

Share This Page