All of lore.kernel.org
 help / color / mirror / Atom feed
* Using iptables to anonymize incoming IP addresses
@ 2009-09-30 14:14 andy thomas
  2009-09-30 14:45 ` Richard Horton
  2009-09-30 18:38 ` Leonardo Rodrigues
  0 siblings, 2 replies; 4+ messages in thread
From: andy thomas @ 2009-09-30 14:14 UTC (permalink / raw)
  To: netfilter

I would like to set up a Linux router with two NICs, one connected to the
public Internet and the other NIC having the IP address 192.168.1.1
connected to a private 192.1.68.1.0/24 network. The routing would be
arranged so that all incoming packets from the public network with TCP
port 80 (ie, web traffic) are forwarded to a webserver on the private LAN
with IP address 192.168.1.2 - so far so good and this can be done with
DNAT.

But, I want all the packets received by the webserver to appear to be
coming from the address 192.168.1.1, not the external public IP address
they really came from, eg the apache logs will show all page requests as
coming from 192.168.1.1. Can this be done with iptables?

Andy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-01 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 14:14 Using iptables to anonymize incoming IP addresses andy thomas
2009-09-30 14:45 ` Richard Horton
2009-09-30 18:38 ` Leonardo Rodrigues
2009-10-01 15:37   ` andy thomas

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.