LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-22-2014, 08:16 PM   #1
nanana
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
[ Help me PLz ] How To Block Country By iptables


hi guy's

i want help plz

how i can block Country by iptables and allow country and allow some ip and block some ip

and thx

Last edited by nanana; 06-22-2014 at 08:17 PM.
 
Old 06-22-2014, 08:52 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Hi , first off DO NOT use "text speak"
"Please" is NOT!!! spelled as "plz"
"Thanks" is NOT spelled as "thx"

the nuns would SMACK your hands with a ruler if you did that in school

this forum IS NOT a 140 character SMS text massage
so please do not treat this as such


next

What operating system and version is this ?
 
Old 06-22-2014, 09:23 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
It's amazing what a little web search for "iptables block country" will turn up.

Last edited by frankbell; 06-22-2014 at 09:24 PM.
 
1 members found this post helpful.
Old 06-22-2014, 11:08 PM   #4
nanana
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry For text speak

my System Centos 6.5 32 bit
 
Old 06-23-2014, 01:05 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
See if https://www.linuxquestions.org/quest...-geoip-843412/ and https://www.linuxquestions.org/quest...se-4175476869/ get you somewhere.
 
Old 06-23-2014, 02:51 AM   #6
nanana
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
what should i do Now !

how i got ip to block

and how block
 
Old 06-23-2014, 03:06 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In thread https://www.linuxquestions.org/quest...-geoip-843412/ there's two posts with links to instructions: post #2 and post #7. Follow those links and read the instructions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Banned Country IP Block List National Database metallica1973 Linux - Security 5 09-12-2013 07:59 PM
How to Block Particular Country IP'S Using APF? anishkumarv Linux - Server 1 08-24-2011 10:25 AM
Apache BLOCK Country + Show Index for the Specific Country > How? skate Linux - Software 1 10-12-2009 07:08 AM
iptables: how to block IPs by country or registry mlnutt Linux - Security 4 09-14-2007 12:22 PM
Block country's with hosts.deny narmida Linux - Security 7 03-02-2006 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration