Proxys

Squid Proxy


Squid:

image: sameersbn/squid:3.5.27-2

ports:

- "3128:3128"

volumes:

- /srv/docker/squid/cache:/var/spool/squid

- /path/to/squid.conf:/etc/squid/squid.conf

restart: always


--------------------------------

ARM

version: "3.8"

services:

squid:

image: easypi/squid-arm

ports:

- "3128:3128/tcp"

- "3130:3130/udp"

volumes:

# - ./data/etc/squid.conf:/etc/squid/squid.conf

- ./data/cache:/var/cache/squid

- ./data/log:/var/log/squid

stop_signal: SIGKILL

restart: unless-stopped



chmod -R 777 data


ref; https://github.com/vimagick/dockerfiles/tree/master/squid



Tor Proxy


sudo apt-get install tor



sudo nano /etc/tor/torrc

including only the following lines (assuming that 192.168.1.100 is your Raspberry Pi IP address):

SocksPort 192.168.1.100:9050

SocksPolicy accept 192.168.1.0/24

RunAsDaemon 1

DataDirectory /var/lib/tor

#check service

sudo systemctl restart tor@default.service