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.