The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to restrict ftp access to certain ips? (Host Access Control) is not working. Bug?

Discussion in 'General Discussion' started by konrath, Jun 23, 2009.

  1. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Hello

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

    How to restrict ftp access to certain ips?

    Thank you
    Konrath
     
  2. fineline

    fineline Active Member

    Joined:
    Apr 10, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Use firewall rules. reject all but your IP
     
  3. fineline

    fineline Active Member

    Joined:
    Apr 10, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
  4. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    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
     
    #4 konrath, Jun 23, 2009
    Last edited: Jun 23, 2009
  5. fineline

    fineline Active Member

    Joined:
    Apr 10, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    then why not block the country ips all together?
     
  6. fineline

    fineline Active Member

    Joined:
    Apr 10, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
  7. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Hello

    I do not understand you.

    Thank you
    Konrath
     
  8. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil

    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
     
    #8 konrath, Jun 23, 2009
    Last edited: Jun 23, 2009
  9. fineline

    fineline Active Member

    Joined:
    Apr 10, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page