Hi all.
I have EFW Community 3.0 installed. I play many time with NTop and i need to make a little change: add in the interface list my red zone interface (eth1 and eth2).
Now, i search a little and i find some usefull info:
- on the EFW, the Ntop service starts from
/etc/init.d/ntopng- in this start script i find that "
NTOPNG_CONFIG="/etc/ntopng/ntopng.conf"" so
/etc/ntopng/ntopng.conf is the Ntop configuration file
- in
/etc/ntopng/ntopng.conf i find, at the start, all the --interface entry:
root@XXXX:/etc/ntopng # [b]cat /etc/ntopng/ntopng.conf[/b]
# --dns-mode
--interface=br0
--interface=br1
--data-dir=/var/lib/ntopng/
...
Now, is simple, i add 2 new line and all works ... no! Is NOT that!!
All the time that i restart Ntop (
service ntopng restart or
restartntop) or reboot the system a new /etc/ntopng/ntopng.conf was "rebuilded".
In /etc/ntopng/ folder there is another file:
/etc/ntopng/ntopng.conf.tmpl and, IN MY OPINION, this is used for create a new configuration file every time the system is rebooted or the service is restarted.
Now, the question:
- is MY OPINION CORRECT?
- in
/etc/ntopng/ntopng.conf.tmpl i can find:
root@XXXX:/etc/ntopng # [b]cat ntopng.conf.tmpl[/b]
# --dns-mode
#for $interface in $NTOP_INTERFACES
--interface=${interface}
#end for
...
$NTOP_INTERFACES ... Bingo!!!
But ... where is declared and populated the $NTOP_INTERFACES variable? I can't be able to find it.
Thanks all.
Mauro.