NetFilter
[Top] [All Lists]

Re: "distributed router" question

To: netfilter@lists.netfilter.org
Subject: Re: "distributed router" question
From: Robert Nichols <rnicholsNOSPAM@comcast.net>
Date: Sat, 24 Feb 2007 19:58:46 -0600
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <47965.8371689313$1172352756@news.gmane.org>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
References: <200702241418.22551.silvio@pizzaroot.com.br> <47965.8371689313$1172352756@news.gmane.org>
Sender: netfilter-bounces@lists.netfilter.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060508 Fedora/1.7.13-1.3.1.legacy
Alec Matusis wrote:
Hi Silvio,

Thanks for your response.
I still do not understand why SNATting in B to public IP of box A would not
work?
By this I mean the following:

1) Client sends packet to box A ( src: 9.10.11.12 dst: 1.2.3.4 )
2) Box A does DNAT (PREROUTING) to box B ( src: 9.10.11.12 dst: 10.0.0.2 )

Box B receives the packet and replies directly to the client:
1) Box B does SNAT (POSTROUTING) using box A WAN as source (src: 1.2.3.4
dst: 9.10.11.12)

There are two reasons why I'd like to implement it this way:

a) Reduce the load on box A so that the packets from B go directly to the
client 9.10.11.12, bypassing A.
b) The server on box B must log the IPs of all clients (i.e. log the
original client IP 9.10.11.12)
Thank you,

Alec Matusis

You can make that work for UDP, but for TCP box A will see only half-open
connections (it will never see the SYN/ACK) and reject the payload packets
as invalid.

--
Bob Nichols         Yes, "NOSPAM" is really part of my email address.



<Prev in Thread] Current Thread [Next in Thread>