From: "Peter Marshall" Subject: Re: Squid + iptables (different networks) Date: Thu, 18 Nov 2004 09:45:28 -0400 Message-ID: <004501c4cd74$dd0b1d10$49caa8c0@caris.priv> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: cox@ieee.org, netfilter@lists.netfilter.org Get rid of your nat rule to the proxy. Your proxy will change the IP from your internal IP when it connects out to a webpage anyway. Peter ----- Original Message ----- From: "cox" To: Sent: Wednesday, November 17, 2004 11:07 AM Subject: Squid + iptables (different networks) Hi, I've got my internal network (192.168.7.0/24, gw=192.168.7.1) and my squid-cache server runs on my DMZ. On my gateway I have: iptables -t nat -A PREROUTING -s 192.168.7.0/24 -p tcp --dport 80 -j DNAT --to :3128 And my squid-server was compiled with --linux-netfilter, etc. It's working, but the log file (access.log) shows me that all connections came from my gateway, and it's correct. I'd like to know if someone have a way to change that, and in the logfile, and squid acl management I can use/see my internal network ips. They are in different subnets. regards, cox