Listing all IP’s on a Linux Server when Setting up a Squid Proxy made easy with this script

A few days ago a buddy of mine asked me to setup Squid Proxy on his server. He wanted the ability for it to listen on all available IP’s on the box (512 of them). So, if you used proxy at x.x.x.x it would go out x.x.x.x and y.y.y.y would go out y.y.y.y and so on. After a little digging we found a neat little script written for FreeBSD that would parse all available IP’s on the box and generate the squid configuration for you, saving hours of tedious hand typing....

May 27, 2009 · 1 min · 160 words · Matt G