Deploy Tiny Proxy Server on CentOS 7

1 Introduction

TinyProxy and Squid are both excellent proxy software.

TinyProxy is a lightweight open source HTTP/HTTPS proxy daemon developed for POSIX systems.
TinyProxy is designed from the bottom to ensure that the volume is still small at high speed. It is very suitable for scenarios that require complete HTTP proxy features, but the system resources are not enough to run large-scale proxies, such as embedded deployments.
TinyProxy is distributed under the GNU GPL (version 2 and above).

  • -tinyproxy.github.io

TinyProxy is relatively small. Although it is not as feature-rich as Squid, it is small and simple, and can also meet the needs of ordinary users. Squid is an excellent proxy software with rich ACL management functions. Although Squid is very powerful, the configuration is cumbersome.

It is recommended to use yum to install directly. This method is simple and direct, and the service script is automatically configured.

2, install EPEL source

EPEL is a software source of yum, which contains a lot of software that is not in the basic source. We can install it when we need to use EPEL.

EPEL, short for Extra Packages for Enterprise Linux, is a set of high-quality extra packages for enterprise Linux, including but not limited to Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL).
Bash
1
2
yum - y install epel-release
yum - y install tinyproxy

3, configure the proxy

edit file

/etc/tinyproxy/tinyproxy.conf

fill in:

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

save, execute

Bash
1
2
systemctl start tinyproxy.service
systemctl enable tinyproxy.service

You can start the service and set it to start automatically at boot.

Other instructions:

Bash
1
2
systemctl stop tinyproxy.service # close
systemctl disable tinyproxy.service # disable service

For more configuration, such as BasicAuth authentication, you can refer to the official website:

TinyProxy
https://tinyproxy.github.io/

4. Postscript

The main personal purpose is to solve the problem that only some servers can connect to the external network in the internal network, and other servers cannot connect to the external network. Other servers can connect to the external network through a networkable server proxy.

In addition, it can also solve the problems of setting up services such as RSSHub on servers in mainland China, unable to access Twitter, slow Git/GitHub, and encrypted traffic to prevent privacy leakage.

Deploy Tiny Proxy Server on CentOS 7

https://blog.tsinbei.com/en/archives/619/

Author
Hsukqi Lee
Posted on

2022-07-23

Edited on

2022-07-28

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet