{"id":5202,"date":"2015-09-21T17:18:37","date_gmt":"2015-09-21T09:18:37","guid":{"rendered":"http:\/\/rmohan.com\/?p=5202"},"modified":"2015-09-21T17:18:37","modified_gmt":"2015-09-21T09:18:37","slug":"centos-6-7-squid-proxy-server-settings","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5202","title":{"rendered":"CentOS 6.7 Squid proxy server settings"},"content":{"rendered":"<p>Since recently the company has been in search of software copyright, CCProxy proxy server also has been used for additional advertising in the jump.<\/p>\n<p>You can see from the chart<\/p>\n<p>WAN card is eth1, LAN card is eth0<\/p>\n<p>We use yum to install the Squid:<\/p>\n<p>[Root @ PROXY ~] # yum -y install squid<\/p>\n<p>Backup squid configuration file to prevent because of configuration errors<\/p>\n<p>[Root @ PROXY ~] # cp \/etc\/squid\/squid.conf \/etc\/squid\/squid.conf_bak<\/p>\n<p>Configuration squid.conf<\/p>\n<p>turn up<\/p>\n<p>http_port 3128 modified http_port 192.168.1.10:3128<\/p>\n<p>And add<\/p>\n<p>visible_hostname squid<\/p>\n<p>acl innet src 192.168.100.0\/24<\/p>\n<p>http_access allow innet # This line is 192.168.100.0 network allows user agents<\/p>\n<p>http_access deny all # This line is to deny all agents<\/p>\n<p>Here is initialized to run squid -z<\/p>\n<p>[Root @ PROXY ~] # squid -z<\/p>\n<p>2015\/05\/29 13: 41: 43 | Creating Swap Directories<\/p>\n<p>Start the squid proxy server<\/p>\n<p>[Root @ PROXY ~] # service squid start<\/p>\n<p>And squid arranged boot<\/p>\n<p>[Root @ PROXY ~] # chkconfig &#8211;level 35 squid on<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since recently the company has been in search of software copyright, CCProxy proxy server also has been used for additional advertising in the jump.<\/p>\n<p>You can see from the chart<\/p>\n<p>WAN card is eth1, LAN card is eth0<\/p>\n<p>We use yum to install the Squid:<\/p>\n<p>[Root @ PROXY ~] # yum -y install squid<\/p>\n<p>Backup [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5202"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5202"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5202\/revisions"}],"predecessor-version":[{"id":5203,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5202\/revisions\/5203"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}