Documentation

Administrator documentation

A focused reference for installing, configuring, and maintaining Squid Proxy Professional on Windows. Bundled documentation in the product is more detailed; this page covers the essentials.

Installation guide

Run the code-signed installer; Windows asks for administrator rights. It installs the management console, the bundled Squid and the service executable under C:\Program Files\Squid Proxy Professional by default, and creates C:\ProgramData\SquidProxyPro for the cache, logs, configuration backups and the license file. The live squid.conf is in the program folder, under squid\etc\. The installer does not register the Windows service; the Setup Wizard does that (next section).

Recommended steps:

  1. Verify the installer's SHA-256 checksum against the value on the Download page. Windows shows the publisher, Steve Victor Faleiro, when it starts.
  2. Run the installer and accept the license agreement. The default location is recommended.
  3. When setup finishes, open the management console (Setup offers to launch it), or later from the Start menu.

Installing a newer version over an existing one stops the service, replaces the files, keeps your squid.conf and data, and starts the service again if it was running.

First-time setup

  1. Activate your trial or commercial key on the console's Licensing page. On a server without a desktop, run "C:\Program Files\Squid Proxy Professional\squid\bin\squid-service.exe" activate <key> from an elevated prompt. Until a key is active, the pages that change the configuration are read-only and the service will not start the proxy.
  2. Run the Setup Wizard. Pick who may use the proxy (this computer only, the private LAN ranges, or a subnet you enter) and, on a Windows domain, whether users must sign in with their domain account (below); then the HTTP port (3128 by default), the disk cache size, which logs to keep and how to rotate them (below), and review the generated squid.conf.
  3. Choose Apply. The wizard validates the configuration with squid -k parse, writes it with a backup of the previous one, installs the Windows service if needed, and starts it.
  4. Open the proxy port in Windows Firewall (below) if other computers will use the proxy, then run Diagnostics to confirm.

Later changes are made on the Configuration and Access Rules pages. Every save is validated first and backed up; if writing the new file fails, the previous one is restored. A running proxy keeps its old configuration until it restarts, so when you save on the Configuration page with the proxy running, the console offers to restart it there and then.

For a complete squid.conf for Windows Server explained line by line, see the annotated squid.conf example.

Starting and stopping the Squid service

The proxy runs as a standard Windows service named SquidProxyProfessional (display name Squid Cache). Control it from the console's Service page or with the usual Windows tools.

From PowerShell:

Start-Service   SquidProxyProfessional
Stop-Service    SquidProxyProfessional
Restart-Service SquidProxyProfessional
Get-Service     SquidProxyProfessional

From Command Prompt:

sc start SquidProxyProfessional
sc stop  SquidProxyProfessional
sc query SquidProxyProfessional

The service writes to the Windows Application event log under the source Squid, and Event Viewer shows each entry's full text. If the service refuses to start, the log says why: event 200 means no valid license, event 204 means the service executable failed its signature check. squid-service.exe license-status prints the same verdict at a command prompt. Event 101 means Squid stopped unexpectedly: once it had started serving, the service restarts it, at most twice a day; if it stopped during startup, the entry quotes Squid's own error, or says so when Windows itself refused to start it (for example, Smart App Control or another application-control policy; the CodeIntegrity log in Event Viewer names the file). Event 120 means Windows' DNS servers changed (after startup, a VPN, another network) and Squid was told to use the new ones; it does not appear when squid.conf sets dns_nameservers.

How a Squid service works on Windows Server, and what each of its settings does, is covered in the guide Run Squid as a Windows service.

Configuring browser/client proxy settings

Point clients at the proxy's IP and listener port. Common methods on Windows networks:

  • System-wide proxy: Settings → Network & Internet → Proxy. Set Manual proxy setup to your server IP and port.
  • Group Policy: deploy proxy settings via User Configuration → Preferences → Control Panel Settings → Internet Settings.
  • WPAD/PAC: host a wpad.dat/PAC file and configure clients to auto-detect or use a specific PAC URL.
  • Per-application: configure proxy in browsers or applications that don't honour the system setting (Firefox, some development tools).

Step-by-step instructions for Group Policy, a PAC file, WPAD and WinHTTP are in the guide Deploy Squid proxy settings with Group Policy and WPAD.

Windows domain sign-on

