LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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


Closed Thread
  Search this Thread
Old 06-25-2009, 01:32 AM   #1
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Rep: Reputation: 18
iptables: why do I want INPUT rule 3 (built by firestarter)


My system works fine but I'm confused about what firestarter built for me.

sudo iptables --line-number -nL INPUT
Chain INPUT (policy DROP)
num target prot opt source destination
1 ACCEPT tcp -- 192.168.0.1 0.0.0.0/0 tcp flags:!0x17/0x02
2 ACCEPT udp -- 192.168.0.1 0.0.0.0/0
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
4 LSI udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:33434
5 LSI icmp -- 0.0.0.0/0 0.0.0.0/0
6 DROP all -- 0.0.0.0/0 255.255.255.255
7 DROP all -- 0.0.0.0/0 192.168.0.255
8 DROP all -- 224.0.0.0/8 0.0.0.0/0
9 DROP all -- 0.0.0.0/0 224.0.0.0/8
10 DROP all -- 255.255.255.255 0.0.0.0/0
11 DROP all -- 0.0.0.0/0 0.0.0.0
12 DROP all -- 0.0.0.0/0 0.0.0.0/0 state INVALID
13 LSI all -f 0.0.0.0/0 0.0.0.0/0 limit: avg 10/min burst 5
14 INBOUND all -- 0.0.0.0/0 0.0.0.0/0
15 LOG_FILTER all -- 0.0.0.0/0 0.0.0.0/0
16 LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6 prefix `Unknown Input'


QUESTION: Rule 3 looks like it acecpts bloody EVERYTHING so that all following lines are superfluous.
What don't I understand about iptables???? That's my question. Can't find anything in the tutorials I've found.
Same line exists in the OUTPUT chain.

But!?! It seems to be working ok!?! Howcum????
And there seems to be no change with
iptables -D INPUT 3
Wierd.
 
Old 06-25-2009, 02:49 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Try with the -v (verbose) option:
Code:
iptables -nvL INPUT
This will show you the interface the rule applies to.

My guess/hope is it's the loopback interface (lo) in your case.
 
1 members found this post helpful.
Old 06-25-2009, 03:29 AM   #3
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Original Poster
Rep: Reputation: 18
:-P

Duh ... yup!!!
 
Old 09-21-2010, 06:39 PM   #4
edsmithers
Member
 
Registered: Jul 2003
Distribution: slackware 9.1
Posts: 45

Rep: Reputation: 15
very late (-:

and again... duh!! thanks i'm coming back to iptables after a while and this rule had me stumped, good to know the v option shows interfaces.
 
Old 09-21-2010, 09:28 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
That's good news, but please don't resurrect dead threads unless it's absolutely necessary.
 
  


Closed Thread



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: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
iptables rule sang_froid Linux - Networking 1 03-18-2009 10:32 AM
iptables rule DJ29Joesph Linux - Security 4 11-04-2008 12:55 AM
What is it doing this iptables rule?? lanczer Linux - Security 1 02-24-2006 11:26 AM
How to unintall FC2's built in input method? acer_peri Fedora 1 06-05-2004 06:28 AM

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

All times are GMT -5. The time now is 01:53 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