Squid3 - New GUI with sync, normal and reverse proxy
-
Marcello and others,
I've still got problems configuring Squid 3 as a reverse proxy. Somehow I can't manage it to work properly.
As you illustrated in the forst postings I did exactly the same and added NAT and Firewall rules. I'm using port 8080 and 8443.How come…?!?!
Thanks a lot,
CanefieldStill the same issue from TMG post? Did you removed the Nat?
-
Another bugs found on system log when I use revers proxy.
Apr 18 08:41:51
php: : The command '/usr/local/sbin/squid -k reconfigure' returned exit code '1', the output was '2012/04/18 08:41:51| redreshAddToList: Unknown option 'my.windowsupdate.website.com/..(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)': reload-into-imsrange_offset_limit 2012/04/18 08:41:51| redreshAddToList: Unknown option 'my.windowsupdate.website.com/..(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip)': -1 2012/04/18 08:41:51| redreshAddToList: Unknown option 'symantecliveupdate.com/..(cab|exe|dll|msi)': reload-into-imsrange_offset_limit 2012/04/18 08:41:51| redreshAddToList: Unknown option 'symantecliveupdate.com/..(cab|exe|dll|msi)': -1 2012/04/18 08:41:51| redreshAddToList: Unknown option 'avast.com/..(vpu|cab|stamp|exe)': reload-into-imscache_mem 2012/04/18 08:41:51| redreshAddToList: Unknown option 'avast.com/..(vpu|cab|stamp|exe)': 1024 2012/04/18 08:41:51| redreshAddToList: Unknown option 'avast.com/.*.(vpu|cab|stamp|exe)': MB 2012/04/18 08:41:51| Warning: empty ACL: acl throttle_exts urlSolved! I found this problem because at dansquardian has banned "extension files". After I disable banned at extension tab, the error has gone.
-
Donny,
Check if does not happen if you uncheck dynamic content options on squid cache tab. -
Donny,
Check if does not happen if you uncheck dynamic content options on squid cache tab.Now, If I check or uncheck dynamic content options. The error is disappear.
-
i can't seem to get this package to cache files at all… no errors and whatismyip.com detects the proxy is working just it always downloads files without looking at the cache store... anyone else got this problem?
-
i can't seem to get this package to cache files at all… no errors and whatismyip.com detects the proxy is working just it always downloads files without looking at the cache store... anyone else got this problem?
If you know how to handle squid.conf files, can you check if your squid.conf file is ok?
-
i can't seem to get this package to cache files at all… no errors and whatismyip.com detects the proxy is working just it always downloads files without looking at the cache store... anyone else got this problem?
If you know how to handle squid.conf files, can you check if your squid.conf file is ok?
# This file is automatically generated by pfSense # Do not edit manually ! http_port 192.168.168.150:3128 http_port 127.0.0.1:3128 intercept icp_port 0 pid_filename /var/run/squid.pid cache_effective_user proxy cache_effective_group proxy error_directory /usr/local/etc/squid/errors/en icon_directory /usr/local/etc/squid/icons visible_hostname hostname.org cache_mgr user@domain.org access_log /var/squid/logs/access.log cache_log /var/squid/logs/cache.log cache_store_log none sslcrtd_children 0 logfile_rotate 1 shutdown_lifetime 3 seconds # Allow local network(s) on interface(s) acl localnet src 192.168.168.0/24 forwarded_for off uri_whitespace strip # Break HTTP standard for flash videos. Keep them in cache even if asked not to. refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private # Let the clients favorite video site through with full caching acl youtube dstdomain .youtube.com cache allow youtube cache_mem 1024 MB maximum_object_size_in_memory 5000 KB memory_replacement_policy heap GDSF cache_replacement_policy heap LFUDA cache_dir diskd /var/squid/cache 429000 16 256 minimum_object_size 0 KB maximum_object_size 5242880 KB offline_mode offcache_swap_low 90 cache_swap_high 95 # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 # No redirector configured # Setup some default acls acl allsrc src all acl localhost src 127.0.0.1/32 acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 1025-65535 acl sslports port 443 563 acl manager proto cache_object acl purge method PURGE acl connect method CONNECT http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !safeports http_access deny CONNECT !sslports # Always allow localhost connections http_access allow localhost quick_abort_min 0 KB quick_abort_max 0 KB request_body_max_size 0 KB delay_pools 1 delay_class 1 2 delay_parameters 1 -1/-1 -1/-1 delay_initial_bucket_level 100 # Throttle extensions matched in the url acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl" delay_access 1 allow throttle_exts delay_access 1 deny allsrc # Reverse Proxy settings deny_info TCP_RESET allsrc # Package Integration # Custom options # Setup allowed acls # Allow local network(s) on interface(s) http_access allow localnet # Default block all to be sure http_access deny allsrc
-
The cache info is there…
Can you grep for TCP_CACHE your squid access_log file?
-
The cache info is there…
Can you grep for TCP_CACHE your squid access_log file?
returns nothing back :'(
it does have TCP_MISS…. / DIRECT every line...
-
Squid 3.1.19 pkg 2.0.3
2.0.1-RELEASE (amd64)
built on Mon Dec 12 18:43:51 EST 2011
FreeBSD 8.1-RELEASE-p6Entering PEM intermediate CA certificate in the Reverse Proxy General screen: "intermediate CA certificate (if needed)" field.
Receiving the following error:
Fatal error: Call to undefined function sq_text_area_decodedecode() in /usr/local/pkg/squid_reverse.inc on line 61
Thank you
-
Fatal error: Call to undefined function sq_text_area_decodedecode() in /usr/local/pkg/squid_reverse.inc on line 61
typo, I'll fix it. :)
-
Version 2.0.4 is out with
-
bug and typo fixes
-
Upstream tab is now remote cache to enable multiple peer/sibling cache config
-
New compilation to avoid refresh_pattern and transparent mode errors
Thanks for all feedback specially to ccesario.
I recommend a package uninstall/install instead of reinstall to be sure old squid3 binaries are removed.
att,
Marcello Coutinho -
-
Version 2.0.4 is out with
-
bug and typo fixes
-
Upstream tab is now remote cache to enable multiple peer/sibling cache config
-
New compilation to avoid refresh_pattern and transparent mode errors
Thanks for all feedback specially to ccesario.
I recommend a package uninstall/install instead of reinstall to be sure old squid3 binaries are removed.
att,
Marcello Coutinhoi appreciate all your time on this, it is however broken still. i have done a fresh install also…
2012/04/20 07:51:25| WARNING: dnsserver #1 (FD 11) exited 2012/04/20 07:51:25| ipcacheParse: Got <null>reply 2012/04/20 07:51:25| WARNING: dnsserver #2 (FD 13) exited 2012/04/20 07:51:25| ipcacheParse: Got <null>reply 2012/04/20 07:51:25| WARNING: dnsserver #3 (FD 15) exited 2012/04/20 07:51:25| ipcacheParse: Got <null>reply 2012/04/20 07:51:25| WARNING: dnsserver #4 (FD 17) exited 2012/04/20 07:51:25| Too few dnsserver processes are running 2012/04/20 07:51:25| storeDirWriteCleanLogs: Starting... 2012/04/20 07:51:25| Finished. Wrote 222 entries. 2012/04/20 07:51:25| Took 0.01 seconds (29264.43 entries/sec). FATAL: The dnsserver helpers are crashing too rapidly, need help! Squid Cache (Version 3.1.19): Terminated abnormally. CPU Usage: 0.242 seconds = 0.195 user + 0.047 sys Maximum Resident Size: 22836 KB Page faults with physical i/o: 0</null></null></null>
transparent mode : which leaves nothing able to get DNS :'(
-
-
al_reidy,
I'll recompile it and test.
thanks for your feedback.
-
transparent mode : which leaves nothing able to get DNS :'(
please uninstall and reinstall the package and see if dns problems are gone.
-
Squid 3.1.19 pkg 2.0.4
2.0.1-RELEASE (amd64)
built on Mon Dec 12 18:43:51 EST 2011
FreeBSD 8.1-RELEASE-p6No other packages installed. After installing 3.1.19 the service does not start. The error is:
php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -k reconfigure' returned exit code '1', the output was '2012/04/20 10:11:10| ERROR: Error Directory /usr/local/etc/squid/errors/English: (2) No such file or directory FATAL: Error Directory /usr/local/etc/squid/errors/English: (2) No such file or directory Squid Cache (Version 3.1.19): Terminated abnormally. CPU Usage: 0.006 seconds = 0.006 user + 0.000 sys Maximum Resident Size: 4488 KB Page faults with physical i/o: 0'
Thank you
-
change report language on squid gui, then save config.
-
transparent mode : which leaves nothing able to get DNS :'(
please uninstall and reinstall the package and see if dns problems are gone.
Cheers for the recompile the dns issues are fixed now. its very odd and like I'm doing something wrong…
transparent proxy is working according to whatismyip.com, however its still not caching anything. i have scanned the access.log and there is nothing with TCP_CACHE , the cache.log says this :2012/04/20 16:27:24| Processing Configuration File: /usr/local/etc/squid/squid.conf (depth 0) 2012/04/20 16:27:24| Starting Authentication on port 127.0.0.1:3128 2012/04/20 16:27:24| Disabling Authentication on port 127.0.0.1:3128 (interception enabled) 2012/04/20 16:27:24| Disabling IPv6 on port 127.0.0.1:3128 (interception enabled) 2012/04/20 16:27:24| WARNING: refresh_pattern maximum age too high. Cropped back to 1 year. 2012/04/20 16:27:24| WARNING: use of 'override-expire' in 'refresh_pattern' violates HTTP 2012/04/20 16:27:24| WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP 2012/04/20 16:27:24| WARNING: use of 'ignore-no-cache' in 'refresh_pattern' violates HTTP 2012/04/20 16:27:24| WARNING: use of 'ignore-private' in 'refresh_pattern' violates HTTP 2012/04/20 16:27:24| Initializing https proxy context 2012/04/20 16:27:24| Store logging disabled 2012/04/20 16:27:24| User-Agent logging is disabled. 2012/04/20 16:27:24| Referer logging is disabled. 2012/04/20 16:27:24| DNS Socket created at [::], FD 13 2012/04/20 16:27:24| DNS Socket created at 0.0.0.0, FD 14 2012/04/20 16:27:24| Adding domain ********** from /etc/resolv.conf 2012/04/20 16:27:24| Adding nameserver 192.168.168.1 from /etc/resolv.conf 2012/04/20 16:27:24| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/04/20 16:27:24| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/04/20 16:27:24| helperOpenServers: Starting 0/0 'ssl_crtd' processes 2012/04/20 16:27:24| helperOpenServers: No 'ssl_crtd' processes needed. 2012/04/20 16:27:24| Accepting HTTP connections at 192.168.168.150:3128, FD 16. 2012/04/20 16:27:24| Accepting intercepted HTTP connections at 127.0.0.1:3128, FD 17. 2012/04/20 16:27:24| Accepting ICP messages at [::]:7, FD 21. 2012/04/20 16:27:24| HTCP Disabled. 2012/04/20 16:27:24| Loaded Icons. 2012/04/20 16:27:24| Ready to serve requests.
my squid.conf is :
# This file is automatically generated by pfSense # Do not edit manually ! http_port 192.168.168.150:3128 http_port 127.0.0.1:3128 intercept icp_port 7 pid_filename /var/run/squid.pid cache_effective_user proxy cache_effective_group proxy error_directory /usr/local/etc/squid/errors/en icon_directory /usr/local/etc/squid/icons visible_hostname bernard.domain.org cache_mgr bob@example.com access_log /var/squid/logs/access.log cache_log /var/squid/logs/cache.log cache_store_log none sslcrtd_children 0 logfile_rotate 1 shutdown_lifetime 3 seconds # Allow local network(s) on interface(s) acl localnet src 192.168.168.0/24 forwarded_for off uri_whitespace strip # Break HTTP standard for flash videos. Keep them in cache even if asked not to. refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private # Let the clients favorite video site through with full caching acl youtube dstdomain .youtube.com cache allow youtube # Windows Update refresh_pattern range_offset_limit -1 refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims refresh_pattern -i my.windowsupdate.website.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims # Symantec refresh_pattern range_offset_limit -1 refresh_pattern liveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims refresh_pattern symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims # Avast refresh_pattern range_offset_limit -1 refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 10080 100% 43200 reload-into-ims # Avira refresh_pattern range_offset_limit -1 refresh_pattern personal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 10080 100% 43200 reload-into-ims cache_mem 1024 MB maximum_object_size_in_memory 5000 KB memory_replacement_policy heap GDSF cache_replacement_policy heap LFUDA cache_dir aufs /var/squid/cache 429000 16 256 minimum_object_size 0 KB maximum_object_size 5242880 KB offline_mode offcache_swap_low 90 cache_swap_high 95 # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 # No redirector configured #Remote proxies # Setup some default acls acl allsrc src all acl localhost src 127.0.0.1/32 acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 1025-65535 acl sslports port 443 563 acl manager proto cache_object acl purge method PURGE acl connect method CONNECT http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !safeports http_access deny CONNECT !sslports # Always allow localhost connections http_access allow localhost quick_abort_min -1 KB quick_abort_max 0 KB request_body_max_size 0 KB delay_pools 1 delay_class 1 2 delay_parameters 1 -1/-1 -1/-1 delay_initial_bucket_level 100 delay_access 1 allow allsrc # Reverse Proxy settings deny_info TCP_RESET allsrc # Package Integration # Custom options # Setup allowed acls # Allow local network(s) on interface(s) http_access allow localnet # Default block all to be sure http_access deny allsrc
can anyone suggest something else to try? i have reinstalled again and restored from backup with the same results.
-
al_reidy,
I reverted the binaries, I'll rebuild my compile machine as squid3 is getting segmentation fault on dns module.
att,
Marcello Coutinho -
Edit this parameters on GUI (Traffic Mngt) - scroll down the page:
quick_abort_min 102400 KB quick_abort_max 102400 KB quick_abort_pct 60
Further try to search for "HIT" or "REFRESH" on access.log