I have squid set up on my router (asus-rt-ac68u running asus-merlin) as a transparent proxy. Squid starts up without error and everything seems to be work well from the client side, but my squid debug logs are peppered with error messages:
Code:
commBind: Cannot bind socket FD XX to X.X.X.X: (99) Cannot assign requested address
The socket number changes, but the IP address always seems to be whatever external IP I am accessing through the transparent proxy. Every web page I visit I get about 15 to 20 of these error messages.
If I set up squid as a regular proxy I don't see them, so I assume it has something to do with the way iptables is set up?
In my squid (version 3.4.11) conf I'm using:
Code:
http_port 10.0.0.1:3129 intercept
http_port 10.0.0.1:80 accel
and for iptables, to the existing tables my router generates I'm adding:
Code:
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 3129
Any idea what I need to change to stop these error messages?
Thanks!