Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Postmaster" <iptables-pmd0052@promind.de>
To: netfilter@lists.netfilter.org
Subject: question about -t nat
Date: Sat, 19 Jun 2004 18:46:48 +0200	[thread overview]
Message-ID: <000501c4561d$0495e830$6900a8c0@W2K> (raw)

hello list-users,

i want clean up my pre- and postrouting chains with rules like this:

iptables -t nat -A PREROUTING -i eth0 -j first_group
iptables -t nat -A PREROUTING -i eth1 -j second_group

iptables -t nat first_group -s a.b.c.d -d x/y -p tcp --sport
1024:65535 --dport 10001 -j DNAT --to-destination 1.2.3.4:25
iptables -t nat second_group -s a.b.c.d -d x/y -p tcp --sport
1024:65535 --dport 10002 -j DNAT --to-destination 4.5.6.7:25

is there any modul which makes this possible?


best regards

Jan



             reply	other threads:[~2004-06-19 16:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-19 16:46 Postmaster [this message]
2004-06-19 17:18 ` question about -t nat John A. Sullivan III
  -- strict thread matches above, loose matches on Subject: below --
2004-06-19 17:57 Postmaster
2004-06-19 18:38 ` John A. Sullivan III
2004-06-19 19:54   ` Postmaster
2004-06-19 22:18     ` John A. Sullivan III
2004-06-19 22:40       ` Daniel Wittenberg
2004-06-19 23:21         ` John A. Sullivan III
2004-06-19 23:25       ` Postmaster
2004-06-19 23:53 Jan Brand (Postmaster)

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='000501c4561d$0495e830$6900a8c0@W2K' \
    --to=iptables-pmd0052@promind.de \
    --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