Re: Squid + iptables (different networks)

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

 



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" <cox@xxxxxxxx>
To: <netfilter@xxxxxxxxxxxxxxxxxxx>
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 <real-ip>: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





[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