- Install VirtualBox
- Install Vagrant
- Install Vagrant omnibus plugin
vagrant plugin install vagrant-omnibus
- Execute in project directory:
vagrant up
By now You have 3 VMs running with ubuntu and squid3 installed. It may take a while when running the command for the first time as it needs to download the OS image.
- Open script file
- In script change hierarchyId ( in line 3) to one of: 1, 2, 3 or 4
- Execute in project directory:
vagrant provision
- Execute curl ( on host machine) with selected vm address as proxy f.e.
curl -x 192.168.56.101:3128 http://www.deepsloweasy.com/
or just run on of the scripts from scripts folder - Go to logs to view generated data f.e. here if You are interested in squid1's logs and configuration after running the 3rd hierarchy
vagrant halt
You can also ssh into the machine: vagrant ssh MACHINE_NAME
, where MACHINE_NAME is one of:
- squid0
- squid1
- squid2
Interested in hierarchy configuration? hierarchy configuration
squid0 | squid1 | squid2 | |
---|---|---|---|
MAC | 080000002101 | 080000002111 | 080000002121 |
eth1 | 192.168.56.101 080000002102 |
192.168.56.102 080000002112 |
192.168.56.103 080000002122 |