Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Kim Jensen <kimj@dawn.dk>
To: Aldo Lagana <alagana@discmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Filtering in the nat table - opinions wanted
Date: Mon, 24 Mar 2003 20:32:10 +0100	[thread overview]
Message-ID: <200303242032.10758.kimj@dawn.dk> (raw)
In-Reply-To: <003501c2f232$1c0a5140$6d64a8c0@discmail.com>

Hi Aldo,

You shouldn't drop packets in the prerouting part, use the filtering part to 
do this. in the pre/post routing you should just try to keep things clean.

So, no I don't find it bad to have the nat policy to accept - it is the filter 
policies I would be worried about :-)

/Kim


On Monday 24 March 2003 19:20, Aldo Lagana wrote:
> by default I set the nat chains (PREROUTING POSTROUTING, etc) to ACCEPT. 
> first off is this bad?
>
> For my web & mail servers using DNAT, I need to add rules - and I do.  Same
> w/ SNAT rules...
>
> The problem has come up with our mail server - we were getting spam from
> one IP address - since my DNAT rule was ACCEPT and forward, the mail server
> kept getting these spam messages.  I stopped the SPAM by adding a rule to
> the beginning of PREROUTING to DROP packets from that address.
>
> This made me start thinking - am I doing it right by having all the nat
> chains default ACCEPT?
>
> aldo



  reply	other threads:[~2003-03-24 19:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 18:20 Filtering in the nat table - opinions wanted Aldo Lagana
2003-03-24 19:32 ` Kim Jensen [this message]
2003-03-24 22:09 ` Joel Newkirk

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=200303242032.10758.kimj@dawn.dk \
    --to=kimj@dawn.dk \
    --cc=alagana@discmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox