User Tools

Site Tools


авторизация_доступа_к_ресурсам_через_squid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
авторизация_доступа_к_ресурсам_через_squid [2023/03/18 20:20]
val [Авторизация на основе имени пользователя]
авторизация_доступа_к_ресурсам_через_squid [2026/09/17 15:50] (current)
val [Debian/Ubuntu]
Line 6: Line 6:
 ==== Debian/​Ubuntu ==== ==== Debian/​Ubuntu ====
 <​code>​ <​code>​
-gate# cat /etc/squid/deny_hosts.txt+gate# cat /etc/squid/deny_urls.txt
 </​code><​code>​ </​code><​code>​
 ok\.ru ok\.ru
Line 13: Line 13:
  
 <​code>​ <​code>​
-gate# cat /etc/squid/permit_hosts.txt+gate# cat /etc/squid/permit_domains.txt
 </​code><​code>​ </​code><​code>​
-microsoft\.com+.debian.org 
 +.linux.org.ru
 </​code>​ </​code>​
  
Line 28: Line 29:
 acl big_boss src 192.168.113.100 192.168.100+X.101 acl big_boss src 192.168.113.100 192.168.100+X.101
  
-acl deny_hosts ​url_regex "/​etc/​squid/​deny_hosts.txt"​ +acl deny_urls ​url_regex "/​etc/​squid/​deny_urls.txt"​ 
-acl permit_hosts url_regex ​"/​etc/​squid/​permit_hosts.txt"+acl permit_domains dstdomain ​"/​etc/​squid/​permit_domains.txt"
  
 # order is important # order is important
 http_access allow big_boss http_access allow big_boss
-http_access allow our_pppoe_networks !deny_hosts +http_access allow our_pppoe_networks !deny_urls 
-http_access allow our_networks ​permit_hosts+http_access allow our_networks ​permit_domains
 ... ...
 </​code><​code>​ </​code><​code>​
авторизация_доступа_к_ресурсам_через_squid.txt · Last modified: 2026/09/17 15:50 by val