jpetazzo / squid-in-a-can

361 stars 78 forks source link

I need further clarification as to how squid in a can operates with the default settings #36

Open eporto2021 opened 2 years ago

eporto2021 commented 2 years ago

I have a couple of containers running on a server, the containers are in bridge mode networking to my knowledge, if I start squid in a can with the default options will those containers use the proxy?

Should I move these containers to their own 'private network' and add squid in a can to that network aswell as host or is that impossible? I'd like to do that to ensure that they cannot get to the internet excepting for using the proxy to do so?

Also what is the default size of the cache? Disk space is low on our server and i'd really like to implement this in a secure way that doesn't chew up too much disk space so I can stop hammering our sources while debugging our scripts.....(EDIT just re read the documentation here and noticed its 5000mb)

Does "iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 3129 -w" get executed on the 'client' containers?

Any help/info appreciated and if i'm being and idiot please feel free to tell me! :-)