All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guido Lorenzutti <guido@lorenzutti.com.ar>
To: netfilter@lists.netfilter.org
Subject: travelling the tables and chains...
Date: Sun, 03 Apr 2005 23:25:42 -0300	[thread overview]
Message-ID: <4250A5A6.6040509@lorenzutti.com.ar> (raw)

Hi people, i would like to clean up my firewall script by creating new 
chains in the filter table. Like this:

iptables -N FORWARD_WAN_TO_LAN

Then, call the traffic in the FORWARD chain:

iptables -A FORWARD -i $WAN -o $LAN -j FORWARD_WAN_TO_LAN

Now how can i discriminate the DNATed packets from that rule? It's OK if 
i MARK them in the PREROUTING chain and create a rule BEFORE in the 
FORWARD chain to check if the packet im MARKed then -j DNATED_WAN_TO_LAN?

Any better ideas?


             reply	other threads:[~2005-04-04  2:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04  2:25 Guido Lorenzutti [this message]
2005-04-04  3:30 ` travelling the tables and chains Grant Taylor
2005-04-05  4:28 ` Jason Opperisano

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=4250A5A6.6040509@lorenzutti.com.ar \
    --to=guido@lorenzutti.com.ar \
    --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.