fatboy
New Member
Okay, trying to learn BASH whilst trying to get my head round servers a little bit more so put together a script that will setup squid to use any internet facing IP address and username / password authentication.
The installer will try to find out what distro / architecture the box is running and then grab the correct squid template file to use.
There may be errors in there and I know I can do a bit more error checking (ie - some!!) but if the wind is blowing in the right direction and you are feeling lucky it seems to work.
At the moment, the script works with Centos 7 64 bit, Centos 6 64 bit and Debian 7 64 bit.
Anyway, to get it running you will need:
- root access to the VPS / dedi
- wget installed
- at least one IPv4 (doesn't do ipv6 at the moment as I haven't touched that before!)
Run:
cd /usr/src && wget http://autoim.net/squidmaker/install.sh && bash install.sh
and you should be good to go.
I will apologise in advance to any BASH gurus who look at the code an weep
The installer will try to find out what distro / architecture the box is running and then grab the correct squid template file to use.
There may be errors in there and I know I can do a bit more error checking (ie - some!!) but if the wind is blowing in the right direction and you are feeling lucky it seems to work.
At the moment, the script works with Centos 7 64 bit, Centos 6 64 bit and Debian 7 64 bit.
Anyway, to get it running you will need:
- root access to the VPS / dedi
- wget installed
- at least one IPv4 (doesn't do ipv6 at the moment as I haven't touched that before!)
Run:
cd /usr/src && wget http://autoim.net/squidmaker/install.sh && bash install.sh
and you should be good to go.
I will apologise in advance to any BASH gurus who look at the code an weep
Last edited by a moderator: