Re: [squid-users] Transparent proxy issues...

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 12 Apr 2005 17:13:41 +0200 (CEST)

On Tue, 12 Apr 2005, Jon Newman wrote:

> -A PREROUTING -s 66.101.59.243 -p tcp -m tcp --dport 80 -j REDIRECT
> --to-ports 8080
> COMMIT
> # Completed on Tue Apr 12 09:38:04 2005
>
> Shouldn't I supply the destination IP address when redirecting to port
> 8080? In other words, doesn't the current setup redirect the client to
> port 8080 on the ORIGINAL, INTERNET based server (which would be
> incorrect)? If so, how would I do so with iptables?

No. REDIRECT is equivalend to DNAT to the IP address of the interface
where the packet was received and a specific port.

If you want to explicitly state the IP then you can use DNAT instead of
REDIRECT. Both supports specifying the port to NAT to.

REgards
Henrik
Received on Tue Apr 12 2005 - 09:13:43 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:03 MDT