diff --git a/root/etc/e-smith/templates/etc/ntop.conf/30interface b/root/etc/e-smith/templates/etc/ntop.conf/30interface index 2b91761..9bac240 100644 --- a/root/etc/e-smith/templates/etc/ntop.conf/30interface +++ b/root/etc/e-smith/templates/etc/ntop.conf/30interface @@ -11,6 +11,8 @@ my $s2s = ${'openvpn-s2s'}{'status'} || 'disabled'; if (defined $ovpndb && $s2s eq 'enabled'){ foreach my $vpn ($ovpndb->get_all_by_prop(type=>'client'),$ovpndb->get_all_by_prop(type=>'server')){ + my $status = $vpn->prop('status') || 'disabled'; + next unless ($status eq 'enabled'); my $name = $vpn->key; $if .= ",tun$name"; }