From: "John A. Sullivan III" <john.sullivan@nexusmgmt.com>
To: black@arbbs.net
Cc: netfilter@lists.netfilter.org
Subject: RE: Destination Nat
Date: Fri, 04 Jun 2004 12:44:45 -0400 [thread overview]
Message-ID: <1086367484.15357.53.camel@localhost> (raw)
In-Reply-To: <40c09fdd.53.2397.470918728@arbbs.net>
On Fri, 2004-06-04 at 12:14, black@arbbs.net wrote:
> > What are the other rules?
>
> iptables -t nat -A PREROUTING -d 5.6.7.8 -p tcp \
> --dport 22 -j DNAT --to 192.168.1.81:22
>
> iptables -t nat -A PREROUTING -d 5.6.7.8 -p tcp \
> --dport 22 -j DNAT --to 192.168.1.82:22
>
> iptables -t nat -A PREROUTING -d 5.6.7.8 -p tcp \
> --dport 22 -j DNAT --to 192.168.1.83:22
>
> iptables -t nat -A PREROUTING -d 5.6.7.8 -p tcp \
> --dport 22 -j DNAT --to 192.168.1.88:22
>
> john
Well that does explain it! It will always choose the first matched
rule. You cannot do what you have outlined here. Well . . . you can but
it will behave exactly as you observed. There must be some
distinguishing trait in the match portion of the rule to differentiate
the rules -- a different public address, a different port, a different
interface. You matches are all the same!
--
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net
next prev parent reply other threads:[~2004-06-04 16:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-04 16:14 Destination Nat black
2004-06-04 16:44 ` John A. Sullivan III [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-04 15:45 black
2004-06-04 16:14 ` John A. Sullivan III
2004-06-02 15:20 Piszcz, Justin Michael
2004-05-28 14:18 black
2004-05-29 1:56 ` John A. Sullivan III
2004-06-02 3:38 ` John Black
2004-06-02 11:19 ` John A. Sullivan III
2004-06-02 11:53 ` John Black
2004-06-02 15:13 ` Alistair Tonner
2004-05-28 13:46 black
2004-05-28 14:18 ` John A. Sullivan III
2004-01-28 20:45 Destination NAT Ale Zeta
2004-01-28 14:21 Alejandro Zaidel
2004-01-29 9:13 ` Antony Stone
2004-01-29 9:47 ` Ray Leach
2004-01-29 9:46 ` Antony Stone
2003-03-14 11:01 Sathi
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=1086367484.15357.53.camel@localhost \
--to=john.sullivan@nexusmgmt.com \
--cc=black@arbbs.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