Re: Proxy Filter iptable Settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-04-26 at 22:07 -0500, Mike Hendrie wrote:
> All,
> I have a PROXY server with 2 Nics.  One is public facing NIC, the
> other is private facing Nic.

I assume that you mean a web proxy and that all your clients already use
the server as their default gateway?

> What would be the best settings to force all private IPs, on the LAN,
> to pass through the Proxy server?

Depending on the answer to the above, something like this:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 \
	-j REDIRECT --to-port 3128

Your proxy server will need to support transparent proxying.

Andy


--
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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux