Hi,
I've installed Ntop's community edition, using Ports and it is working fine. The Community Edition restricts the number of interfaces to a maximum of 8. Here is the information on interfaces on OPNSense machine:
root@OPNsense:/var/db # ntopng -h
Available interfaces (-i <interface index>):
1. igb0
2. igb1
3. ovpns1
4. igb2
5. igb3
6. igb4
7. igb5
8. igb1_vlan20
9. igb2_vlan30
10. igb3_vlan40
11. igb0_vlan100
12. lo0
The max limit of 8 interfaces is enough for me but the ones that I need i.e. 9, 10 & 11 are not getting picked up. So edited "/usr/local/etc/ntopng/ntopng.conf " file and added following lines:
-i=igb1_vlan20
-i=igb2_vlan30
-i=igb3_vlan40
-i=igb0_vlan100
-i=igb4
-i=igb5
-i=ovpns1
The above interfaces are less than 8 but when I restart the console shows following logs:
28/Jun/2022 22:19:10 [Prefs.cpp:1950] ERROR: Too many interfaces (8): discarded igb2_vlan30
28/Jun/2022 22:19:10 [Prefs.cpp:1951] ERROR: Hint: reset redis (redis-cli flushall) and then start ntopng again
28/Jun/2022 22:19:10 [Prefs.cpp:1950] ERROR: Too many interfaces (8): discarded igb3_vlan40
28/Jun/2022 22:19:10 [Prefs.cpp:1951] ERROR: Hint: reset redis (redis-cli flushall) and then start ntopng again
28/Jun/2022 22:19:10 [Prefs.cpp:1950] ERROR: Too many interfaces (8): discarded igb0_vlan100
28/Jun/2022 22:19:10 [Prefs.cpp:1951] ERROR: Hint: reset redis (redis-cli flushall) and then start ntopng again
So seems like Ntop is still using the default interface list instead of the ones specified in "/usr/local/etc/ntopng/ntopng.conf".
Does any one has any idea what I might be doing wrong here or how to make Ntop use the interfaces selectively.
Thanks,
Pankaj
I did some experiment in the "/usr/local/etc/ntopng/ntopng.conf " and changed the port number from 3000 to 3001.
After restart the Ntop still shows up on 3000 so seems like Ntop rc service is not reading the "/usr/local/etc/ntopng/ntopng.conf " file when starting.