Hello
Squid 2.6 to 3.0 is not using http_accel* config lines anymore in order to be transparent
You need to add only a single line like
Code:
http_port 192.168.1.1:3128 transparent
where 192.168.1.1 is the ip you wanan bind squid on
or
Code:
http_port 3128 transparent
to listen on any available interface
iptables as usual
Code:
iptables -A PREROUTING -i eth1 -s 192.168.1.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -A FORWARD -i eth1 -j DROP
Note: change IP's as you need and make sure the interface (ethx) is the interface connected to the LAN and that has direct connection with the clients that will use squid server
and forwarding on either by adding the next into your startup scripts (rc.local)
Code:
echo 1 >/proc/sys/net/ipv4/ip_forward
or (i recommend) adding it to your sysctl.conf
Code:
net.ipv4.conf.default.forwarding=1
Regards
Andy
Regards