From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: DNAT problem / question
Date: Fri, 18 Jun 2004 17:14:41 +0100 [thread overview]
Message-ID: <200406181714.41952.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <20040618180601.7488d0b0.leslie.polzer@gmx.net>
On Friday 18 June 2004 5:06 pm, Patrick Leslie Polzer wrote:
> On Fri, 18 Jun 2004 17:45:20 +0200
>
> "Arnauts, Bert" <Bert.Arnauts@fujitsu-siemens.com> wrote:
> > Could you please check my config, if I execute this I can not ping my
> > internal lan ip of this host 172.25.239.208 any more. I think this is
> > really wierd.
>
> Why? These lines:
> > $IPTABLES -t nat -A PREROUTING -d 172.25.239.220/27 -j DNAT
> > --to-destination 11.0.0.16
> > $IPTABLES -t nat -A OUTPUT -d
> > 172.25.239.220/27 -j DNAT --to-destination 11.0.0.16
>
> are doing everything to keep ALL packets away from you ;)
> All outgoing packets (statement 2) are redirected to 11.0.0.16
> and all incoming are as well (statement 1)!
> How do you expect ping to work with that? :-O
Good point, but surely a ping packet sent to 172.25.239.220 (let's overlook
the netmask for the time being...) would get redirected to 11.0.0.16, and
provided that machine responds to the ping (and the reply goes back through
netfilter's NAT table) the origianting client might see the reply?
However, I am certainly highly confused by what Bert is trying achieve here -
perhaps the answers to a few questions would help:
1. How many interfaces does the netfilter machine have? What are their IP
addresses?
2. Where is machine 11.0.0.16? How are packets routed to that frm the
netfiler machine?
3. What address are you sending the ping packets from (and to)? How is that
client routed to the netfilter box?
4. What, in simple terms, are you trying to achieve with the two rules which
Patrick has queried above?
Regards,
Antony.
--
"It would appear we have reached the limits of what it is possible to achieve
with computer technology, although one should be careful with such
statements; they tend to sound pretty silly in five years."
- John von Neumann (1949)
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-06-18 16:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 15:45 DNAT problem / question Arnauts, Bert
2004-06-18 16:06 ` Patrick Leslie Polzer
2004-06-18 16:14 ` Antony Stone [this message]
2004-06-18 16:06 ` Antony Stone
2004-06-18 16:45 ` Patrick Leslie Polzer
2004-06-18 16:09 ` Rob Sterenborg
2004-06-18 16:29 ` DNAT problem / question (nfcan: addressed to exclusive sender for this address) Jim Laurino
-- strict thread matches above, loose matches on Subject: below --
2004-06-20 22:00 DNAT problem / question Arnauts, Bert
2004-06-20 22:24 Arnauts, Bert
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=200406181714.41952.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--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.