Commit graph

363 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
23b61f5341 ui, pop-ups: allow to choose the position of popups
This feature was disabled on the preferences dialog, it just needed to
be removed or implmented.
2021-04-17 13:07:38 +02:00
Gustavo Iñiguez Goia
49d12612db ui: updated help url, fixed a typo
point help links to evilsocket's repo.
fixed error launching the GUI when there's no systray available.
2021-04-13 00:10:56 +02:00
Gustavo Iñiguez Goia
f288078c0b ui, db: fixed loading db type from saved configuration
If a db from disk was being used, and the user changed it to in-memory,
we were still loading the file from disk.
2021-04-12 17:59:14 +02:00
Gustavo Iñiguez Goia
03e97903d6 ui, prefs/pop-ups: improved layout
specially for non-desktop displays (mobiles), like librem5.
2021-04-12 17:52:27 +02:00
Gustavo Iñiguez Goia
4332469fc2 improved nodes connectivity handling
problem:
 - after losing network connectivity node<->server, the node didn't restore
   the connection. In reality, the connection with the server was not
   closed, but the notifications channel was closed due to inactivity
   after 20s.

set inactivity timeouts to 20s on both node and server. Previous
timeouts were 2h for the main connection and 20s for the streaming
channels (notifications).

- get rid of the logic to determine if the server is alive or not based
  on sending pings.
  Instead, use the connection events when a node connects/disconnects
  (Subscribe).
  The Ping call is still used to send the statistics.

other:
- fixed exception when updating the status of a node.
2021-04-11 20:55:14 +02:00
Gustavo Iñiguez Goia
356e3dc54e ui: fixed notifications and rules editing
- fixed remote nodes rules editing.
- improved notifications when a node is not connected and an action is
  performed on it (edit a rule, disable/enable a rule, etc).
2021-04-08 00:49:49 +02:00
Gustavo Iñiguez Goia
2c1c3b0251 ui,stats: added more options to handle rules in batch
- allow to change duration and action to multiple rules at once.
closes #393
- fixed updating a rule on the db (per node).
- fixed typo.

 #334
2021-04-07 23:14:26 +02:00
Gustavo Iñiguez Goia
c7411a4770 ui, pop-up: improved layout
better layout when there's or there isn't app description.
2021-04-07 19:03:50 +02:00
Gustavo Iñiguez Goia
dbe7861bcb ui: allow to select eBPF method from the GUI
+ fixed getting PID column in order to monitor processes' details.
2021-04-05 13:28:16 +02:00
Gustavo Iñiguez Goia
4b0b8ccef0 display an error if a monitor method has not been applied
Sometimes ftrace monitor method fails to apply, but we displayed on the
GUI that it had been applied.
2021-03-29 17:59:09 +02:00
Gustavo Iñiguez Goia
7934dfac7f debs, ui: fixed package creation 2021-03-29 01:54:24 +02:00
Gustavo Iñiguez Goia
879d18f15a ui: fixed monitoring processes details
- ui: fixed error getting the icon of an app.
- ui: fixed getting the list of pids of an app.
- ui: improved proc details start/stop icon behaviour.
- daemon: improved error message when we fail getting the details of a
  process.

others:
 - changed icon search by system-search.
