From: Ray Leach <spoons@rchq.co.za>
To: Pieter De Wit <Pieter.DeWit@vodacom.co.za>
Cc: netfilter@lists.netfilter.org
Subject: Re: DNAT and local hosts
Date: Tue, 08 May 2007 08:05:05 +0200 [thread overview]
Message-ID: <46401311.2000507@rchq.co.za> (raw)
In-Reply-To: <C3FA62B1A90D7440B9B6C7C31895994F08041C@zadbn02100.vodacom.corp>
[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]
Pieter De Wit wrote:
> *BEEP* *BUZZ* I know - but it's for a closed source app that I need to do this - and it takes the address from the server, the protocol doesn't carry it it :)
>
>
> -----Original Message-----
> From: Jan Engelhardt [mailto:jengelh@linux01.gwdg.de]
> Sent: Mon 2007/05/07 18:01
> To: Pieter De Wit
> Cc: netfilter@lists.netfilter.org
> Subject: Re: DNAT and local hosts
>
>
> On May 7 2007 17:54, Pieter De Wit wrote:
>> Now, all connections are routed out via FW:ppp0 and at NAT'ed. There is
>> a rule that allows connections to ppp0 on port 1234 and DNAT's them to
>> C1. When C2 makes a connection to 1.2.3.4:1234 it fails with "Connection
>> refused" since there is no "server" listening on the firewall's
>> ppp0,port 1234.
>
> *BEEP* *BUZZ* *ERROR*. You have a direct connection between C1 and C2.
>
>
> Jan
There is no routing between C1 and C2, so your firewall never sees the
traffic between the 2.
Put C1 and C2 on two seperate physical networks and connect them through
firewall to get routing to happen, then you can use iptables to do
NATing between them.
Else put two interfaces into your firewall, give each interface an ip
address in the same subnet, configure bridging between the two, put C1
on the end of one interface and C2 on the other if, then look into ebtables.
next prev parent reply other threads:[~2007-05-08 6:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-07 15:54 DNAT and local hosts Pieter De Wit
2007-05-07 16:01 ` Jan Engelhardt
2007-05-07 19:54 ` Pieter De Wit
2007-05-08 6:05 ` Ray Leach [this message]
2007-05-08 6:09 ` Pieter De Wit
2007-05-08 6:36 ` Ray Leach
2007-05-08 6:38 ` Pieter De Wit
2007-05-08 8:39 ` Jan Engelhardt
2007-05-08 8:43 ` Jan Engelhardt
2007-05-08 8:34 ` Pascal Hambourg
2007-05-08 9:03 ` Pascal Hambourg
-- strict thread matches above, loose matches on Subject: below --
2007-05-07 15:49 Pieter De Wit
2007-05-07 15:49 Pieter De Wit
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=46401311.2000507@rchq.co.za \
--to=spoons@rchq.co.za \
--cc=Pieter.DeWit@vodacom.co.za \
--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.