-
Notifications
You must be signed in to change notification settings - Fork 20
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
Previously working rules now show notifications? (1.0.1-1 -> 1.3.0.rc-2) #134
Comments
hey @metal450 ! glad to read you again. Save that rule again: edit it and click on Apply. Some new fields has been added, but we haven't added any way to automigrate old rules. If it still doesn't work paste the .json content of the rule. Also you can install 1.3.5 version: |
Oh whoa - did u take over the other repo, so I should check there from now on? I was looking at https://github.com/gustavo-iniguez-goya/opensnitch/releases, where the latest is 1.3.0.rc-2 Sure, I'll try that version, re-save all rules & report back if I see it happen again :) |
After updating, I can no longer click 'apply' in any of the rules: it says "There're no nodes connected" in red text at the bottom of the window. |
Yup, I updated both. I rebooted the system...& now I see something I've never seen before: the UI doesn't show any rules at all, and Status is flickering back & forth between 'Running' and 'Not running.' The log shows:
...And the last lines just keep repeating. |
woah, I haven't seen that error before. Version 1.3.5? Ensure that the default configuration (/etc/opensnitchd/default-config.json) has all these fields:
There should also be a
|
Yup, they're there, with those exact contents. |
Ok, please, change LogLevel to 0, restart the service/kill the daemon and post the output. |
What's the easiest way to kill/restart the service? I'd always just fully rebooted my PC to be sure. |
pkill -15 opensnitchd should stop it. If not, pkill -9 opensnitchd |
|
mm, check if there're more than one daemon running: You can also stop the service to not relaunch it automatically: I'm going to try to reproduce it. |
Nope....it didn't even show one daemon running...
|
After restarting per above, pgrep still shows no instances. |
Ok!!! that error is fixed but we haven't released a new version yet. I can build packages for you with latest changes if you agree. |
Of course, if that's what will get it up & running again :) |
Added, rename the files to .deb and let me know if it solves the error. python3-opensnitch-ui_1.3.6-1_all.deb.txt |
Alright - it's definitely...running now, haha. But after a reboot, I got a million connection prompts for everything - I tried clicking them away for a few minutes, but they just kept coming, so eventually I killed the process so that I could access the internet again & come write this comment. Maybe I need to go in & re-save every existing rule I had or something....? |
I'm afraid yes.. the old rules need to be re-saved. Also set LogLevel to 1, and monitor the log for any error. |
K, will get started on that - it will take some time, there are a lot. Suggestion for future version: add a 'version' number to each rule. Then if any subsequent updates make additions/changes, it would be easy for the software to recognize which were produced with (or haven't been updated since) a previous version, & could automatically update them |
Ok, seems there might still be an issue, tho a different one: with new notifications, clicking 'Allow' doesn't seem to work - it just keeps re-prompting for the same thing. Here's a screenshare: (link removed) |
Sorry! Nevermind, disregard my previous post - looks like it was just because it was 'allow once' vs i.e. allow for 15min or something :) |
ok! let me know if you find any other problem. Going from 1.0.1 to 1.3.6 is a huge jump, there has been many changes. But it should work as expected. |
Will do, thanks! Since the issue of this thread seems resolved, I'll go ahead & close :) |
By the way, I noticed that you filter some tracking domains. There's a branch (not published yet) that adds a new type of rules, which loads lists of domains to block (like the ones used in uBlock, pi-hole, etc): Do you think it would be useful? I haven't got many feedback from the community. It would only apply the action on connections. |
Personally, I don't think I'd - I just do them on a per-application basis as-needed. |
I figured it out again. The notification was showing /usr/lib/snapd/snapd, but when I viewed the resulting rule it created, it was actually /snap/core/10583/usr/lib/snapd/snapd - and blocking /snap/core/.*/usr/lib/snapd/snapd prevented the pop-ups. So it looks like it's just an issue of the popup showing not the whole path (i.e. it was missing /snap/core/10583), whereas when I click 'Deny' then see the rule it actually makes, the full path was there. |
mm, interesting. What system are you using? I'll try to reproduce it. |
Kubuntu 20.04 |
@metal450 , I've reproduced this issue. The thing is that I think that the pop-ups are correct in both cases, one for I don't fully understand how it works. In my kubuntu the dameon that is running is I'll review why the path label is not displayed in one line (in contrast to gnome, cinnamon, etc..) |
a regexp to match connections for both cases could be: |
Sure - personally I'm fine with how it is, now that I know it's working (I just have two separate rules, one for the 'main' daemon & one with a wildcard per above). Just thought I'd mention it s it might be confusing to others, as it seems to be reporting one path in the notification, & creating a rule based on that, but then it keeps coming up because the rule doesn't apply to where the connections were "really" coming from. In any case, I'm happy with where I'm at :) |
Nice, even more concise :) |
yep, I understand the confusion. This also occurs with kdeinit and its plugins smb.so, http.so, etc... I've read some comments wondering if it was a bug. |
I've realized that there's an error when saving/loading the default duration of the popups. That's why by default the duration is (always?) "once". These files fix that problem (open the UI->preferences and configure it as you want again) : Regarding the path label, copy this file to I'd thank you if you could test these files and confirm that at least it doesn't break anything. |
I replaced the files & rebooted, no obvious issue out of the gate. I'll report back if I do later observe something broken. |
Hi again,
Upon upgrading from 1.0.1-1 to 1.3.0.rc-2, I find that I'm getting notifications for connections that were previously handled by rules; here's one as a concrete example:
As you can see, the notification appeared, despite there being a rule with a matching commandline & url. Presumably the way it interpreted one or the other has changed, & my rules need to be updated accordingly?
Thanks :)
The text was updated successfully, but these errors were encountered: