Telegram- 👇 😉
-
. WIKIMERIONET
Merion Mertics , ,

CRM

5

, (. Service - ). , Internet . . , .

CentOS 7 + Squid.

. , CentOS7 22 ssh .


, .

yum update

, , Firewall, , , squid . 3128, .

Firewall:

firewall-cmd --permanent --add-port=3128/tcp

:

firewall-cmd --reload

Squid. :

yum install squid -y

:

nano /etc/squid/squid.conf

, , acl localnet src 217.33.25.0/24

, http_access allow all

, . : http_access deny all

:

cache_dir ufs /var/spool/squid 8192 32 256

ufs - squid squid, , 8192 - , 32 , 256 .

. : squid -z - , : systemctl start squid. : systemctl enable squid

https . squid systemctl restart squid

squid service status squid, service stop squid.

, , squid squid -k reconfigure. . . 20-30 , . : , → → → → " ", "-", , FQDN 3128.

! FQDN DNS , . , nslookup FQDN, ip , .

, 100+. , -.

, WPAD web .

web :

yum install httpd -y

:

cd /var/www/html

touch wpad.dat , :

 Squid  CentOS7

java return "PROXY FQDN:3128"; , . ! . DHCP. , DNS, . DHCP , 252, url . , .

:

systemctl start httpd  systemctl enable httpd

DHCP :

DHCP . -Set predefined Option. 252 - -WPAD, 252 - String, Web Proxy WPAD.

String URL . , \ .