-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to provide a custom networks list for option --local-netwo…
…rks.
- Loading branch information
1 parent
c3da76b
commit fc2f34f
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no clue what is wrong with your code, but eversince you added this option I get an error saying "Invalid CIDR in custom local networks list at position 1." Even tough I have "consider all..." on. Please fix this as soon as possible. I cant use ntopng at all now for all of my sites.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to look at this shortly.
In the while I am reasonably sure you can work it around by inserting a valid CIDR network at position one if it is empty, considering the error message you're getting. It will be ignored in the actual running configuration.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, for our network, a 22. It still gave me the error. Literally after this update I can not access anything in ntopng.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm testing it to create a fix, If putting a valid CIDR there does not work, I don't really know what's wrong, I need to perform some testing. I'll ask for further feedback if I need it.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you need any logs or anything like that just guide me on how to. Thank you.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure and correctly try to reproduce this, what have you inserted as CIDR in the custom network fields? Can you send me a screenshot?
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://user-images.githubusercontent.com/30180288/28219469-12aa4702-688a-11e7-88ad-f13d619d8235.png
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what happens when I try to access ntopng
https://user-images.githubusercontent.com/30180288/28219532-583398b4-688a-11e7-9eef-d5f14ab90f80.png
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first screenshot shows you just put "22" in the field, which is not a valid CIDR.
Try using "192.168.0.1/24", which is a valid CIDR, and this should work as a workaround while I try to find a fix.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That worked for one router. I have another with the newest version and ntopng is just not loading with the same settings as the other router that is now working. I am in the process of reinstalling ntopng on the non working one.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://user-images.githubusercontent.com/30180288/28220153-6dca53dc-688c-11e7-8060-8934424c5156.png settings for the one that will not work.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what is the difference between the two, but I'd suggest you use "192.168.0.1/24", not "192.168.1.0/24". I think the second version is not a proper CIDR address either.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"192.168.1.0/24" is certainly a correct CIDR. One could argue that "192.168.0.1/24" is not because it contains non zero ignored bits.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have anyway just sent pull request #372, which should fix this issue.
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks man. I tried your suggestion and it didn't work... Anyway to send you logs?
fc2f34f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.8.10 has already been pushed out and this addresses the problem.