skip to content
 
 

pfSense Firewall Log Auditing

pfSense is an open-source firewall and router based on FreeBSD. It logs every packet that matches a logging rule, as well as traffic dropped by its default deny rule. Before you can analyze those logs with a firewall log analyzer, you need to know where they are kept and how to get them off the firewall.

Where pfSense stores firewall logs

pfSense writes its logs to the /var/log/ directory on the firewall. Firewall events go to /var/log/filter.log. Other services, such as the system, DHCP and VPN, each write to their own file.

From pfSense CE 2.5.0 and pfSense Plus 21.02 onward, these are plain-text files. The firewall rotates them to keep each file within a set size, so only a limited number of recent entries is available at any time. On systems that run /var from a RAM disk, logs can also be lost if the firewall shuts down unexpectedly.

How to view firewall logs in the pfSense GUI

  1. Sign in to the pfSense web interface.
  2. Go to Status > System Logs.
  3. Select the Firewall tab.
  4. Use the log filter to narrow entries by interface, source, destination or protocol.
  5. Click the action icon on an entry to see which rule produced it.

Each entry shows whether the packet was passed or blocked, along with the time, interface, source, destination and protocol. This view works well for quick checks. It is much less useful when you need to know which hosts were blocked most this week, or who changed a rule last month.

How to enable remote syslog to forward pfSense logs to EventLog Analyzer

  1. In the pfSense web interface, go to Status > System Logs > Settings.
  2. Select Enable Remote Logging.
  3. Set Log Message Format to BSD (RFC 3164), the default.
  4. Under Remote log servers, enter the IP address and syslog port of your EventLog Analyzer server. You can add up to three remote servers.
  5. Under Remote Syslog Contents, select all event types.
  6. Click Save.

From then on, pfSense forwards each new event to EventLog Analyzer as it occurs. EventLog Analyzer keeps those events beyond the firewall's own rotation limits and uses them for the reports, alerts and searches.

Auditing pfSense devices with EventLog Analyzer

EventLog Analyzer is a log management tool which collects logs from pfSense devices, analyzes events, and generates reports. It also allows administrators to set up alerts for changes in firewall configurations, policies, and more. The following features in EventLog Analyzer let administrators easily monitor pfSense devices in their network:

  • An interactive, easy-to-use interface.
  • More than 40 reports exclusive to pfSense firewalls covering traffic and threats.
  • Reports in graph, list, and table formats along with the option to drill down and view the underlying information.
  • Custom reports with scheduling and exporting options.
  • Real-time email and SMS alerts for all events of interest.
  • Powerful log forensics that enable robust searches with many flexible options.
pfsense firewall log analyzer

pfSense log analysis reports

EventLog Analyzer offers the following reports for pfSense devices:

pfSense Firewall Traffic Reports: EventLog Analyzer processes pfSense traffic logs and offers insights on the allowed and denied traffic with details on the source, destination, port, and protocol.

pfSense Firewall Traffic Report

pfSense Logon Reports: Monitor successful and failed pfSense logons. Identify the most used devices as well as the users who access your pfSense devices the most. Monitoring access helps you keep device usage and activity in check.

pfSense Logon Reports

pfSense IDS/IPS Reports: Guard your network against attacks with security reports based on pfSense IDS/IPS logs. View a list of positively identified attacks as well as potential threats in your network that merit investigation.

pfSense IDS/IPS Reports

pfSense Threat Reports: These reports detail various attack types, such as URL filtering, flood attacks, spyware downloads, and more, which are useful in protecting the network from breach attempts.

pfSense Threat Reports

pfSense Severity Reports: These reports classify log information by severity and are useful for accessing all events (including emergency, error, critical, alert, warning, notice, information, and debug events) in a single click.

pfSense Severity Reports

pfSense Configuration Reports: These reports help you ensure your pfSense firewalls are configured properly and track link state changes.

pfSense Configuration Reports

pfSense System Events: These reports help you track system reboots, startups and shutdowns, and ensure that your pfSense firewalls are running smoothly without experiencing unexpected shutdowns or reboots.

pfSense System Events

Supported Firewalls, NGFWs, IDS, and IPS

 

Frequently asked questions about pfSense firewall log analyzer

pfSense keeps its log files in the /var/log/ directory on the firewall. Firewall packet filter events are written to /var/log/filter.log, and other services such as the system, DHCP and VPN have separate files. The firewall only retains a limited number of recent entries, so older events are overwritten over time.

Sign in to the pfSense web interface, go to pfSense firewall logs and open the Firewall tab. Each entry shows the action (pass or block), time, interface, source, destination and protocol. Clicking the action icon shows which firewall rule created the entry.

Go to Status > System Logs > Settings, select Enable Remote Logging, choose the log message format, enter the IP address and port of up to three remote syslog servers, select the log contents to send and click Save. The receiving server must be set up to accept syslog messages from the firewall.

pfSense rotates its log files to keep them within a set size, so how far back the logs go depends on log volume and the configured file size rather than a fixed number of days. For longer retention, forward the logs to a remote syslog server or a log management tool such as EventLog Analyzer.

For quick checks, use the filter options on the Firewall tab under Status > System Logs. For trend analysis, threat reporting and audit evidence, forward the logs over syslog to a pfSense log analyzer. EventLog Analyzer parses each entry into fields such as action, source and destination IP, port and protocol, and presents them in more than 40 prebuilt pfSense reports.

The right tool depends on what you need beyond the built-in viewer: long-term retention, prebuilt reports, real-time alerts, forensic search or compliance reporting. EventLog Analyzer covers all of these for pfSense, with more than 40 out-of-the-box reports on traffic, IDS/IPS threats, logons, configuration changes and severity.

IDS/IPS logs from packages such as Snort or Suricata record detected attacks and suspicious activity, including the source and destination IP and the type of threat. EventLog Analyzer turns these into reports on attacks by source and destination, attack trends and critical attacks, and can send email or SMS alerts as they occur.

Forward pfSense logs to EventLog Analyzer and use its policy and configuration reports to track rules and policies that were added, deleted or modified, along with administrator account changes. Real-time alerts can notify you when a change happens, and scheduled reports provide dated evidence for audits.

EventLog Analyzer Trusted By

Los Alamos National Bank Michigan State University
Panasonic Comcast
Oklahoma State University IBM
Accenture Bank of America
Infosys
Ernst Young

Customer Speaks

  • Credit Union of Denver has been using EventLog Analyzer for more than four years for our internal user activity monitoring. EventLog Analyzer provides great value as a network forensic tool and for regulatory due diligence. This product can rapidly be scaled to meet our dynamic business needs.
    Benjamin Shumaker
    Vice President of IT / ISO
    Credit Union of Denver
  • The best thing, I like about the application, is the well structured GUI and the automated reports. This is a great help for network engineers to monitor all the devices in a single dashboard. The canned reports are a clever piece of work.
    Joseph Graziano, MCSE CCA VCP
    Senior Network Engineer
    Citadel
  • EventLog Analyzer has been a good event log reporting and alerting solution for our information technology needs. It minimizes the amount of time we spent on filtering through event logs and provides almost near real-time notification of administratively defined alerts.
    Joseph E. Veretto
    Operations Review Specialist
    Office of Information System
    Florida Department of Transportation
  • Windows Event logs and device Syslogs are a real time synopsis of what is happening on a computer or network. EventLog Analyzer is an economical, functional and easy-to-utilize tool that allows me to know what is going on in the network by pushing alerts and reports, both in real time and scheduled. It is a premium software Intrusion Detection System application.
    Jim Lloyd
    Information Systems Manager
    First Mountain Bank

Awards and Recognitions

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
A Single Pane of Glass for Comprehensive Log Management