tinyproxy

安装
CopyCopydebian系:apt-get install tinyproxy
centos系:yum install tinyproxy

systemctl status tinyproxy.service
 tinyproxy.service - Tinyproxy lightweight HTTP Proxy
   Loaded: loaded (/lib/systemd/system/tinyproxy.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-08-31 10:19:53 CST; 11s ago
     Docs: man:tinyproxy(8)
           man:tinyproxy.conf(5)
 Main PID: 15247 (tinyproxy)
    Tasks: 11 (limit: 4915)
   Memory: 3.3M
   CGroup: /system.slice/tinyproxy.service
           ├─15247 /usr/bin/tinyproxy
           ├─15259 /usr/bin/tinyproxy
           ├─15261 /usr/bin/tinyproxy
           ├─15262 /usr/bin/tinyproxy
           ├─15263 /usr/bin/tinyproxy
           ├─15265 /usr/bin/tinyproxy
           ├─15268 /usr/bin/tinyproxy
           ├─15269 /usr/bin/tinyproxy
           ├─15270 /usr/bin/tinyproxy
           ├─15271 /usr/bin/tinyproxy
           └─15273 /usr/bin/tinyproxy

代理服务器,配置
编辑配置/etc/tinyproxy/tinyproxy.conf:
(1)找到Allow 127.0.0.1行,前面加上#号将其注释掉。
(2)Port 8888:默认开放的端口为8888(可自行更改)
CopyCopy执行/etc/init.d/tinyproxy restart使配置生效,或者执行systemctl restart tinyproxy.service
(3)如果希望每次开机代理自动启动可以使用一下命令:

systemctl enable tinyproxy.service

客户端电脑,使用
其他电脑上,在linux终端下,可直接输入以下指令,进行代理:
export http_proxy=http://xxxxxx:xxxx
export https_proxy=http://xxxxxx:xxxx
取消代理
unset http_proxy https_proxy。

这个时候客户端的电脑上网,可以通过代理服务器进行访问。

猜你喜欢

转载自blog.csdn.net/weixin_47287832/article/details/129413957