On a Windows domain (Active Directory), the proxy can require users to sign in with their domain account. Tick Require Windows domain sign-on on the Configuration page, or in step 2 of the Setup Wizard, and save. Domain computers then sign in automatically, without a password prompt, and access.log records each request's user as DOMAIN\user.

  • The computer running Squid Proxy Professional must be a member of the domain.
  • The access rules still decide which computers may connect; sign-on decides who. A computer no rule allows is refused before it is asked to sign in. Programs on the proxy computer itself are not asked.
  • Point clients at the proxy by its full DNS name, for example proxy.example.local:3128. With that name, sign-on can use Kerberos; with an IP address it uses NTLM.
  • Optionally, Also ask for a user name and password on computers outside the domain lets other computers sign in with a domain account at a password prompt. That password crosses the network unencrypted, so use it only on a network you trust.
  • If a browser on a domain computer shows a password prompt anyway, add the proxy's name to the Local intranet zone in Internet Options (or by Group Policy).

Opening Windows Firewall ports

By default, Windows Firewall blocks inbound traffic to the Squid listener. Allow inbound traffic on the configured port for your private/domain profile only:

New-NetFirewallRule -DisplayName "Squid Proxy Professional (3128)" `
  -Direction Inbound `
  -Action Allow `
  -Protocol TCP `
  -LocalPort 3128 `
  -Profile Domain,Private

Replace 3128 with your configured listener port. Avoid opening the port on the Public profile unless you specifically intend the proxy to be reachable from untrusted networks. Diagnostics shows whether an enabled rule allows the port on the active network profile.

Viewing logs

Squid writes access.log (one line for every request) and cache.log (Squid's own messages, including why it would not start) to C:\ProgramData\SquidProxyPro\logs\. Each can be switched off on its own on the Configuration page or in the Setup Wizard. With cache.log off, Squid's start-up errors still appear in Event Viewer (event 101). The console's Logs page follows either file live, with a text filter and export to a file. The data folder, logs included, is open to administrators and the service only, so other tools need to run as administrator.

Log rotation. So that the logs do not grow without limit, the service rotates them: access.log becomes access.log.0, older copies move up a number, and the oldest beyond the number you keep is deleted. Choose every day, every week (just after midnight on Monday), or when a log reaches a size in MB, and how many old copies to keep, next to the log switches. It is on by default: weekly, four copies. Event Viewer records each rotation (event 130).

To tail the access log from PowerShell run as administrator:

Get-Content "C:\ProgramData\SquidProxyPro\logs\access.log" -Tail 50 -Wait

Backing up configuration

Every time the console saves squid.conf it first keeps a timestamped copy of the previous one in C:\ProgramData\SquidProxyPro\config\squid.conf.backups\. The Backup & Restore page lists these copies, takes one on demand, and restores any of them (taking a copy of the current file first, so a restore can be undone). Restart the service after a restore.

To move a configuration to another computer, copy squid.conf from C:\Program Files\Squid Proxy Professional\squid\etc\, or a file from the backups folder, to the same place on the new computer, then validate it on the Configuration page. For support, Export support bundle writes a zip with the configuration, recent log lines and the diagnostics results.

Troubleshooting

The console's Diagnostics page checks the bundled files, folder permissions, the configuration (with squid -k parse), the service state, whether Squid or another program holds the proxy port, free disk space, and whether Windows Firewall allows the port, and reports concrete next steps. Common issues:

  • Service won't start. Check the Application event log (event 200: no valid license) and the configuration validation result; a syntax error or a missing referenced file is the most likely cause.
  • Port already in use. Diagnostics names the program holding the port. Stop it, or change the HTTP port on the Configuration page.
  • Clients can't connect. Check the Windows Firewall result in Diagnostics, and that clients use the correct IP address and port.
  • "Access denied" responses. Confirm your access rules match the client's source network and that the rule list reaches an allow rule before the deny-all at the end.
  • Sign-on prompts or 407 responses. With domain sign-on on, a 407 is the proxy asking the client to sign in, and a browser normally answers it without asking you. Check that the proxy computer is in the domain, that clients use the proxy's full DNS name, and that the user is signed in to the domain; see Windows domain sign-on.

Uninstalling

Moving to another computer? First use Move license to another machine on the console's Licensing page. It releases the license on our server so you can activate it on the new machine. Uninstalling alone does not.

Uninstall from Settings → Apps → Installed apps → Squid Proxy Professional → Uninstall, or from the classic Programs and Features control panel. The uninstaller stops and removes the service, removes the program files (including the live squid.conf), and asks whether to delete C:\ProgramData\SquidProxyPro: the configuration backups, cache, logs and license file. A silent uninstall (/VERYSILENT, or from a package manager) does not ask and keeps the folder.

To reinstall later with the same configuration, answer No to keep that folder. After reinstalling, restore the latest copy on the Backup & Restore page.