Squid3 transparent proxy not serving pages
-
After you install squid, it seems to need to be restarted before it starts working. Either bounce the box or restart the squid service. Anything in /var/squid/logs/cache.log? Or the System log in WebGUI?
-
I have restarted the box after turning on transparent proxy with no different results. There is nothing in the firewall logs after a reboot to show that I am doing anything as long as it is in transparent mode.
System log shows:
Dec 6 21:04:29 php-fpm[245]: /rc.start_packages: [squid] Starting service…
Dec 6 21:04:29 squid[68075]: Squid Parent: will start 1 kids
Dec 6 21:04:29 squid[68075]: Squid Parent: (squid-1) process 68263 started
Dec 6 21:04:29 php-fpm[245]: /rc.start_packages: [squid] Starting a proxy monitor script/var/squid/logs.cache.log shows:
Page faults with physical i/o: 0
2015/12/06 10:06:32 kid1| Starting Squid Cache version 3.4.10 for i386-portbld-freebsd10.1…
2015/12/06 21:02:51 kid1| Shutdown: NTLM authentication.
2015/12/06 21:02:51 kid1| Shutdown: Negotiate authentication.
2015/12/06 21:02:51 kid1| Shutdown: Digest authentication.
2015/12/06 21:02:51 kid1| Shutdown: Basic authentication.
CPU Usage: 4.750 seconds = 3.661 user + 1.089 sys
Maximum Resident Size: 101312 KB
Page faults with physical i/o: 11
2015/12/06 21:04:29 kid1| Starting Squid Cache version 3.4.10 for i386-portbld-freebsd10.1...I tried removing and re-installing Squid3 several times (with the keep settings box unchecked). It's like it is not even getting to the firewall.
-
I remember that i386 squid had some issues many months ago and I don't know if they got addressed or not. That might be your problem. Are you able to run x64?
-
On your test PC, did you set your default gateway to pfsense's LAN ip address?
-
On your test PC, did you set your default gateway to pfsense's LAN ip address?
Yes, the gateway is via DHCP and I checked.
@KOM:
I remember that i386 squid had some issues many months ago and I don't know if they got addressed or not. That might be your problem. Are you able to run x64?
Yes, I will report back. Originally this was to be on an older machine but I have since put in a new one.
-
32-bit builds will go away soon enough so you really should move to 64-bit if you can.
-
I have installed and setup the amd64 version. I am having the same problems with the transparent proxy. Manually set up in browser is fine.
I have the same settings as before. What else can I check? It seems the requests never hit the cache or firewall. I will keep looking as well.
Thank you.
-
I ended up unticking the transparent proxy and manually adding a LAN rule to do the same thing:
rdr on fxp0 inet proto tcp from any to 192.168.2.0 port = http -> 127.0.0.1 port 3128This does not work. The rule shows but does not redirect to http to 3128.
I wonder if there is a problem with the built in rule:
rdr on fxp0 inet proto tcp from any to ! (fxp0) port = http -> 127.0.0.1 port 3128In the meantime, if anyone has an idea of why the transparent proxy isn't working within Squid3 please let me know.
Thank you.
-
In the meantime, if anyone has an idea of why the transparent proxy isn't working within Squid3 please let me know.
It's working just fine for pretty much everyone but you… Do a traffic capture, this doesn't go anywhere with the amount of info available here.
-
Transparent proxy is a PITA when it comes to HTTPS, so perhaps this is a blessing in disguise. Consider keeping squid in explicit mode and use WPAD to help your clients find it automatically.
https://doc.pfsense.org/index.php/WPAD_Autoconfigure_for_Squid
-
@KOM:
Transparent proxy is a PITA when it comes to HTTPS, so perhaps this is a blessing in disguise.
;D 8) Not a fan of transparent proxies either.
-
Thanks for the suggestion KOM. I used the wpad link you sent and am dropping the transparent proxy. I guess I am stuck in the past - had that set up using centos but lost the hard drive and was trying to recreate it on pfsense. This is a better solution. I will monitor it and make certain that it works as expected.
Thanks for the help doktornotor as well - when I have time I will try the sniffer.