Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2009, 01:58 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Mabus is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-26-2009, 06:23 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,762
Infopro is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-26-2009, 07:34 PM
cPanel Partner NOC
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 387
PlatinumServerM is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-26-2009, 07:49 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Mabus is on a distinguished road
Thank you both for your responses.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-26-2009, 08:37 PM
Senior Member
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,535
Spiral is on a distinguished road
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
__________________
[b][color="Blue"]Server Support[/color]: [color="Red"]Server consulting, security, and management![/color][/b]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
ip deny manager , ports

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Block Specific Email to Specific User fuzzie Mail 1 08-09-2007 07:13 PM
IP Deny - block e-mails also? onaweb cPanel and WHM Discussions 3 10-28-2005 01:48 PM
IP Deny Manager gopederick cPanel and WHM Discussions 1 05-22-2004 06:26 PM
Will IP Deny Manager Block Email Too? TomA cPanel and WHM Discussions 12 02-21-2004 05:38 AM
Deny access to smtp to specific IP range NetX cPanel and WHM Discussions 1 12-26-2003 09:06 PM


All times are GMT -5. The time now is 07:43 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc