-
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
From This Command Line? #31
Comments
Yes
mm, I guess it should work, but I haven't tested all the scenarios. Could you also add I know I've already talked with Ph0rk0z about this, but I can't locate the issue number. |
I had a similar issue here and Gustavo helped me resolve this issue. |
aah, sorry, it was you O:) . I didn't remember the issue, thank you! |
Ah, I got it working. It looks like the reason it wasn't working actually wasn't because of the commandline, but because of the comma-separated list of domains. For some reason if I have two separate rules with commandline "/usr/bin/python /usr/bin/deluge" and a single domain each, it works - but one rule with that commandline and domains .*domain1.com,.*domain2.com, that's what was breaking it. So the command-line was a red herring. |
mm, interesting, I'll take a look at that problem. I expected to see this kind of issues with the new rules editor, so it's good to know. |
I can't reproduce this problem, could you post the log that appears in the log file (INFO level)? every time you click on Apply in the rules editor there should be a log like this:
|
So this is interesting, & maybe a different bug? In the UI settings, it's set to level INFO (it was by default, I haven't changed it): however, /var/log/opensnitchd.log appears to be logging at DEBUG, the most verbose level: In any case, back to the original issue - as an example, here's a rule for domains "google.com" & "stackoverflow.com": and when it tries to reach stackoverflow a few moments later, a notification: Here's the rule change log:
|
ok, this is what is causing the problem. On the field If you need to specify several domains you have to use a regex like this: I don't know right now if we allow several For now use the above regex. |
Aha! Yup, that works - & that explains it. The confusion was primarily that I just seemed to be following the greyed-out example :) Related: Perhaps a good idea in the docs/faq would be just a few regexp examples or common things - such as how to do multiple domains, "not domains" (i.e. reject everything except a given domain), etc, for those who are less regexp-experienced :) |
I agree, the thing is that I've just added the rules editor, so I haven't had time yet to do it hehe. |
Reported here: #31 (comment) The LogLevel conf item should always exist, but just in case.
resolved. Added regexp examples to the docs: https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Rules-editor |
@gustavo-iniguez-goya sorry to bug u, could u edit this old post & remove the old lnk2 url? That domain is about to lapse & I'm afraid that registrar is known to "repurpose" old domains for unsavory uses, want to get rid of that old link to avoid associating myself with whtever they put there, if possible |
Sure! done. |
Question: is the 2nd line on the notification dialog meant to be the "from this command line?" i.e. as in this screenshot:
I'm trying to make a rule for a compressed executable that extracts itself to a different temporary path each time, as shown in the screenshot - I thought I could have it be identified by that second line, /usr/bin/python /usr/bin/deluge. But when I structure the rule as shown, it doesn't seem to work.
Perhaps some indicator on the notification dialog, for clarity? i.e.
xxxxx
yyyyy
->
Executable: xxxx
Command Line: yyyy
(if that's the case)
The text was updated successfully, but these errors were encountered: