From e71b22f89da57d9d760344572c020c3397f7a9db Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 2 Apr 2012 13:15:31 -0400 Subject: Better fix for ntop using ipv4/ipv6 --- config/ntop2/ntop.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/ntop2/ntop.xml b/config/ntop2/ntop.xml index a862e30f..0b7a536d 100644 --- a/config/ntop2/ntop.xml +++ b/config/ntop2/ntop.xml @@ -125,7 +125,7 @@ system("/bin/cp -Rp /usr/local/lib/X11/fonts/webfonts/ /usr/local/lib/X11/fonts/TTF/"); $first = 0; $mergeifs = ($ntop_config['allowmerge'] == "on") ? "" : "-M"; - $alltraffic = ($ntop_config['alltraffic'] == "on") ? "" : "--ipv4"; + $alltraffic = ($ntop_config['alltraffic'] == "on") ? "-4 -6" : "-4"; foreach($ntop_config['interface_array'] as $iface) { $if = convert_friendly_interface_to_real_interface_name($iface); if($if) { @@ -135,7 +135,7 @@ $first = 1; } } - $start = "/usr/local/bin/ntop -i {$ifaces_final} -u root -4 -6 -d {$alltraffic} {$mergeifs} -x 8102 -X 8192 &"; + $start = "/usr/local/bin/ntop -i {$ifaces_final} -u root -d {$alltraffic} {$mergeifs} -x 8102 -X 8192 &"; write_rcfile(array( "file" => "ntop.sh", "start" => $start, -- cgit v1.2.3