I do it this way for my one internal subnet. There may be more and
better options, but this works for me.
"iptables -t nat -A PREROUTING -i ${INT_INTERFACE} -s ${INT_NETWORK} -p
tcp --dport 80 --sport 1024:65535 -m state --state
NEW,ESTABLISHED,RELATED -j REDIRECT --to-port 3128"
Squid must also be set up to accept transparent connections.
-Ken Sande/KC8QNI
Aaron Clausen wrote:
I'm running Squid on my gateway router (on the internal ethernet only
of course) and have been struggling to figure out how to redirect port
80 traffic to it (transparent proxy). All the instructions I've seen
are for Squid hosted on another server. Anyone have any tips?
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html