-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network plugin in tags/v1.6 seems to ignore list in acl #331
Comments
was the x, y, z thing EVER been supported by the network plugin? see e.g. https://github.com/smarthomeNG/plugins/blob/master/network/__init__.py#CL204 i also doubt that the plugin knows about handling different names for the variable part of the ip address like x, y, z... perhaps a "*" could have been a thing for implementing that. i added the newly logged message 3 years ago when converting to smartplugin. but the logics in the plugin for matching IPs stayed as it is.. how old was your shng / sh.py before upgrading? (https://github.com/smarthomeNG/plugins/blame/80e41af31ed53e405d5e89ed7091ffc4696c71d9/network/__init__.py#L205) |
@Tom-Bom-badil no in this case i really think the X Y Z placeholder causes the problem |
@Tom-Bom-badil by the way, although i wrote in gitter "i noted it" i forgot about it ;-) please create an issue so we can keep track if there was still sth open. |
@gitmirko Is tgis issue still relevant? |
@gitmirko Is this issue still relevant? |
Hi, I don't know. I've stopped using smarthomeNG. |
Just for your information: I tested the network plugin to check how the ACLs are checked. Placeholder are not supported and only full IP addresses works. The code also states checking for IP adresses in ACL lists (like But if there are other problem which needs to be checked, just told me. I try to check it if we have some problems with the ACL configuration. |
It would probably help to allow a certain range of IP Adresses like
I doubt that we need to extend this scheme into a kind of |
There seems to be a problem when something like psilo909 commented on this some time ago:
Full details here and in the chat above. /tom |
In case we want to support different pattern for IP based ACLs it would be helpful to provide such a method in the I tried to configure the network plugin with |
Long story short: shNG stopped receiving item values through UDP after a regular shNG version update. Before it received well for quite a long time. nw was defined in plugin.yaml as follows:
After removing the line Side note: Again - after removing the line, my shNG is properly receiving the values, so personally this is not an issue anymore. /tom |
I can't reproduce this problem (with my plugin repo @ a2bf7e83782ed7a3502bd47b1f03fc59f925d634. I used the network plugin with this configuration: nw:
class_name: Network
class_path: plugins.network
ip: 0.0.0.0
port: 2929
tcp: yes
udp: yes
http: 8765
tcp_acl: '*'
udp_acl: '*'
http_acl: '*' I also tested with udp_acl:
- '*' No problems. Update are consumed as expected. |
Sounds fine, I guess the issue can remain closed then. /tom |
Hi,
I've updated my smarthome-ng instance to v1.6. Since than I get the following error in the log:
Generic network acl doesn't permit updates from 10.0.0.X
My plugin.yaml looks like this:
As a workaround I've removed the http_acl parameter and now it defaults to * and everything is working fine.
Does someone else got a similar problem?
Best regards and keep up the great work
Mirko
The text was updated successfully, but these errors were encountered: