Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Alistair Tonner <Alistair@nerdnet.ca>
To: Michael Carroll <ingenious@jfvp.net>, netfilter@lists.netfilter.org
Subject: Re: Need some clarity
Date: Fri, 30 May 2003 17:36:58 -0400	[thread overview]
Message-ID: <200305301736.58223.Alistair@nerdnet.ca> (raw)
In-Reply-To: <3ED3B262.6080604@jfvp.net>

	
	The numbers in [...] are packet counts (iptables -L -n -v )
	Order of rules is important --- packets pass through until they hit match,
	then are handled by that match.  
	Don't try to hand edit the iptables-save file .. create a script to load your
	rules using the iptables command (Oskar Andreasson's iptables Tutorial has 
	several excellent starter scripts)

	By default the best way to build a firewall is to set a policy of DROP on all 
	chains and allow only what you need.
	
	The COMMIT ... think like a database.... *grin* that's what actually applies
	the rules.



On May 27, 2003 02:45 pm, Michael Carroll wrote:
> Hello netfilter development crew,
>
> I have a couple, probably straight foreward questions, but I don't know
> the answers to and would like to just to clear things up a little bit.
>
> # Generated by iptables-save v1.2.7a on Tue Apr 15 14:25:35 2003
> *nat
>
> :PREROUTING ACCEPT [7595:344053]
> :POSTROUTING ACCEPT [80:4556]
> :OUTPUT ACCEPT [63:3755]
>
> COMMIT
>
> That is what is generated when I first do an 'iptables-save > /dir' now
> I was wondering what all the numbers inside those brackets stood for,
> because when I start to add rules to them those numbers start to change.
> They also add the user defined rules just before the COMMIT.  Does it
> matter in how you type out you iptables rules, like you should DROP
> everything first, then start to 'open' ports up correct?  Also one other
> thing what does the COMMIT mean?
>
> Thank you in advance.
>
> Michael Carroll

-- 

	Alistair Tonner
	nerdnet.ca
	Senior Systems Analyst - RSS
	
     Any sufficiently advanced technology will have the appearance of magic.
	Lets get magical!


      reply	other threads:[~2003-05-30 21:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-27 18:45 Need some clarity Michael Carroll
2003-05-30 21:36 ` Alistair Tonner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305301736.58223.Alistair@nerdnet.ca \
    --to=alistair@nerdnet.ca \
    --cc=ingenious@jfvp.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox