April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

CentOS 6.7 Squid proxy server settings

Since recently the company has been in search of software copyright, CCProxy proxy server also has been used for additional advertising in the jump.

You can see from the chart

WAN card is eth1, LAN card is eth0

We use yum to install the Squid:

[Root @ PROXY ~] # yum -y install squid

Backup squid configuration file to prevent because of configuration errors

[Root @ PROXY ~] # cp /etc/squid/squid.conf /etc/squid/squid.conf_bak

Configuration squid.conf

turn up

http_port 3128 modified http_port 192.168.1.10:3128

And add

visible_hostname squid

acl innet src 192.168.100.0/24

http_access allow innet # This line is 192.168.100.0 network allows user agents

http_access deny all # This line is to deny all agents

Here is initialized to run squid -z

[Root @ PROXY ~] # squid -z

2015/05/29 13: 41: 43 | Creating Swap Directories

Start the squid proxy server

[Root @ PROXY ~] # service squid start

And squid arranged boot

[Root @ PROXY ~] # chkconfig –level 35 squid on

 

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>