当前位置:网站首页>你好!正向代理!
你好!正向代理!
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/以上就做好正向网络代理啦!
波哥会利用业余时间多出更多更好的作品!
边栏推荐
- Idea remote debugger
- Windows and Linux regularly backup MySQL database
- Using foreach to loop two-dimensional array
- Index summary of blog articles -- Industrial Internet
- Redis (IV) redis association table caching
- Call API interface to generate QR code of wechat applet with different colors
- Introduction to sysbench Basics
- 【在线仿真】Arduino UNO PWM 控制直流电机转速
- Is it safe to use flush mobile phones to speculate in stocks? How to fry stocks with flush
- Opencv image processing - grayscale processing
猜你喜欢
![Installer MySQL sous Linux [détails]](/img/38/77be56c3ef3923ce4c4e5df4a96f41.png)
Installer MySQL sous Linux [détails]

36 qtextedit control input multiline text

3行3列整形二维数组,求对角之和

MySQL第十三次作业-事务管理

Little red book - Summary of internal sales spike project

Win10 start FTP service and set login authentication

Reshape a two-dimensional array with 3 rows and 3 columns to find the sum of the diagonals

Nuxt. JS - learning notes

Linux下安裝Mysql【詳細】

Flutter与原生通信(上)
随机推荐
MySQL第十一作業-視圖的應用
How to start the learning journey of webrtc native cross platform development?
Pit record_ TreeSet custom sorting results in less data loss
CentOS安装Redis多主多从集群
Expand and collapse too high div
Using reflection to export entity data to excel
Solution to the problem of compilation error due to repeated third-party package names
Global and Chinese markets in hair conditioner 2022-2028: Research Report on technology, participants, trends, market size and share
AdaptiveAvgPool2D 不支持 onnx 导出,自定义一个类代替 AdaptiveAvgPool2D
MySQL job 11 - application de la vue
MySQL第十次作业-视图
Jasperreports - print PDF (project tool)
June training (the 26th day) - collective search
Searchview click failure
[echart] i. how to learn echart and its characteristic document reading notes
3行3列整形二维数组,求对角之和
Procedure Call Standard
Query online users and forced withdrawal users based on oauth2
Opencv image processing - grayscale processing
搜索引擎高级搜索方法记录