Transparent agent of squid agent

Source: Internet
Author: User

Two Transparent proxy

1. detect If squid is installed

2. no installation, install with yum

3. automatically run squid service at the 3,5 level

4. Modify squid Master profile /etc/squid/squid.conf

5 Add iptables rule to redirect Internal http request to 3128 Port

A. starting the iptables service

#/etc/init.d/iptables Start

B. clearing existing iptables filter table rules

# iptables-f

C. Save iptables settings

#/etc/init.d/iptables Save

D. View Nat table Settings

# iptables-t Nat-l-N

E. adding a rule to the Nat table

# iptables-t Nat-i prerouting-i eth0-s 192.168.1.0/24-p tcp--dport 80-j REDIRECT--to-port 3128

F. saving

G. setting up iptables Boot

# chkconfig Iptables on

6 Modifying the client IP address

Set the default gateway to the intranet IP address of the squid server .

7 in the browser, cancel the proxy settings

8 Testing

Transparent agent of squid agent

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.