So setup is like this;
Router: 192.168.1.1
Lan:192.168.1.0/24
Squid-server: 192.168.1.3
Squid-port:3128
i made a firewall.user rule to prerouter http traffic to squid but i have problems with it.
Code: Select all
iptables -t nat -A POSTROUTING -p tcp -m iprange --src-range 192.168.1.5-192.168.1.254 --dport 80 -j DNAT --to-destination 192.168.1.3:3128
If i add this line to it, routing to squid works but squid gives invalid url messages.
Code: Select all
iptables -t nat -A PREROUTING -j MASQUERADE