Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2009, 02:11 AM
konrath's Avatar
Registered User
 
Join Date: May 2005
Location: Brasil
Posts: 212
konrath is on a distinguished road
How to restrict ftp access to certain ips? (Host Access Control) is not working. Bug?

Hello

(Host Access Control) is not working for the FTP. Bug?

How to restrict ftp access to certain ips?

Thank you
Konrath
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-23-2009, 02:59 AM
Registered User
 
Join Date: Apr 2006
Posts: 23
fineline is on a distinguished road
Quote:
Originally Posted by konrath View Post
Hello

(Host Access Control) is not working for the FTP. Bug?

How to restrict ftp access to certain ips?

Thank you
Konrath
Use firewall rules. reject all but your IP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-23-2009, 03:10 AM
Registered User
 
Join Date: Apr 2006
Posts: 23
fineline is on a distinguished road
restrict FTP to IP

Here found this. Might help ya

Iptables open ftp port 21
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-23-2009, 10:18 AM
konrath's Avatar
Registered User
 
Join Date: May 2005
Location: Brasil
Posts: 212
konrath is on a distinguished road
Thank you but, I try to maintain access to FTP only for my region ( country ) and not only for my IP.

I tried to use the (Host Access Control in Security Center) to ProFTPD without success. Any suggestions? How to ?

i.e. ( my config in Host Access Control )

ftp 201.1.1.1/201.255.255.255 allow
ftp All deny

Many sites are being hacked by ftp. The IPs that connect to ftp are not of my region. I want to block these IPs are not of my region.

Thank you
Konrath

Last edited by konrath; 06-23-2009 at 10:32 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-23-2009, 10:47 AM
Registered User
 
Join Date: Apr 2006
Posts: 23
fineline is on a distinguished road
then why not block the country ips all together?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-23-2009, 10:50 AM
Registered User
 
Join Date: Apr 2006
Posts: 23
fineline is on a distinguished road
Linux Iptables Just Block By Country

another resource for you...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-23-2009, 10:50 AM
konrath's Avatar
Registered User
 
Join Date: May 2005
Location: Brasil
Posts: 212
konrath is on a distinguished road
Quote:
Originally Posted by fineline View Post
then why not block the country ips all together?
Hello

I do not understand you.

Thank you
Konrath
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-23-2009, 10:52 AM
konrath's Avatar
Registered User
 
Join Date: May 2005
Location: Brasil
Posts: 212
konrath is on a distinguished road
Quote:
Originally Posted by fineline View Post
Linux Iptables Just Block By Country

another resource for you...

Thank you fineline, but I try to use the Host Access Control to block. ( I will read your suggestion. Linux Iptables Just Block By Country )

i.e. ( my config in Host Access Control )

ftp 201.1.1.1/201.255.255.255 allow
ftp All deny


The server has the PROFTPD but Host Access Control not working. How to?

Thank you
Konrath

Last edited by konrath; 06-23-2009 at 10:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-24-2009, 07:20 PM
Registered User
 
Join Date: Apr 2006
Posts: 23
fineline is on a distinguished road
Not sure how you can do it with host access control. But that link i posted shows you how to ban Those IP ranges of countries.

Example. If china has been exploiting your server and you want to ban all of china then use the info from that link. It will show you how to ban all of china.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cphulk and host access control stopped working after upgrade? kjg cPanel and WHM Discussions 8 01-06-2009 12:05 PM
Host Access Control not working bls24 cPanel and WHM Discussions 1 07-07-2008 08:58 AM
Host Access Control (block IP access) meeti cPanel Newbies 5 05-13-2008 01:39 AM
How to restrict cPanel / FTP access to one IP address techpro cPanel and WHM Discussions 1 01-07-2008 11:26 AM


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


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