tinyproxy

Install
CopyCopydebian system: apt-get install tinyproxy
centos system: 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

Proxy server, configuration
Edit configuration /etc/tinyproxy/tinyproxy.conf:
(1) Find the Allow 127.0.0.1 line, and add # in front to comment it out.
(2) Port 8888: The default open port is 8888 (you can change it yourself)
CopyCopy execute /etc/init.d/tinyproxy restart to make the configuration take effect, or execute systemctl restart tinyproxy.service
(3) If you want the proxy to start automatically every time you boot You can use the following command:

systemctl enable tinyproxy.service

On the client computer, use
other computers, under the linux terminal, you can directly enter the following commands to perform proxy:
export http_proxy=http://xxxxxx:xxxx
export https_proxy=http://xxxxxx:xxxx
unset
http_proxy https_proxy.

At this time, the client's computer can access the Internet through a proxy server.

Guess you like

Origin blog.csdn.net/weixin_47287832/article/details/129413957