Skip to content

tinyproxy

install

apt install tinyproxy

Config

cat << EOF > /etc/tinyproxy/tinyproxy.conf
User tinyproxy
Group tinyproxy
Port 8888
Listen 0.0.0.0
Timeout 600
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
Syslog On
LogLevel Info
PidFile "/run/tinyproxy/tinyproxy.pid"
MaxClients 100
Allow 127.0.0.1
Allow 192.168.0.0/16
ViaProxyName "tinyproxy"
EOF

On user's host

export http_proxy='http://192.168.1.101:8888'
export https_proxy='http://192.168.1.101:8888'

Apt

echo 'Acquire::http::Proxy "http://192.168.1.101:8888";' >> /etc/apt/apt.conf

Yum

echo "proxy=http://192.168.1.101:8888/" >> /etc/yum.conf