Addictivetips published a tutorial about how to configure a proxy on macOS.
How to configure a proxy on macOS
A proxy service can be private or public. Most services normally provide their own client that facilitates setting up the proxy.
How to configure a proxy on macOS