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

konrath

Well-Known Member
May 3, 2005
366
1
166
Brasil
Hello

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

How to restrict ftp access to certain ips?

Thank you
Konrath
 

konrath

Well-Known Member
May 3, 2005
366
1
166
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
 
Last edited:

konrath

Well-Known Member
May 3, 2005
366
1
166
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
 
Last edited:

fineline

Active Member
Apr 10, 2006
25
0
151
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.