All of lore.kernel.org
 help / color / mirror / Atom feed
* Redirect to same LAN and preserve source IP
@ 2004-07-12 13:19 Gavin Hamill
  2004-07-12 13:38 ` Antony Stone
  0 siblings, 1 reply; 8+ messages in thread
From: Gavin Hamill @ 2004-07-12 13:19 UTC (permalink / raw)
  To: netfilter

Hi :)

This is a topic that's come up a couple of times recently and I wondered if 
there was some super-high-powered incantation I could use...

Presently, I'm running squid on the same machine that the LAN uses for 
Internet access, so I'm doing a simple 

$IPT -A PREROUTING -s 10.0.0.0/255.255.255.0 -i eth1 -p tcp -m tcp --dport 80 
-j REDIRECT --to-ports 3128

and this preserves the IP address of the LAN machine which made the request, 
which is what we want for the log files.

However, I need to change the 10.0.0.254 'defaut gateway' machine to a 
standalone router, and the squid installation will be then on a seperate 
machine. Is there any way I can 'grab' the outgoing requests on port 80, and 
shove them into port 3128 on another machine and preserve the correct source 
IP, rather than everything being marked with the IP of the gateway 
10.0.0.254 ?

Cheers,
Gavin.


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

end of thread, other threads:[~2004-07-19  6:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12 13:19 Redirect to same LAN and preserve source IP Gavin Hamill
2004-07-12 13:38 ` Antony Stone
2004-07-12 15:12   ` Gavin Hamill
2004-07-12 15:31     ` Antony Stone
2004-07-13  8:50       ` Gavin Hamill
2004-07-13  9:00         ` Antony Stone
2004-07-13 10:47           ` QUEUE both ipv4 and ipv6? Scott MacKay
2004-07-19  6:09           ` Redirect to same LAN and preserve source IP Saad Faruque

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.