cmdref.net - Cheat Sheet and Example

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

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:proxy:squid:index.html



Middleware

Squid

Squid Commands

squid -k parse Check Configuration


Squid ACL Samples

Permitlist ACL With Source and Destination

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

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

http_access deny all



/etc/squid/acl/whitelist.txt

.test.com
.example.com


Denylist ACL Sample

acl Denylist1 dstdomain "/etc/squid/denylist1"
http_access deny Denylist1


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: 2022/07/20 by admin

Page Tools