Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    2

    Default Block Specific Ports with IP Deny Manager?

    I did a search of the forums, but did not see this addressed.

    Is it possible to deny an IP address at a specific port?

    Example:
    xx.xxx.xxx.xxx port 1500 is spamming a server with connection requests. Banning the IP address (when not root, on a shared server, but with access to cPanel) does not stop the issue.

    Can the IP address and specific port be denied?

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    No, but you can do this at the firewall. Unless port 1500 is open and accepting connections for some reason, there should be no reason to be concerned with it. A properly set firewall will take care of bad requests to closed ports. Sounds like your not the admin of the server, so this link would be no good to you but this is a very good firewall.
    ConfigServer Security & Firewall

    Banning an IP from within your cPanel will block that IP to any part of your site at yourdomain.com. That block is generated from the .htacess file in the public_html directory of your account. When you add it in cPanel it gets written to the .htaccess

    HTH

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    The deny manager is only for http requests, so nonstandard ports don't really play a part in this.

    You would have to block it in a firewall, such as csf, apf, or just iptables directly.

  4. #4
    Registered User
    Join Date
    Jun 2009
    Posts
    2

    Default

    Thank you both for your responses.

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    If you aren't the admin of your server, how do you even know some IP
    is hitting your server's IP address at port 1500?

    Anyway, that is an issue that would require escalation to root to address
    properly although you can do some limiting by blacklisting the IP in your
    regular web and email applications.

    For escalated access, you could block the IP at the specific port with
    most firewalls or just directly in the server with iptables:

    To entirely drop an IP address entirely from hitting your server:
    Code:
    # iptables -A INPUT -s xx.xx.xx.xx -j DROP
    To limit a specific IP from accessing port 1500 in this case:
    Code:
    # iptables -A INPUT -s xx.xx.xx.xx -p all --dport 1500 -j DROP

Similar Threads & Tags
Similar threads

  1. Block Specific Email to Specific User
    By fuzzie in forum E-mail Discussions
    Replies: 1
    Last Post: 08-09-2007, 07:13 PM
  2. IP Deny - block e-mails also?
    By onaweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-28-2005, 01:48 PM
  3. IP Deny manager
    By celt man in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-26-2004, 11:08 AM
  4. Will IP Deny Manager Block Email Too?
    By TomA in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 02-21-2004, 05:38 AM
  5. Deny access to smtp to specific IP range
    By NetX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-26-2003, 09:06 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube