搭建服务器正向代理

使用Squid搭建代理服务器
1、安装Squid
yum install squid
2、配置Squid
编辑配置文件 /etc/squid/squid.conf,根据需要进行设置,例如设置监听端口、允许的客户端IP等
3、启动Squid服务
systemctl start squid
systemctl enable squid
4、配置客户端以使用代理
你需要在客户端的网络设置中指定代理服务器的IP地址和端口。
以下是一个基本的Squid配置示例,它允许所有用户使用代理,并监听默认的HTTP端口3128:

点击查看代码
# Squid normally listens to port 3128
http_port 3128
 
# Uncomment and adjust these values to control access to the cache
# http_access allow all
 
# Leave these uncommented for transparent mode
# coredump_dir /var/spool/squid
# minimum_object_size 0 KB
# maximum_object_size 4096 KB
# memory_pools on
# memory_pools_limit 100 MB

5、添加多用户
htpasswd -c /etc/squid/passwd user1 111111

本文作者:fastKapi

本文链接:https://www.cnblogs.com/qqkk/p/18206171

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   fastKapi  阅读(258)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
🔑
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.