Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member Swampfox's Avatar
    Join Date
    Aug 2003
    Posts
    16

    Default Ban IP Address from server..

    Hello, I am trying to ban three IP addresses from my four servers. I have WHM/Cpanel on each server.
    I am familiar with "IP Deny Manager" in cPanel.
    I do not know if blocking a IP address on cPanel blocks it for everyone on my server or only for my website space.

    Can someone please tell me how to block a IP address from my entire server?

    Thanks,

  2. #2
    Registered User talhabinrizwan's Avatar
    Join Date
    Nov 2005
    Posts
    4

    Default

    Hi,
    If you will block the IPs from cPanel >> IP Deny Manager, then it will only be specific to that domain. If you want to block IPs for all of the domains on the server and if you have IPTables installed on your server (Firewall), then type this command and repalce an IP (ip.ip.ip.ip) according to your needs:

    ]# /sbin/iptables -A INPUT -s ip.ip.ip.ip -j REJECT

  3. #3
    Member Swampfox's Avatar
    Join Date
    Aug 2003
    Posts
    16

    Default

    Thank you Very Much

    Steven

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    125

    Default

    Another way to do it is the following:

    iptables -N BLOCKING && iptables -A BLOCKING -s xxx.xxx.xxx.xxx -j DROP

    And to check to see if it is blocked, do:

    ifconfig eth0 xxx.xx.xxx.xx

    If there is no output, then it is blocked!
    Shock Hosts
    __________________________________________________
    Simply Hosting. Simply Good. | Quality Web Hosting.

    Sales: Sales@ShockHosts.Net | Support: Support@ShockHosts.Net

    Visit ShockHosts Now!

  5. #5
    Member rogcan's Avatar
    Join Date
    Jun 2004
    Posts
    49

    Default

    /sbin/iptables -A INPUT -s ip.ip.ip.ip -j REJECT

    What is the command to unban an ip# if you used the above to ban ??

  6. #6
    Member
    Join Date
    Oct 2006
    Posts
    312

    Default

    /sbin/iptables -A INPUT -s ip.ip.ip.ip -j ACCEPT ???

    .
    RTG (Asia) Network
    Unmetered ®cPanel VPS from $28.00
    Shared & Reseller Accounts from $2.00
    Unmetered Dedicated Servers from $58.00
    Your account will be setup AUTOMAGICALLY upon payment.

Similar Threads & Tags
Similar threads

  1. Server timeout = temporary ban
    By chad101 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-26-2010, 04:44 AM
  2. IP ban of server?
    By dark_hunter in forum New User Questions
    Replies: 9
    Last Post: 08-28-2009, 08:58 AM
  3. Ban from entire server
    By Mark36ph in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-02-2008, 06:15 PM
  4. How to ban sending/receiving emails from an email address?
    By SuperBaby in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-24-2007, 04:28 PM
  5. I want to ban all emails Sent to a particular domain from my server
    By dianaward in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-30-2007, 09:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube