Project

General

Profile

Actions

Feature #14166

open

Use netstat output for interface packet counters

Added by Steve Wheeler about 1 year ago. Updated 20 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.08
Release Notes:
Default

Description

Currently the In/Out Packets counters shown for Interface Status are taken from pfctl. Hence they show the identical values as In/out packets (pass).

However for some interface types, VTI for example, traffic is not filtered on the interface which results in the counters always showing zero.

Those counters were taken from netstat at one time but were switched to pfctl in pfSense 2.0 because it used 64bit counters. Since then netstat has moved to 64bit counters and provides more useful values for all interface types.
https://github.com/pfsense/pfsense/blob/master/src/etc/inc/pfsense-utils.inc#L1572

Actions

Also available in: Atom PDF