LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-19-2006, 05:46 AM   #1
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Rep: Reputation: 15
I don't understand this iptables rule -i lo


I entered this command into my Fedora firewall:

/sbin/iptables -A RH-Firewall-1-INPUT -i lo -j ACCEPT

When I read the table,
/sbin/iptables -L

I think that, according to the rules sorting order, the rule above corresponds to this line:
target prot opt source destination
ACCEPT all -- anywhere anywhere


I read that the rule stands for allowing anything over loopback. What does it mean and why does the iptable entry look so scary?

Thank you.
 
Old 09-19-2006, 06:06 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Melsync
I entered this command into my Fedora firewall:

/sbin/iptables -A RH-Firewall-1-INPUT -i lo -j ACCEPT

When I read the table,
/sbin/iptables -L

I think that, according to the rules sorting order, the rule above corresponds to this line:
target prot opt source destination
ACCEPT all -- anywhere anywhere


I read that the rule stands for allowing anything over loopback. What does it mean and why does the iptable entry look so scary?

Thank you.
yeah, the rule means "if packet comes-in through the loopback interface, send it to ACCEPT"... the reason it looks scary in your output is cuz it's not verbose enough... it's less scarier like this:
Code:
iptables -L -v -n
 
Old 09-19-2006, 06:13 AM   #3
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Original Poster
Rep: Reputation: 15
I understand. The verbose output precises that 'in' is 'lo', not 'all' or anything like that.
Thanks a lot.
 
  


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
What is it doing this iptables rule?? lanczer Linux - Security 1 02-24-2006 11:26 AM
help with iptables rule!! vishamr2000 Linux - Security 6 11-09-2005 05:34 AM
iptables rule order Kumado Linux - Security 4 10-13-2005 11:12 PM
want to understand iptables mjl3434 Linux - Newbie 3 09-10-2005 03:53 PM
IPTables Rule... Grim Reaper Linux - Software 8 04-28-2003 12:20 PM

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

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