LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2012, 10:54 AM   #1
Zippy1970
Member
 
Registered: Sep 2007
Posts: 119

Rep: Reputation: 17
Could someone explain an iptables rule for me?


If I view my current iptables rules on my webserver, I see this line for (almost) all of my hosted domains:

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
           0    --  anywhere             www.domain.com

.
.
.

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
           0    --  www.domain.com       anywhere
Does that even do anything? Like I said, I see such a rule for almost all hosted domains. I have no idea how those rules got there (never checked before so I have no idea how long they have been there).
 
Old 07-18-2012, 06:27 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Posting 'iptables -L' output often is the least interesting: best post plain rule configuration file contents.
 
Old 07-19-2012, 08:25 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Rules with matchers and an empty target just record how much traffic satisfied the match. Run "iptables -vL" and note the "pkts" and "bytes" columns.
 
1 members found this post helpful.
Old 07-19-2012, 06:42 PM   #4
Zippy1970
Member
 
Registered: Sep 2007
Posts: 119

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by rknichols View Post
Rules with matchers and an empty target just record how much traffic satisfied the match. Run "iptables -vL" and note the "pkts" and "bytes" columns.
Aaaaah... Now it makes sense. Those are probably rules I added for Munin a long time ago (to monitor the bandwidth of those domains).
 
  


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
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
iptables rule bkcreddy17 Linux - Security 2 01-20-2009 06:38 AM
What is it doing this iptables rule?? lanczer Linux - Security 1 02-24-2006 11:26 AM
Help! explain needed for the output of iptables -L mrpc_cambodia Red Hat 2 07-20-2004 11:16 PM
Please explain something about IPTABLES musicman_ace Linux - Networking 2 06-01-2004 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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