LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2008, 03:41 AM   #1
38699678
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
my iptables can't drop ip of 71.6.40.83


hi
my iptables can't drop ip of 71.6.40.83 and i try to drop by mac.but it not work.
iptables -A INPUT -s '71.6.40.83' -j DROP
iptables -L
DROP all -- anywhere anywhere MAC 00:02:1A:01:37:7F
DROP all -- 71-6-40-83.static-ip.telepacific.net anywhere

Last edited by 38699678; 04-23-2008 at 03:43 AM.
 
Old 04-23-2008, 09:22 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Remove the single-quotes around the IP address. If that does not work, it is probably because an earlier rule in the INPUT chain is explicitly accepting the packets. Note that iptables stops looking when it finds a definitive rule saying what to do with a packet (definitive targets are ACCEPT, DROP, REJECT).
 
  


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
iptables - drop all -> allow needed OR allow all -> drop specific lucastic Linux - Security 5 12-21-2004 03:07 AM
iptables how drop ip address issin Linux - Networking 4 09-02-2004 07:45 AM
how to do this.. IPTABLES IP Range DROP latino Linux - Security 1 01-02-2004 02:41 AM
iptables DROP command mm_jth Linux - Security 5 11-07-2003 12:22 PM
iptables -> DROP -> CLAGGS geoffj Linux - Networking 12 03-23-2003 06:26 AM


All times are GMT -5. The time now is 06:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration