Setup a Simple HTTP Proxy Server

The host 10.21.3.69 has no H3C client, so it can't access the internet. With Tinyproxy, we can setuup a proxy server on 10.21.3.31 to enable 69 access the internet.

Server Setup

  1. Installation: apt-get install tinyproxy

  2. Configuration: vi /etc/tinyproxy.conf

    i. default listening port: Port 8888

    i. Allow incoming clients: Allow 10.21.3.69

  3. Apply the changes: sudo /etc/init.d/tinyproxy restart (or "service tinyproxy restart")

Client

Set proxy: 10.21.3.31:8888

bingo!

原文地址:https://www.cnblogs.com/darkmatter/p/3625707.html