Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    151
    I'm looking for something like this as well.. no luck with google just yet but I hope to find something.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168
    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:
    151
    I don't plan on blocking all of them... just a few ISP's :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168
    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:
    156
    Location:
    Stanton, Michigan.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice