cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar









Etc


Reference














.

middleware:proxy:squid:index.html



Middleware

Squid

Squid Commands

squid -k parse Check Configuration


Squid ACL Samples

Whitelist ACL With Source and Destination

acl Clients1 src 192.168.1.0/24
acl Whitelist1 dstdomain "/etc/squid/Whitelist1.txt"
http_access allow Clients1 Whitelist1

acl Clients2 src 192.168.2.0/24
acl Whitelist2 dstdomain "/etc/squid/Whitelist2.txt"
http_access allow Clients2 Whitelist2

http_access deny all



/etc/squid/acl/whitelist.txt

.test.com
.example.com


Backlist ACL Sample

acl blacklist1 dstdomain "/etc/squid/blacklist1"
http_access deny blacklist1


ACL Source Sample

acl host1 src 10.0.0.1
http_access allow host1

acl host2 src 10.0.0.2
http_access allow host2
acl servers src 10.0.0.1 10.0.0.2
http_access allow servers


Squid Tips

Squid Log Format

logformat squid %{%Y/%m/%d %H:%M:%S}tl %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt



middleware/proxy/squid/index.html.txt ยท Last modified: 2021/01/08 by admin

Page Tools