Squid im SMP Mode


Download squid 32bit / squid 64bit und auf den IPFire bringen.


Squid Cache: Version 4.6
Service Name: squid

This binary uses OpenSSL 1.1.1b 26 Feb 2019. For legal restrictions on distribution see https://www.openssl.org/source/license.html

configure options: ‚–prefix=/usr‘ ‚–sysconfdir=/etc/squid‘ ‚–datadir=/usr/lib/squid‘ ‚–mandir=/usr/share/man‘ ‚–libexecdir=/usr/lib/squid‘ ‚–localstatedir=/var‘ ‚–disable-icmp‘ ‚–disable-wccp‘ ‚–disable-wccpv2‘ ‚–disable-kqueue‘ ‚–disable-esi‘ ‚–disable-arch-native‘ ‚–enable-ipv6‘ ‚–enable-ssl‘ ‚–enable-ssl-crtd‘ ‚–enable-poll‘ ‚–enable-ident-lookups‘ ‚–enable-storeio=aufs,diskd,ufs,rock‚ ‚–enable-underscores‘ ‚–enable-http-violations‘ ‚–enable-removal-policies=heap,lru‘ ‚–enable-delay-pools‘ ‚–enable-linux-netfilter‘ ‚–enable-snmp‘ ‚–enable-auth‘ ‚–enable-auth-basic‘ ‚–enable-auth-digest‘ ‚–enable-auth-negotiate‘ ‚–enable-auth-ntlm‘ ‚–enable-log-daemon-helpers‘ ‚–enable-url-rewrite-helpers‘ ‚–enable-build-info‘ ‚–enable-eui‘ ‚–enable-async-io=16‘ ‚–enable-unlinkd‘ ‚–enable-internal-dns‘ ‚–enable-epoll‘ ‚–enable-select‘ ‚–enable-cache-digests‘ ‚–enable-forw-via-db‘ ‚–enable-htcp‘ ‚–enable-kill-parent-hack‘ ‚–enable-icap-client‘ ‚–enable-zph-qos‘ ‚–with-openssl‘ ‚–with-dl‘ ‚–with-filedescriptors=1048576‘ ‚–with-large-files‘ ‚–without-gnutls‘ ‚–without-netfilter-conntrack‘ ‚CFLAGS=-O2 -pipe -Wall -fexceptions -fPIC -march=i586 -mindirect-branch=thunk -mfunction-return=thunk -mtune=generic -fomit-frame-pointer -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong‘ ‚CXXFLAGS=-O2 -pipe -Wall -fexceptions -fPIC -march=i586 -mindirect-branch=thunk -mfunction-return=thunk -mtune=generic -fomit-frame-pointer -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Wno-error=format-truncation‘


Verzeichnis /var/run/squid anlegen:


mkdir -p /var/run/squid
chown squid:squid /var/run/squid


squid.conf zum testen anpassen:


maximum_object_size 128 KB
minimum_object_size 0 KB

## Symmetric multi-processing (SMP) – balance on multiple CPUs / cores
## Example: dual-core set-up using process-pinning to delegate two squid
## processes to each CPU
workers 2
cpu_affinity_map process_numbers=1,2 cores=1,2

##Rock on-disk storage used by SMP configuration.
cache_dir rock /var/log/cache/1 256 max-size=32000
cache_dir rock /var/log/cache/2 256 max-size=32000

## AUFS on-disk storage.
cache_dir aufs /var/log/cache 512 16 256


/etc/init.d/squid angepasst, damit /var/run/squid beim starten von Squid erstellt wird.



/srv/web/ipfire/cgi-bin/proxy.cgi quick & dirty.



/srv/web/ipfire/cgi-bin/proxy.cgi cache_dir aufs deaktiviert.



squid.conf



cache.log


