LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-11-2008, 08:20 AM   #1
tolkali
LQ Newbie
 
Registered: Sep 2008
Location: Mountain of Nepal
Distribution: Fedora and CentOS
Posts: 8

Rep: Reputation: 0
iptables confusion


Can any one help me by explaining about few of my queries.?
in below examples. I have taken these lines from my file /etc/sysconfig/iptables (I have gone lot of tutorials about iptables but I could not get answer of these following.

-A INPUT -j RH-Firewall-1-INPUT (what this line intending to saying?)
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
(what is mean by -m ?)

-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
(what is mean by --icmp-type?)

-A RH-Firewall-1-INPUT -p esp -j ACCEPT
-A RH-Firewall-1-INPUT -p ah -j ACCEPT
(what is man by -p esp, and -p ah ? and what is the propose of these two lines?)

-A RH-Firewall-1-INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT
(Why this specific ip -d 224.0.0.251 is in my iptable file? what it is indicating it?)

-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
(what is the explanation of this line?)

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT

(in above line what is mean by
-1
-m state
-- state NEW
again -m
)
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
(what is the explanation of this above line?)
 
Old 09-11-2008, 10:20 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Hi, tolkali. Welcome to LinuxQuestions.
This is something you might read that will answer your questions. On that site you will also find downloadable versions of the tutorial.
 
Old 09-12-2008, 06:12 AM   #3
tolkali
LQ Newbie
 
Registered: Sep 2008
Location: Mountain of Nepal
Distribution: Fedora and CentOS
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Berhanie!! The document link you have provided is very much interesting and I love to go through it. If I can not understand again I will speak here.
Thanks for your support.
 
Old 09-12-2008, 06:21 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Very good, tolkali. I'll see you around the forums, then. Good luck, and welcome.
 
  


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 confusion ! Tareq85 Linux - Networking 2 05-31-2008 04:59 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
iptables confusion ...? marlor Linux - Security 5 07-10-2004 10:17 AM
Iptables Confusion fotoguy Linux - Security 3 01-08-2004 05:24 PM
confusion on iptables gauge73 Linux - Networking 5 12-17-2003 07:31 AM


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