Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    36

    Default How to block an ip for accessing cpanel or anything else on server

    How do I block an ip(range) from accessing the server/cpanel?

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,052

    Default

    You want to block an IP range from server.com/cpanel or from the server including cpanel?

    cPanel.net Support Ticket Number:

    The rest of those who have gone before us cannot steady the unrest of those to follow.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Location
    Colorado
    Posts
    4

    Default

    There are a few ways you can do this:

    1. You can use route. Syntax looks like this:

    /sbin/route add -host *IP TO BLOCK HERE* gw 127.0.0.1

    2. You can use iptables / ipchains:

    /usr/local/bin/iptables -I INPUT -s *IP TO BLOCK HERE* -j DROP
    /sbin/ipchains -I input -s *IP TO BLOCk HERE* -j DENY

    This will block all access to your server.

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. Server erron when clients accessing /cpanel and /webmail
    By thernes in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-18-2006, 12:23 PM
  2. Accessing Root Server
    By Andy14d in forum New User Questions
    Replies: 5
    Last Post: 01-03-2006, 12:26 AM
  3. Block IP for whole server through WHM or CPanel?
    By Vaulter in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 09-14-2005, 10:53 AM
  4. block ip from accessing server in apf?
    By chadi in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-26-2004, 04:12 AM
  5. Urgent! Please help! How to block one ip or more from one cpanel server
    By promak in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-28-2004, 12:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube