How to Install Squid on CentOS 7 / RHEL 7 ( Easy Config )

[root@prox ~]# 
yum -y install squid
[root@prox ~]# 
vi /etc/squid/squid.conf
acl CONNECT method CONNECT
# line 26: add ( define new ACL )

acl lan src 10.0.0.0/24
http_access allow localhost
# line 54: add ( allow defined ACL above )

http_access allow lan
# line 59: change

http_port 
8080
# add follows to the end

request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
# specify hostname

visible_hostname prox.server.world
# not display IP address

forwarded_for off
[root@prox ~]# 
systemctl start squid 

[root@prox ~]# 
systemctl enable squid 



Source: http://www.server-world.info/


آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند

مقالات مربوطه

How to Install Bind (Named) on CentOS 7 / RHEL 7

The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services,...

How To Setup Squid Authenticate with Radius on CentOS 6.4

n this how to, I assume you already have a setup running FreeRADIUS server. I am going to share...

Install and Setup FreeRADIUS on CentOS 5, CentOS 6 and Ubuntu 11.10

A simple tutorial to setup and configure FreeRADIUS on CentOS 5 and Ubuntu 10.04.   Just...

How to Install Squid on CentOS 7 / RHEL 7

now I will install squid RPM using yum, yum is a famous package manager for RPM based Operating...

How to Install OpenLiteSpeed ( LSWS ) on CentOS 7 / RHEL 7 /CentOS 6 / RHEL 6 /CentOS 5 / RHEL 5

CentOS 5, 6 & 7 Add the Repository Use the following commands to add our CentOS...