Results 1 to 2 of 2
-
11-25-2010, 03:31 AM #1Junior Guru Wannabe
- Join Date
- Oct 2010
- Posts
- 95
how to limit ftp to a particular country?!
How do you limit FTP access to particular country
let's say just users in US can use ftp
-
11-26-2010, 02:08 AM #2Aspiring Evangelist
- Join Date
- Oct 2007
- Location
- India
- Posts
- 431
Am not sure how to block just for FTP, but to block countries from ever getting to your server in the first place,
you can get the zone files for the countries you want to block from here (you need to know the ISO code - in for india, ru for russia etc).
http://www.ipdeny.com/ipblocks/data/countries
extract the IPs and block them with iptables.
I found a script to block the countries here:
http://www.cyberciti.biz/faq/block-e...sing-iptables/
This works well. I have it enabled in /etc/rc.local so that it loads at every server restart.
Also I have another script that updates the local zone file, every week and then call this script to block the countries.
Enjoy."For I know the plans I have for you" declares our Lord Jesus Christ, "they are plans to prosper you, to give you a hope and a future and not to destroy you." - Jeremiah 29:11
Similar Threads
-
Limit bandwidth by country?
By hypernoob in forum Hosting Security and TechnologyReplies: 3Last Post: 09-17-2009, 11:44 AM -
Hosting where you can limit FTP
By webtender in forum Web HostingReplies: 7Last Post: 03-31-2008, 11:16 AM -
FTP Speed limit
By metallica_pyro in forum Hosting Security and TechnologyReplies: 4Last Post: 06-10-2004, 10:51 AM -
How to limit number of ftp connections per IP / max ftp connections per username
By nogi in forum Hosting Security and TechnologyReplies: 17Last Post: 07-09-2003, 02:59 AM -
how to limit ftp bandwidth?
By null in forum Hosting Security and TechnologyReplies: 1Last Post: 12-30-2002, 12:55 PM