2021-03-29 01:36:41 +02:00
Gustavo Iñiguez Goia
8af290e970 Bump versions to 1.4.0rc1 2021-03-26 00:59:16 +01:00
gnuhead-chieb
f8607d8619
[Locale]Add Japanese Translation (#375)
Added Japanese Translation
2021-03-21 22:23:47 +01:00
Flávio Costa
7cd16c6f3d
Update Brazilian Portuguese translation (#372) 2021-03-20 10:42:37 +01:00
Gustavo Iñiguez Goia
b29283805e updated spanish translation 2021-03-19 13:28:34 +01:00
Gustavo Iñiguez Goia
7b7e110537
Merge pull request #352 from tioguda/translation
Update Brazilian Portuguese translation
2021-03-18 00:31:14 +01:00
Gustavo Iñiguez Goia
0362a0b780 ui, pop-ups: added app description, better icon discovery
Added the description of an app to the pop-ups, to help users know
what an application is or does.

The discovery of app icons has been improved for those edge cases where
the system is not properly configured and we were not able to get the
icon of the app.
2021-03-03 23:57:25 +01:00
Gustavo Iñiguez Goia
26671ded24 added support for list of domains
Initial support to filter connections using lists of domains.

The lists must be in hosts format:
- 0.0.0.0 www.domain.com
- 127.0.0.1 www.domain.com

From the rules editor, create a new rule, and select
[x] To this lists of domains

Select a directory with files in hosts format, select [x] Priority rule,
select [x] Deny and click on Apply.

An example of a list in hosts format:
https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt

Note: you can also add a list of domains to allow, not only domains to
block.

TODOs:
- support for URLs besides directories (local lists).
- support for scheduled updates of the above URLs.

related #298
2021-02-25 13:38:48 +01:00
Gustavo Iñiguez Goia
484be33b08
Merge pull request #346 from themighty1/master
makefile:
2021-02-22 16:36:55 +01:00
tioguda
cf67387ca0
Fix Brazilian Portuguese translation 2021-02-16 05:52:51 -03:00
tioguda
ba0e068656
Update Brazilian Portuguese translation 2021-02-15 23:05:26 -03:00
Gustavo Iñiguez Goia
8a204c081d ui, db: allow to save events to disk
Added option to save events to disk, instead on memory.
2021-02-16 01:25:09 +01:00
Gustavo Iñiguez Goia
510a351053 ui, rules: replace rules received from the daemon
We added UPSERTS, to update the time of a rule when a connection matched
that rule.

However UPSERTS in SQLite weren't introduced until v3.24.x, thus it
causes errors on older versions (like the ones shipped with Ubuntu
16/18).

On the other hand, we need to replace the rules once we receive them
from the daemon, to reflect on the GUI any change made on the rules by hand.

More info: #344
2021-02-13 19:55:47 +01:00
themighty1
be0c051205 makefile:
rename, remove unused targets
    trigger targets only when relevant files actually are changed
git:
    do not track files which are generated during make
github actions fix to not rely on a pre-built ui.pb.go
2021-02-13 18:48:49 +03:00
Gustavo Iñiguez Goia
5e1a398bc6
Merge pull request #341 from tioguda/translation
Update Brazilian Portuguese translation
2021-02-10 21:58:22 +01:00
Gustavo Iñiguez Goia
d33cf8b8ba Bump version to 1.3.6 2021-02-10 20:17:02 +01:00
Gustavo Iñiguez Goia
7995d7b5db ui, pop-up: fixed expanding labels
In some KDE versions, the cmdline and args labels of a process were not
being expanded properly.
2021-02-10 01:08:28 +01:00
Gustavo Iñiguez Goia
2d907142cd ui: added pause state icon
When the user pauses the interception from the events window, update the
systray icon as well. Otherwise it looks like the interception is on.

- #339
2021-02-08 16:41:52 +01:00
Gustavo Iñiguez Goia
3a5ee13caa ui, prompt: improved showing app path and args
The pop-ups display 3 labels:
 - The name of the app (Firefox, aMule, Chromium, etc)
 - The path of the binary (/usr/bin/telnet)
 - The cmd line that was typed or executed (telnet 1.1.1.1)

The app name is always displayed. If we haven't found the app for a
given connection, "Unknown process" is displayed".

The app path is where the binary is located, and the app arguments is
the cmd line that wsa typed by the user, or executed by a process.

So for example, if you execute: telnet 1.1.1.1, the user wouldn't know
what is the path of the application. Someone could have faked it, thus
it's useful to display path to the binary.

On the other hand, if you execute /usr/bin/telnet.netkit 1.1.1.1, the
binary path is already part of the cmdline, so there's no need to show
that information to the user.
2021-02-08 00:50:01 +01:00
Gustavo Iñiguez Goia
95e4afac8e ui: fixed configuring rules default duration
Default duration was not set properly on the first run, defaulting to
allow/deny connections always "once", until it was changed by the user.
2021-02-06 12:48:46 +01:00
tioguda
3b750f71ca
Update Brazilian Portuguese translation 2021-01-30 05:54:54 -03:00
Gustavo Iñiguez Goia
ee76b9c6b9 ui, stats: order rules by name by default
- orders rules by name, but if the user orders the rules by others
  columns keep it.
- fixed updating nodes when reconnecting.
2021-01-25 01:24:25 +01:00
Gustavo Iñiguez Goia
37f91bb3dc ui: improved rules section
request #334:
- added context menu: clone
- added context menu: edit
- added context menu: enable/disable
- clicking on any cell selects the row, instead of only a cell.
- removed internals fields of a rule in the rule's details view
- fixed displaying rules by nodes, type, etc, after clicking on the left
  panel.

- don't allow to edit rules that are of unknown type
  (simple, regexp, network, list).
2021-01-23 00:11:40 +01:00
Gustavo Iñiguez Goia
a6afb9571b ui: fixed displaying node stats, rules timestamp
- Use unixnano field when inserting rules to the DB, instead of the time
  when it's actually inserted.
- Fixed displaying local node stats with linuxmint's python3-grpcio
  (1.16.x)
2021-01-22 15:56:56 +01:00
Gustavo Iñiguez Goia
b4672830cd fixed regexp rules exceptions
- ui, ruleseditor: added missing operator when using a regular
  expression on the DstIP/Net field.
- daemon, rules: ensure that regular expressions are of type string
  before evaluating them.

reported here: #333
2021-01-17 16:45:28 +01:00
Gustavo Iñiguez Goia
e23b838500 ui, stats: better position for rules panes
On the first run the left pane was taking all the space on some
environments.
2021-01-12 17:17:36 +01:00
Gustavo Iñiguez Goia
bdafd7fb42 Bump version to 1.3.5 2021-01-11 23:01:23 +01:00
Gustavo Iñiguez Goia
2f80beb592
Merge pull request #331 from tioguda/translation
Update Brazilian Portuguese translation
2021-01-10 12:40:42 +01:00
tioguda
db7d4c288c
Update Brazilian Portuguese translation 2021-01-09 20:54:50 -03:00
freddii
23f35a556e german translation update 2021-01-10 00:31:54 +01:00
Gustavo Iñiguez Goia
2d04579fba ui: updated translations files
plus a change: until reboot
2021-01-09 23:48:01 +01:00
Gustavo Iñiguez Goia
6c40502bbc ui: fixed pop-ups regexp options
When the GUI is translated, we were not getting IP/domains regexp
correctly. In other languages "to" has a different number of characters
(a, para, zu, ...)
2021-01-09 17:43:50 +01:00
Gustavo Iñiguez Goia
18693cdc6d ui: added hints to buttons, changed until restart
- Added hints to buttons that delete intercepted events, hosts, etc.
closes #329

- Changed "for this session" action by "until reboot". closes #307
2021-01-09 17:25:17 +01:00
Gustavo Iñiguez Goia
024fa3e1b6 ui: added utils for group some common code
messages, operations on strings, etc.
2021-01-07 00:06:40 +01:00
Gustavo Iñiguez Goia
0a9e3479e4 ui, deb/rpm: package translations
Package translations in order to distribute and install them.
2021-01-06 21:41:54 +01:00
Gustavo Iñiguez Goia
d3ce534b1f ui, stats: fixed items filtering
On tabs where you can filter items typing in the search box, after
coming back from a detailed view, the previous search was not being
restored.
2021-01-06 01:25:57 +01:00
Flávio Costa
a91739bdce
Add Brazilian Portuguese translation (#328)
* Add Brazilian Portuguese translation

* Update Brazilian portuguese translations

* Fix Brazilian Portuguese translation
2021-01-05 22:47:35 +01:00
freddii
9e4248e923
fixed german translation (#327)
* fixed german translation

* fixed typing mistake

Co-authored-by: freddii <https://freddii@github.com>
2021-01-05 11:53:12 +01:00
Gustavo Iñiguez Goia
8bc06e50aa i18n: updated spanish and basque translations 2021-01-04 21:53:20 +01:00