From: Jim Burnett <jburnett@e-masi.com>
To: Ramin Dousti <ramin@cannon.eng.us.uu.net>
Cc: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: destinations interface must be eth0?
Date: Tue, 16 Sep 2003 13:57:39 -0500 [thread overview]
Message-ID: <1063738659.5701.4.camel@dod-secure.e-masi.com> (raw)
In-Reply-To: <20030916142218.GC16559@cannon.eng.us.uu.net>
Correct.
You cant DNAT to an IP which isnt bound to eth0 of that DNATed machine.
The gateway of the DNATed machine must point to the firewall also. This
isnt document. This was the case with 9 diferent tested linux distros.
On Tue, 2003-09-16 at 09:22, Ramin Dousti wrote:
> What is not working? That the packets are not being DNATted to 192.168.1.56:80?
>
> Ramin
>
> On Mon, Sep 15, 2003 at 09:47:39AM -0500, Jim Burnett wrote:
>
> > I have found that my destination IP in my rules MUST be bound on eth0
> > what is this? I thought I could use any working IP on my internal
> > network as the --to-destination IP...??
> >
> > Example:
> > internal machine:
> > eth0:192.168.1.55
> > eth1:192.168.1.56
> >
> >
> > #1
> > iptables -v -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNA
> > T--to 192.168.1.55:80
> > This will work because the destination IP is on eth0
> >
> > #2
> > iptables -v -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNA
> > T--to 192.168.1.56:80
> > This wont work because the destination IP is on eth1
> >
> > I didnt see this in the documentation and it took my 5 days to figure it
> > out....
> >
> > Tested on 6 machines, redhat 9, slackware 9, Latest gentoo build from
> > stage 1. Various brand nic cards. Various compiled kernels. 2.4.18 -
> > 2.4.22
> >
> > -Jim
> >
> >
> >
next prev parent reply other threads:[~2003-09-16 18:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 14:47 destinations interface must be eth0? Jim Burnett
2003-09-16 14:14 ` Jamie Pratt
2003-09-16 14:22 ` Ramin Dousti
2003-09-16 18:57 ` Jim Burnett [this message]
2003-09-21 1:14 ` Ramin Dousti
2003-09-16 17:07 ` Cedric Blancher
2003-09-16 18:10 ` Jim Carter
2003-09-17 11:30 ` Julian Gomez
2003-09-17 14:05 ` Jim Burnett
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=1063738659.5701.4.camel@dod-secure.e-masi.com \
--to=jburnett@e-masi.com \
--cc=netfilter@lists.netfilter.org \
--cc=ramin@cannon.eng.us.uu.net \
/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.