LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-10-2006, 08:17 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 808

Rep: Reputation: 39
Blocking Specific IP Addresses


Hi there --

I need to set up a means to block a specific ip address from trying to hack into our system. My plan is to use iptables to accomplish this task. My question, what would the correct syntax be in the configuration file. Also, if iptables is not the way to go, what is a better method? Thanks.
 
Old 11-10-2006, 08:34 AM   #2
JiYu
LQ Newbie
 
Registered: Sep 2006
Location: Germany
Distribution: FreeBSD
Posts: 29

Rep: Reputation: 15
otherside you can use /etc/hosts.deny
 
Old 11-10-2006, 09:30 AM   #3
glussier
Member
 
Registered: Jul 2005
Location: Montreal, Qc, Canada
Distribution: Fedora Core 5/6 Slackware 10.1/11
Posts: 120

Rep: Reputation: 15
Code:
iptables -I INPUT -s 111.222.333.444 -j DROP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM
Blocking email addresses matt1982 Linux - Security 2 05-12-2006 12:17 AM
Blocking IP Addresses toejam Linux - Security 2 05-01-2004 12:14 AM
Blocking Mail from addresses with IPTables Optichip Linux - Networking 2 02-11-2004 06:53 PM
IPchains- Blocking web addresses sihere Linux - Networking 4 10-23-2002 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:54 PM.

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