2019/05/12 13:47:48| Created PID file (/var/run/squid.pid)
2019/05/12 13:47:49 kid1| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:49 kid1| Creating missing swap directories
2019/05/12 13:47:49 kid2| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:49 kid2| Creating missing swap directories
2019/05/12 13:47:49 kid5| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:49 kid5| Creating missing swap directories
2019/05/12 13:47:49 kid4| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:49 kid4| Creating missing swap directories
2019/05/12 13:47:49 kid4| Skipping existing Rock db: /var/log/cache/cpu2/rock
2019/05/12 13:47:49 kid3| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:49 kid3| Creating missing swap directories
2019/05/12 13:47:49 kid3| Skipping existing Rock db: /var/log/cache/cpu1/rock
2019/05/12 13:47:49| Removing PID file (/var/run/squid.pid)
2019/05/12 13:47:49| Created PID file (/var/run/squid.pid)
2019/05/12 13:47:50 kid5| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:50 kid5| Starting Squid Cache version 4.6 for i586-pc-linux-gnu…
2019/05/12 13:47:50 kid5| Service Name: squid
2019/05/12 13:47:50 kid5| Process ID 14561
2019/05/12 13:47:50 kid5| Process Roles: coordinator
2019/05/12 13:47:50 kid5| With 16384 file descriptors available
2019/05/12 13:47:50 kid5| Initializing IP Cache…
2019/05/12 13:47:50 kid5| DNS Socket created at 0.0.0.0, FD 5
2019/05/12 13:47:50 kid3| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:50 kid3| Starting Squid Cache version 4.6 for i586-pc-linux-gnu…
2019/05/12 13:47:50 kid3| Service Name: squid
2019/05/12 13:47:50 kid3| Process ID 14563
2019/05/12 13:47:50 kid3| Process Roles: disker
2019/05/12 13:47:50 kid3| With 16384 file descriptors available
2019/05/12 13:47:50 kid3| Initializing IP Cache…
2019/05/12 13:47:50 kid5| Adding domain intern.mynet.net from /etc/resolv.conf
2019/05/12 13:47:50 kid3| DNS Socket created at 0.0.0.0, FD 5
2019/05/12 13:47:50 kid5| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2019/05/12 13:47:50 kid5| helperOpenServers: Starting 5/32 ’security_file_certgen‘ processes
2019/05/12 13:47:50 kid3| Adding domain intern.mynet.net from /etc/resolv.conf
2019/05/12 13:47:50 kid3| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2019/05/12 13:47:50 kid3| helperOpenServers: Starting 5/32 ’security_file_certgen‘ processes
2019/05/12 13:47:50 kid4| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:50 kid4| Starting Squid Cache version 4.6 for i586-pc-linux-gnu…
2019/05/12 13:47:50 kid4| Service Name: squid
2019/05/12 13:47:50 kid4| Process ID 14562
2019/05/12 13:47:50 kid4| Process Roles: disker
2019/05/12 13:47:50 kid4| With 16384 file descriptors available
2019/05/12 13:47:50 kid4| Initializing IP Cache…
2019/05/12 13:47:50 kid4| DNS Socket created at 0.0.0.0, FD 5
2019/05/12 13:47:50 kid4| Adding domain intern.mynet.net from /etc/resolv.conf
2019/05/12 13:47:50 kid4| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2019/05/12 13:47:50 kid4| helperOpenServers: Starting 5/32 ’security_file_certgen‘ processes
2019/05/12 13:47:50 kid1| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:50 kid1| Starting Squid Cache version 4.6 for i586-pc-linux-gnu…
2019/05/12 13:47:50 kid1| Service Name: squid
2019/05/12 13:47:50 kid1| Process ID 14565
2019/05/12 13:47:50 kid1| Process Roles: worker
2019/05/12 13:47:50 kid1| With 16384 file descriptors available
2019/05/12 13:47:50 kid1| Initializing IP Cache…
2019/05/12 13:47:50 kid1| DNS Socket created at 0.0.0.0, FD 5
2019/05/12 13:47:50 kid1| Adding domain intern.mynet.net from /etc/resolv.conf
2019/05/12 13:47:50 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2019/05/12 13:47:50 kid1| helperOpenServers: Starting 5/32 ’security_file_certgen‘ processes
2019/05/12 13:47:50 kid2| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:50 kid2| Starting Squid Cache version 4.6 for i586-pc-linux-gnu…
2019/05/12 13:47:50 kid2| Service Name: squid
2019/05/12 13:47:50 kid2| Process ID 14564
2019/05/12 13:47:50 kid2| Process Roles: worker
2019/05/12 13:47:50 kid2| With 16384 file descriptors available
2019/05/12 13:47:50 kid5| helperOpenServers: Starting 2/2 ‚redirect_wrapper‘ processes
2019/05/12 13:47:50 kid3| helperOpenServers: Starting 2/2 ‚redirect_wrapper‘ processes
2019/05/12 13:47:50 kid2| Initializing IP Cache…
2019/05/12 13:47:50 kid2| DNS Socket created at 0.0.0.0, FD 5
2019/05/12 13:47:50 kid2| Adding domain intern.mynet.net from /etc/resolv.conf
2019/05/12 13:47:50 kid2| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2019/05/12 13:47:50 kid2| helperOpenServers: Starting 5/32 ’security_file_certgen‘ processes
2019/05/12 13:47:51 kid4| helperOpenServers: Starting 2/2 ‚redirect_wrapper‘ processes
2019/05/12 13:47:51 kid5| Logfile: opening log stdio:/var/log/squid/access.log
2019/05/12 13:47:51 kid5| Logfile: opening log stdio:/var/log/squid/user_agent.log
2019/05/12 13:47:51 kid1| helperOpenServers: Starting 2/2 ‚redirect_wrapper‘ processes
2019/05/12 13:47:51 kid3| Logfile: opening log stdio:/var/log/squid/access.log
2019/05/12 13:47:51 kid3| Logfile: opening log stdio:/var/log/squid/user_agent.log
2019/05/12 13:47:51 kid4| Logfile: opening log stdio:/var/log/squid/access.log
2019/05/12 13:47:51 kid4| Logfile: opening log stdio:/var/log/squid/user_agent.log
2019/05/12 13:47:51 kid1| Logfile: opening log stdio:/var/log/squid/access.log
2019/05/12 13:47:51 kid1| Logfile: opening log stdio:/var/log/squid/user_agent.log
2019/05/12 13:47:51 kid5| Store logging disabled
2019/05/12 13:47:51 kid5| Swap maxSize 0 + 524288 KB, estimated 40329 objects
2019/05/12 13:47:51 kid5| Target number of buckets: 2016
2019/05/12 13:47:51 kid5| Using 8192 Store buckets
2019/05/12 13:47:51 kid5| Max Mem size: 524288 KB [shared]
2019/05/12 13:47:51 kid5| Max Swap size: 0 KB
2019/05/12 13:47:51 kid5| Using Least Load store dir selection
2019/05/12 13:47:51 kid5| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:51 kid3| Store logging disabled
2019/05/12 13:47:51 kid3| Swap maxSize 1572864 + 524288 KB, estimated 161319 objects
2019/05/12 13:47:51 kid3| Target number of buckets: 8065
2019/05/12 13:47:51 kid3| Using 8192 Store buckets
2019/05/12 13:47:51 kid3| Max Mem size: 524288 KB [shared]
2019/05/12 13:47:51 kid3| Max Swap size: 1572864 KB
2019/05/12 13:47:51 kid3| Using Least Load store dir selection
2019/05/12 13:47:51 kid3| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:51 kid4| Store logging disabled
2019/05/12 13:47:51 kid4| Swap maxSize 1572864 + 524288 KB, estimated 161319 objects
2019/05/12 13:47:51 kid4| Target number of buckets: 8065
2019/05/12 13:47:51 kid4| Using 8192 Store buckets
2019/05/12 13:47:51 kid4| Max Mem size: 524288 KB [shared]
2019/05/12 13:47:51 kid4| Max Swap size: 1572864 KB
2019/05/12 13:47:51 kid4| Using Least Load store dir selection
2019/05/12 13:47:51 kid1| Store logging disabled
2019/05/12 13:47:51 kid4| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:51 kid1| Swap maxSize 0 + 524288 KB, estimated 40329 objects
2019/05/12 13:47:51 kid1| Target number of buckets: 2016
2019/05/12 13:47:51 kid1| Using 8192 Store buckets
2019/05/12 13:47:51 kid1| Max Mem size: 524288 KB [shared]
2019/05/12 13:47:51 kid1| Max Swap size: 0 KB
2019/05/12 13:47:51 kid2| helperOpenServers: Starting 2/2 ‚redirect_wrapper‘ processes
2019/05/12 13:47:51 kid1| Using Least Load store dir selection
2019/05/12 13:47:51 kid5| Finished loading MIME types and icons.
2019/05/12 13:47:51 kid1| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:51 kid5| Squid plugin modules loaded: 0
2019/05/12 13:47:51 kid5| Adaptation support is off.
2019/05/12 13:47:52 kid3| Finished loading MIME types and icons.
2019/05/12 13:47:52 kid3| Squid plugin modules loaded: 0
2019/05/12 13:47:52 kid3| Adaptation support is off.
2019/05/12 13:47:52 kid3| Loading cache_dir #0 from /var/log/cache/cpu1/rock
2019/05/12 13:47:52 kid4| Finished loading MIME types and icons.
2019/05/12 13:47:52 kid4| Squid plugin modules loaded: 0
2019/05/12 13:47:52 kid4| Adaptation support is off.
2019/05/12 13:47:52 kid4| Loading cache_dir #1 from /var/log/cache/cpu2/rock
2019/05/12 13:47:52 kid2| Logfile: opening log stdio:/var/log/squid/access.log
2019/05/12 13:47:52 kid2| Logfile: opening log stdio:/var/log/squid/user_agent.log
2019/05/12 13:47:52 kid1| Finished loading MIME types and icons.
2019/05/12 13:47:52 kid1| HTCP Disabled.
2019/05/12 13:47:52 kid1| Squid plugin modules loaded: 0
2019/05/12 13:47:52 kid1| Adaptation support is off.
2019/05/12 13:47:52 kid1| Accepting HTTP Socket connections at local=192.168.1.110:800 remote=[::] FD 14 flags=1
2019/05/12 13:47:52 kid1| Accepting NAT intercepted HTTP Socket connections at local=192.168.1.110:3128 remote=[::] FD 16 flags=33
2019/05/12 13:47:52 kid1| Accepting NAT intercepted SSL bumped HTTPS Socket connections at local=192.168.1.110:3129 remote=[::] FD 18 flags=33
2019/05/12 13:47:52 kid1| Accepting HTTP Socket connections at local=127.0.0.1:3128 remote=[::] FD 22 flags=1
2019/05/12 13:47:52 kid1| Accepting HTTP Socket connections at local=127.0.0.1:800 remote=[::] FD 24 flags=1
2019/05/12 13:47:52 kid1| Finished rebuilding storage from disk.
2019/05/12 13:47:52 kid1| 0 Entries scanned
2019/05/12 13:47:52 kid1| 0 Invalid entries.
2019/05/12 13:47:52 kid1| 0 With invalid flags.
2019/05/12 13:47:52 kid1| 0 Objects loaded.
2019/05/12 13:47:52 kid1| 0 Objects expired.
2019/05/12 13:47:52 kid1| 0 Objects cancelled.
2019/05/12 13:47:52 kid1| 0 Duplicate URLs purged.
2019/05/12 13:47:52 kid1| 0 Swapfile clashes avoided.
2019/05/12 13:47:52 kid1| Took 0.66 seconds ( 0.00 objects/sec).
2019/05/12 13:47:52 kid1| Beginning Validation Procedure
2019/05/12 13:47:52 kid1| Completed Validation Procedure
2019/05/12 13:47:52 kid1| Validated 0 Entries
2019/05/12 13:47:52 kid1| store_swap_size = 0.00 KB
2019/05/12 13:47:52 kid1| storeLateRelease: released 0 objects
2019/05/12 13:47:52 kid2| Store logging disabled
2019/05/12 13:47:52 kid2| Swap maxSize 0 + 524288 KB, estimated 40329 objects
2019/05/12 13:47:52 kid2| Target number of buckets: 2016
2019/05/12 13:47:52 kid2| Using 8192 Store buckets
2019/05/12 13:47:52 kid2| Max Mem size: 524288 KB [shared]
2019/05/12 13:47:52 kid2| Max Swap size: 0 KB
2019/05/12 13:47:52 kid2| Using Least Load store dir selection
2019/05/12 13:47:52 kid2| Current Directory is /srv/web/ipfire/cgi-bin
2019/05/12 13:47:53 kid3| Store rebuilding is 1.02% complete
2019/05/12 13:47:53 kid4| Store rebuilding is 1.02% complete
2019/05/12 13:47:53 kid2| Finished loading MIME types and icons.
2019/05/12 13:47:53 kid2| HTCP Disabled.
2019/05/12 13:47:53 kid2| Squid plugin modules loaded: 0
2019/05/12 13:47:53 kid2| Adaptation support is off.
2019/05/12 13:47:53 kid2| Finished rebuilding storage from disk.
2019/05/12 13:47:53 kid2| 0 Entries scanned
2019/05/12 13:47:53 kid2| 0 Invalid entries.
2019/05/12 13:47:53 kid2| 0 With invalid flags.
2019/05/12 13:47:53 kid2| 0 Objects loaded.
2019/05/12 13:47:53 kid2| 0 Objects expired.
2019/05/12 13:47:53 kid2| 0 Objects cancelled.
2019/05/12 13:47:53 kid2| 0 Duplicate URLs purged.
2019/05/12 13:47:53 kid2| 0 Swapfile clashes avoided.
2019/05/12 13:47:53 kid2| Took 0.66 seconds ( 0.00 objects/sec).
2019/05/12 13:47:53 kid2| Beginning Validation Procedure
2019/05/12 13:47:53 kid2| Completed Validation Procedure
2019/05/12 13:47:53 kid2| Validated 0 Entries
2019/05/12 13:47:53 kid2| store_swap_size = 0.00 KB
2019/05/12 13:47:53 kid2| Accepting HTTP Socket connections at local=192.168.1.110:800 remote=[::] FD 14 flags=1
2019/05/12 13:47:53 kid2| Accepting NAT intercepted HTTP Socket connections at local=192.168.1.110:3128 remote=[::] FD 16 flags=33
2019/05/12 13:47:53 kid2| Accepting NAT intercepted SSL bumped HTTPS Socket connections at local=192.168.1.110:3129 remote=[::] FD 18 flags=33
2019/05/12 13:47:53 kid2| Accepting HTTP Socket connections at local=127.0.0.1:3128 remote=[::] FD 22 flags=1
2019/05/12 13:47:53 kid2| Accepting HTTP Socket connections at local=127.0.0.1:800 remote=[::] FD 24 flags=1
2019/05/12 13:47:53 kid2| storeLateRelease: released 0 objects
2019/05/12 13:48:01 kid4| Finished rebuilding storage from disk.
2019/05/12 13:48:01 kid4| 98303 Entries scanned
2019/05/12 13:48:01 kid4| 0 Invalid entries.
2019/05/12 13:48:01 kid4| 0 With invalid flags.
2019/05/12 13:48:01 kid4| 185 Objects loaded.
2019/05/12 13:48:01 kid4| 0 Objects expired.
2019/05/12 13:48:01 kid4| 0 Objects cancelled.
2019/05/12 13:48:01 kid4| 0 Duplicate URLs purged.
2019/05/12 13:48:01 kid4| 0 Swapfile clashes avoided.
2019/05/12 13:48:01 kid4| Took 10.11 seconds ( 18.29 objects/sec).
2019/05/12 13:48:01 kid4| Beginning Validation Procedure
2019/05/12 13:48:01 kid4| Completed Validation Procedure
2019/05/12 13:48:01 kid4| Validated 0 Entries
2019/05/12 13:48:01 kid4| store_swap_size = 3232.00 KB
2019/05/12 13:48:02 kid3| Finished rebuilding storage from disk.
2019/05/12 13:48:02 kid3| 98303 Entries scanned
2019/05/12 13:48:02 kid3| 0 Invalid entries.
2019/05/12 13:48:02 kid3| 0 With invalid flags.
2019/05/12 13:48:02 kid3| 186 Objects loaded.
2019/05/12 13:48:02 kid3| 0 Objects expired.
2019/05/12 13:48:02 kid3| 0 Objects cancelled.
2019/05/12 13:48:02 kid3| 0 Duplicate URLs purged.
2019/05/12 13:48:02 kid3| 0 Swapfile clashes avoided.
2019/05/12 13:48:02 kid3| Took 10.56 seconds ( 17.61 objects/sec).
2019/05/12 13:48:02 kid3| Beginning Validation Procedure
2019/05/12 13:48:02 kid3| Completed Validation Procedure
2019/05/12 13:48:02 kid3| Validated 0 Entries
2019/05/12 13:48:02 kid3| store_swap_size = 3216.00 KB
2019/05/12 13:48:02 kid4| storeLateRelease: released 0 objects
2019/05/12 13:48:02 kid3| storeLateRelease: released 0 objects