Squid HTTP proxy combined with Zerotier network for outgoing traffic
- Start container
- with a mount in container at
/var/lib/zerotier-one
- with additional options:
--init --dns=8.8.8.8 --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --device=/dev/net/tun
- with extra commands to allow clients on local network:
ip route add 192.168.0.0/24 via 172.17.0.1
- Connect to Zerotier network
docker exec -it <container-name-or-id> bash
zerotier-cli join <network-id>
zerotier-cli set <network-id> allowDefault=1
- Squid proxy runs on port 3128