To allow FTP access ONLY from 1 Country
Posted: 14 Feb 2014, 18:00
Hello,
I am trying to drop all attempts to penetrate our server via FTP from arround 30 countries, so for the moment I am using:
CC_DENY_PORTS = CN,RU,TW,VN,ID,TH,TR,KR,IR,BA,BG,BY,...
CC_DENY_PORTS_TCP = 21
CC_DENY_PORTS_UDP = 21
This is creating a very long list of IP addresses that I can see in the View iptables Rules
My purpose is to only allow 1 country, and drop all others to FTP access.
Is it possible using CC_ALLOW_FILTER (An alternative to CC_ALLOW is to only allow access from the following countries but still filter based on the port and packets rules. All other
connections are dropped) together with some options like CC_ALLOW_PORTS and/or CC_DENY_PORTS in a mixed solution ?
Perhaps there is another much simple solution, so I hope to receive some alternatives arround this confusion.
Regards,
Wilhelm.
I am trying to drop all attempts to penetrate our server via FTP from arround 30 countries, so for the moment I am using:
CC_DENY_PORTS = CN,RU,TW,VN,ID,TH,TR,KR,IR,BA,BG,BY,...
CC_DENY_PORTS_TCP = 21
CC_DENY_PORTS_UDP = 21
This is creating a very long list of IP addresses that I can see in the View iptables Rules
My purpose is to only allow 1 country, and drop all others to FTP access.
Is it possible using CC_ALLOW_FILTER (An alternative to CC_ALLOW is to only allow access from the following countries but still filter based on the port and packets rules. All other
connections are dropped) together with some options like CC_ALLOW_PORTS and/or CC_DENY_PORTS in a mixed solution ?
Perhaps there is another much simple solution, so I hope to receive some alternatives arround this confusion.
Regards,
Wilhelm.