Project

General

Profile

Actions

Bug #3334

closed

Status/Traffic Graph isn't IPv6 ready

Added by Armin Fasold over 10 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Traffic Graphs
Target version:
Start date:
11/21/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:

Description

In /usr/local/www/bandwith_by_ip.php, which is called per AJAX/XHR to provide the data for the right table in "Traffic Graph" page (status_graph.php), the program "rate" is called to acquire that data.

Looking into the source code of "rate", to see what all the given parameters do, I noticed that it uses u_int32_t [0] for storing the IP addresses. This results in a silent fail if called with an IPv6 netmask and no listing of IPv6 traffic sources.

[0]: https://fossies.org/dox/rate-0.9/rate__abusers_8c_source.html#l00062


Files

bandwidth_by_ip.php (6.31 KB) bandwidth_by_ip.php Joshua Sign, 01/18/2019 06:17 PM
iftop_parse.awk (986 Bytes) iftop_parse.awk Joshua Sign, 01/18/2019 06:17 PM
iftop_parser.sh (1.07 KB) iftop_parser.sh Joshua Sign, 01/18/2019 06:17 PM
pfSense_status_graph.patch (7.95 KB) pfSense_status_graph.patch Joshua Sign, 01/19/2019 12:24 AM
Capture iftop.PNG (24.1 KB) Capture iftop.PNG Daryl Morse, 01/20/2019 05:47 PM
Capture iftop hn0.PNG (22.9 KB) Capture iftop hn0.PNG Daryl Morse, 01/20/2019 05:55 PM
Capture iftop hn1.PNG (22.9 KB) Capture iftop hn1.PNG Daryl Morse, 01/20/2019 05:56 PM
iftop status graph.PNG (77.6 KB) iftop status graph.PNG Daryl Morse, 01/20/2019 06:02 PM
iftop_parse.awk.gz (308 Bytes) iftop_parse.awk.gz Joshua Sign, 01/21/2019 04:12 AM
Actions

Also available in: Atom PDF