All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Leangen" <dleangen@canada.com>
To: netfilter@lists.netfilter.org
Subject: RE: Confirm: letting certain packages pass through un-natted
Date: Tue, 27 Sep 2005 07:44:01 +0900	[thread overview]
Message-ID: <NEBBKBPLMLNABNADCIPAIEDLBHAB.dleangen@canada.com> (raw)
In-Reply-To: <4337C0C6.5040606@rdc.pl>


Hello!

> > -A PREROUTING -s 192.168.0.0/16 -d 192.168.1.1 -j ACCEPT
> > 
> > Shouldn't all packets, including ICMP packets, get passed through to 
> > 192.168.1.1 if originating from the local network?
> 
> Not necesarily.
> Even if you pass the packet in nat table, you still might drop it in 
> filter table. I know the ACCEPT target may be used in every (?) table, 
> but it's a matter of good practice to filter packets in filter tables 
> and nat in nat tables and so on. So I would suggest moving this from nat 
> table to filter table and from PREROUTING to FORWARD.

Good point... I'll do just that. Thanks!!

BTW, where can I find out more about "good practices"?




  reply	other threads:[~2005-09-26 22:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-26  7:37 Confirm: letting certain packages pass through un-natted David Leangen
2005-09-26  7:51 ` Rob Sterenborg
2005-09-27  0:17   ` David Leangen
2005-09-27  9:15     ` Rob Sterenborg
2005-09-26  9:35 ` Mariusz Kruk
2005-09-26 22:44   ` David Leangen [this message]
2005-09-27  2:07     ` David Leangen
2005-09-27  8:55       ` Jörg Harmuth
2005-09-29  4:43       ` David Leangen
     [not found]         ` <433BDBE3.5010605@mnemon.de>
2005-10-03  4:51           ` David Leangen

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=NEBBKBPLMLNABNADCIPAIEDLBHAB.dleangen@canada.com \
    --to=dleangen@canada.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.