Results 1 to 2 of 2
  1. #1
    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

  2. #2
    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

  1. Limit bandwidth by country?
    By hypernoob in forum Hosting Security and Technology
    Replies: 3
    Last Post: 09-17-2009, 11:44 AM
  2. Hosting where you can limit FTP
    By webtender in forum Web Hosting
    Replies: 7
    Last Post: 03-31-2008, 11:16 AM
  3. FTP Speed limit
    By metallica_pyro in forum Hosting Security and Technology
    Replies: 4
    Last Post: 06-10-2004, 10:51 AM
  4. Replies: 17
    Last Post: 07-09-2003, 02:59 AM
  5. how to limit ftp bandwidth?
    By null in forum Hosting Security and Technology
    Replies: 1
    Last Post: 12-30-2002, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •