Step 1. Configure IP address and DNS settings

Create A and PTR records for proxy.example.lan on your DNS server. Make sure Windows workstations can resolve proxy.example.lan name to 192.168.1.10 and 192.168.1.10 can be reversely resolved to proxy.example.lan.

../../_images/step1_0410.png

then

../../_images/step1_0510.png

then

../../_images/step1_0610.png

Your Squid proxy MUST be configured with static IP address, you can do it from Admin UI as indicated on the following screenshot or manually as explained in article How to Set Static IP Address in VA.

../../_images/step1_static_ip114.png ../../_images/step1_static_ip214.png

After you clicked Save Settings, Admin UI will automatically generate the /etc/network/interfaces with the following contents.

auto ens160
iface ens160 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-search example.lan
    dns-nameservers 192.168.1.2

Next, set host name of your proxy from Admin UI as inidicated on the following screenshot or by editing the /etc/hostname file to contain a single word proxy.

../../_images/step1_hostname7.png

Set DNS reverse resolve setting on your proxy by editing /etc/hosts to look like the following.

127.0.0.1       localhost
192.168.1.10    proxy.example.lan proxy

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Reboot your proxy and after restart, check the output of hostname -f command; it should give proxy.example.lan.

Now check you can resolve domain names on proxy by running the following commands. Output from these commands should contain correct IP addresses and fully qualified domain names for proxy.example.lan and dc1.example.lan.

$ dig dc1.example.lan
$ dig -x 192.168.1.2
$ dig proxy.example.lan
$ dig -x 192.168.1.10
../../_images/step1_0810.png

Specify proxy.example.lan (as FQDN and not as IP address!!!) in your browser settings on all your workstation machines. Try browsing to see if Squid works nicely without authentication.

../../_images/step1_0710.png