Настройка Squid для начинающих. Как настроить на Squid прокси-сервер

Squid — , - . , . Linux , Unix, Windows. — . ? ?

Squid

Squid? -, -. . Squid , . , . - Squid - .

Squid




Squid Unix-. Squid Windows . , , Unix, . HTTP, FTP, SSL, . Squid DNS-. Squid-, , , , . , Squid — .





Squid

Squid ? , , . - , , . Squid . .

Squid

, , . . — , , DNS. , , . DNS.

Squid . Linux: $ sudo apt-get install squid.

Squid




Squid Windows, . , — Microsoft.









Squid Windows — , . squid-cache.org , .bat, - Windows . . Squid . . , Squid .

- .conf. , Squid.

Squid? Windows — , - .

Squid Ubuntu




Linux . , , , Squid, — Windows, squid.conf. («»), .

, , Squid, . . squid.conf http_port, http_access. , , ACL. http_port , — Squid . , , http_access, , , ( — , , ACL).

? .

, , 192.168.0.1 192.168.0.254. ACL- : src 192.168.0.0/24. , http_port 192.168.0.1 ( IP-) .

Squid ( , ), http_access. — («» - , , , , ) allow LocalNet deny all. , Squid .

ACL:

, Squid . .

Squid  Windows




src. IP- , -. src http_access , , , . .

ACL ( ) src ( IP-, ). — ACL ( ) src (IP- ). http_access. http_access allow. , deny all.

Squid , , — dst. IP- , .

, , . ACL ( ) dst (IP- ), — http_access deny ( ).

— dstdomain. , . , , , . : ACL ( ) dstdomain ( ), — http_access deny ( ).

-




. — SitesRegex. -, , mail ( ). ACL SitesRegexMail dstdom_regex mail, ACL SitesRegexComNet dstdom_regex \.com$ ( , ). — http_accesss deny , .

-i. , , , , url_regex, -, .

, ACL NoSwfFromMail url_regex -i mail.*\.swf$ , Flash-. , urlpath_regex. , ACL media urlpath_regex -i \.wma$ \.mp3$.

Squid -. ACL ( ) port ( ), — http_access deny all ( ).

Squid -. , , FTP, : ACL ftpproto proto ftp, — http_access deny ( ) ftpproto.

method , HTTP-. 2 — GET POST, , , . , , mail.ru, , . : ACL sitemailru dstdomain .mail.ru, — ACL methodpost method POST, — http_access deny ( ) methodpost sitemailru.

, Squid. Ubuntu , Windows - , — Squid. - .

, Squid.

?

squid.conf, , etc/squid.

Squid




, , , : , , -, - .

, - . cache_peer. : cache_peer ( - ).

, Squid. cache_mem. , , cache_dir. cache_mem ( ), – cache_dir ( , ). , .

, -. ACL allowed hosts src ( IP- ), ACL localhost src ( ).

SSL, ACL ssl_ports port ( ). CONNECT , , SSL. http_access deny CONNECT! SSL_Ports.

Squid pfSense

- pfSense, . ? .

pfSense. Squid, , SSH-. -. Enable Secure Shell. , System, — Advanced, — Admin Access.

Squid




PuTTY - SSH. , , Squid. -pkg install squid. - pfSense. Squid ( ) , System, Packages, — Available Packages. Squid Stable. . : Proxy Interface: LAN. Transparent Proxy . . Save.

Squid . - , . . -, : , . -, . -, . .

, . , , . Squid .

- — , . , , . refresh_pattern. , refresh_pattern ( — , «» — %, ). , , , , .

, Squid-Proxy, — . : ACL ( ) time (, , ). , «» , . , — M, , T. «», . , , .

— . - — . , delay_class, delay_parameters, delay_access, delay_pools. , .




All Articles