当前位置:网站首页>你好!正向代理!
你好!正向代理!
2022-06-26 09:51:00 【波哥】
代理总体来讲分正向,反向两种
正向代理代理的客户端,就是通讯请求方。
反向代理代理的是服务端,就是通讯接收方。
反向代理暂且不提,太熟了!nginx、Fikker、Traefik、haproxy随随便便能说出四五个。
今天咱们主要聊正向代理。让我们开始这段感情吧!
正向代理分透明代理,匿名和高匿名代理。这个透明,匿名,高匿名是针对信息接收方来讲的。
透明代理:
对方服务器可以知道你使用了代理,并且也知道你的真实IP
http头为:
REMOTE_ADDR = 代理服务器IP
HTTP_VIA = 代理服务器IP
HTTP_X_FORWARDED_FOR = 你的真实IP
匿名代理:
对方服务器可以知道你使用了代理,但不知道你的真实IP
http头为:
REMOTE_ADDR = 代理服务器IP
HTTP_VIA = 代理服务器IP
HTTP_X_FORWARDED_FOR = 代理服务器IP
高匿名代理:
对方服务器可以知道你使用了代理,但不知道你的真实IP
http头为:
REMOTE_ADDR = 代理服务器IP
HTTP_VIA = 不显示
HTTP_X_FORWARDED_FOR = 不显示
那么当我们在机房干活的时候,如果有一台机器能上网,其他机器无法连接网络我们该如何做呢?其他机器该如何利用网络安装部署呢?
今天给大家介绍一个正向代理软件squid!
代理服务器安装命令:
yum install squid -y
#vim /etc/squid/squid.conf
acl local src 192.9.191.0/24 //允许192.9.191.0/24网段内所有客户机访问代理服务器
systemctl start squid
systemctl enable squid squid服务器默认开启了3128端口,注意防火墙放行!
客户端配置:
export http_proxy=http://192.9.191.30:3128 \\192.9.191.30是代理服务器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如果无法yum,可以尝试如下配置:
编辑/etc/yum.conf,在最后加入:
# Proxy
proxy=http://192.9.191.30:3128/以上就做好正向网络代理啦!
波哥会利用业余时间多出更多更好的作品!
边栏推荐
- 【在线仿真】Arduino UNO PWM 控制直流电机转速
- MySQL第八次作业
- 小笔记-简单但够用系列_KVM快速入门
- See how I store integer data in the map < string, string > set
- Redis (IV) redis association table caching
- Global and Chinese market of contemporary lampshade 2022-2028: Research Report on technology, participants, trends, market size and share
- MySQL 11th job - view application
- VS或Qt编译链接过程中出现“无法解析的外部符号”的原因:
- Is it safe to use flush mobile phones to speculate in stocks? How to fry stocks with flush
- 【软件项目管理】期末复习知识点整理
猜你喜欢

看我在Map<String, String>集合中,存入Integer类型数据

Function run time

Servlet learning notes II

The sixth MySQL job - query data - multiple conditions
![Installing MySQL under Linux [details]](/img/38/77be56c3ef3923ce4c4e5df4a96f41.png)
Installing MySQL under Linux [details]

Getting started with postman

Using reflection to export entity data to excel

工程数学概率论统计简明教程第二版复习大纲

Alibaba cloud OSS - object storage service (tool)

How to change the QR code material color of wechat applet
随机推荐
六月集训(第26天) —— 并查集
Renesas electronics launched a complete intelligent sensor solution for Internet of things applications
量化投资学习——经典书籍介绍
Notes - simple but adequate series_ KVM quick start
Based on Zeng Shen's explanation, the line segment tree is studied again one
MySQL第六次作业-查询数据-多条件
ceph运维常用指令
Idea remote debugger
Is it safe to open an account in the school of Finance and business?
MySQL Chapter 4 Summary
Record the handling of oom problems caused by too many threads at one time
MySQL第五章总结
MySQL 10th job - View
Procedure Call Standard
哪些PHP开源作品值得关注
AdaptiveAvgPool2D 不支持 onnx 导出,自定义一个类代替 AdaptiveAvgPool2D
CentOS安装Redis多主多从集群
MySQL backup and restore command
Global and Chinese market of recycled paper 2022-2028: Research Report on technology, participants, trends, market size and share
Blog post index summary --c #