PFSense - Squid - Logging - Access Squid log files via SSH

Navigate to System → Advanced.

In Secure Shell section:


Download log files using the SCP

By default, Squid log files are located in /var/squid/logs/.

scp root@192.168.1.1:/var/squid/logs/*.log*

IMPORTANT: To use SSH/SCP, root needs to be used as the username with the standard admin password.

NOTE: For SCP access, you can use any program that supports this protocol.

For Windows it can be WinSCP, PSCP from PuTTY package, SCP from CygWin package, etc.

For example:

PSCP.exe [-pw password] root@192.168.1.1:/var/squid/logs/*.log*

In PSCP, you can specify a password, which allows you to fully automate the downloading of the log files, but leakage of this password can lead to serious problems.