-
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
Is there a way to see the events in terminal? #54
Comments
hi Seva, not yet, but I've got it in the rodmap. I can't tell a date, but I'd like to have more options to visualize the data (cli, web ui ...). |
Thank you for letting me know! Also, if there is some stuff started on this matter, I can extend it and a PR for it! Cheers, |
Nothing published yet. But I can commit a minimal and simple cli to display at least global stats. I've taken a look at the different libs to build cli applications, because it'd be cool to be able to monitor statistics with a UI like https://github.com/mum4k/termdash/raw/master/doc/images/termdashdemo_0_9_0.gif, having different tabs like we have with the python UI. Also, besides having cli options (-show-hosts, -show-users, -show-procs), an interactive shell would be useful https://github.com/c-bata/go-prompt |
Thank you for the update and for explaining your graphical cli vision! Yes, it would be great to see a little sample. |
added an initial tool here: https://github.com/gustavo-iniguez-goya/opensnitch/tree/cli
TODOs:
|
@gustavo-iniguez-goya thank you so much! amazing work, I'm gonna go through it. |
cli updated a little bit, mainly for work with latest changes. Just in case someone wants to try out the binary, I've attached it:
/etc/opensnitchd/default-config.json: |
@gustavo-iniguez-goya is there a way to debug it? In all cases I'm stuck at
I tried to run it while the opensnitchd system unit is running and I see that from --help :
In my config of daemon (server) I have:
|
I think you may have the GUI running. Try out this binary. I've improved connecting to unix sockets. It should tell you if there's a UI running or if it can't listening for nodes for any reason. |
Hi @gustavo-iniguez-goya , I prefer to build the package so I did a git pull but now looking into this error on make:
|
You only need to build the cli tool:
|
Alright! It works with tcp sockets only as in (1) but fails with the current unix socket as in (2), please see:
I wonder how would I find the tcp socket file without guessing the
This produces an empty view with flickering and empty UI in terminal for
|
The problem is that the UIs act like servers, so you can only have one UI running at a time.
I haven't investigated if it can work as a many<-to->many relationship.
See what server address you've configured for the daemon in the default_config.json.
Your command is correct, it should display the last stats of the daemon, if the daemon server address is |
@gustavo-iniguez-goya just tested it and it works like a charm! i'm at f1d406f very nice the tabs for hits per host, process, address, port & uid, very useful grouping. to install I did:
the only thing I wonder, is there a way to accept, allow the new connections or it is a future feature request? great work, |
thank you for the feedback!
not yet. Well, it's coded but I disabled it because it caused some issues. I was wondering how to let the user know about outoing connections. If you're not watching the events (because you are on another terminal or desktop) you may miss the option to allow/deny it. One way could be to display a notification using On the other hand, there's some intention to extend this tool to manage the config, fw and app rules (I don't have much time lately to focus on this): Let's keep this issue open in order to keep tracking the progress. |
thanks for the info! sounds good, better keep this one open than track multiple issues. you're right. yesterday, I started to explore your code for this, I think it start around here: opensnitch/server/cli/views/views.go Lines 97 to 100 in f1d406f
which then leads to: opensnitch/server/cli/views/rules.go Line 64 in f1d406f
opensnitch/server/cli/views/rules.go Line 97 in f1d406f
I think the best to be able to ask the user within the terminal in a optional and non-blocking way. It would definitely add a lot of added value because we could run opensnitch without an X server anywhere! |
Hi there,
I'm just wondering if it is possible to keep track of events seen in General tab of allow/deny actions directly in the terminal?
Thank you for your help!
Seva
The text was updated successfully, but these errors were encountered: