Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    87

    Default Blocking an ISP?

    I am getting flooded out by some user on skynet.be, the IPs change to often to keep blocking them. Does anyone know how to block an entire ISP from accessing my server, either via IP tables or some other way? Thanks.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You need to locate their IP blocks in one of APNIC/ARIN/RIPE and then use their CIDR to drop the whole network using iptables.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    87

    Default

    So if I were to block each one of them how would it be done?

    I found the IPs i need to ban on htp://www.fixedorbit.com/cgi-bin/cgirange.exe?ASN=5432. Using the first one listed as an example, how would be the correct format to ban the ip and all its ranges.

    62.4.128.0 start IP
    62.4.255.255 end IP

    /sbin/iptables -I INPUT -s 62.4.128.0/255 -j DROP

    Is that correct? Or does the format need to be different to cover that entire range

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Not /255, here's a nifty page explaining CIDR:
    http://public.pacbell.net/dedicated/cidr.html

    Other than that, your command looks good.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    658

    Default

    /sbin/iptables -I INPUT -s 62.4.128.0/255 -j DROP
    A class C would be

    /sbin/iptables -I INPUT -s 62.4.128.0/24 -j DROP

Similar Threads & Tags
Similar threads

  1. Move plan from isp A to isp B
    By webstyler in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-27-2006, 02:16 AM
  2. ISP blocking default port 2082
    By haalaaluu in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 05-25-2006, 03:34 AM
  3. ISP Tag
    By taihnd in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-15-2006, 01:33 PM
  4. ISP's Blocking Port 25!!! Help!!! Can't Get Exim On Port 26
    By nitromax in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-21-2002, 11:35 AM
  5. License for ISP
    By ahbabsoft in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-12-2001, 08:03 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube