当前位置:网站首页>Hello! Forward proxy!

Hello! Forward proxy!

2022-06-26 11:29:00 BOGO

Generally speaking, the agency is positive , Reverse two

Forward proxy clients , Is the communication requestor .

The reverse proxy agent is the server , Is the receiver of the communication .

Reverse proxy is not mentioned for the time being , Too familiar !nginx、Fikker、Traefik、haproxy You can say fourorfive at will .

Today we mainly talk about forward agency . Let's start this relationship !

Forward proxy is divided into transparent proxy , Anonymous and highly anonymous proxy . This is transparent , anonymous , High anonymity is aimed at the information receiver .

Transparent proxy :

The other server can know that you are using the proxy , And I know your truth IP

http Head for :

REMOTE_ADDR = proxy server IP

HTTP_VIA = proxy server IP

HTTP_X_FORWARDED_FOR = Your truth IP

Anonymous proxy :

The other server can know that you are using the proxy , But I don't know your truth IP

http Head for :

REMOTE_ADDR = proxy server IP

HTTP_VIA = proxy server IP

HTTP_X_FORWARDED_FOR = proxy server IP

High anonymity agent :

The other server can know that you are using the proxy , But I don't know your truth IP

http Head for :

REMOTE_ADDR = proxy server IP

HTTP_VIA = No display

HTTP_X_FORWARDED_FOR = No display

So when we work in the computer room , If there is a machine that can access the Internet , Other machines can't connect to the network. What should we do ? How can other machines use the network to install and deploy ?

Today, I will introduce a forward agent software squid!

Proxy server installation command :

yum install squid -y 
#vim /etc/squid/squid.conf 
acl local src 192.9.191.0/24       // allow 192.9.191.0/24 All clients in the network segment access the proxy server 
systemctl start squid 
systemctl enable squid 

squid The server is turned on by default 3128 port , Pay attention to the firewall !

Client configuration :

export http_proxy=http://192.9.191.30:3128          \\192.9.191.30 It's a proxy server ip
export https_proxy=http://192.9.191.30:3128
echo "export http_proxy=http://192.9.191.30:3128" >>/etc/profile
echo "export https_proxy=http://192.9.191.30:3128" >>/etc/profile
source /etc/profile

If you can't yum, You can try the following configuration :

 edit /etc/yum.conf, Add... At the end :
# Proxy
proxy=http://192.9.191.30:3128/

The above is to do a good job of forward network proxy !

BOGO will use his spare time to produce more and better works !

原网站

版权声明
本文为[BOGO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260950314707.html