Commit graph

1,530 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
f2c4b37d6e deleted output rule to drop marked packets
We had an OUTPUT rule to drop marked packets. Packets are marked with a
mark when a user defined rule denies a connection.

The thing is that we only intercept NEW connections, and when we deny a
connnection using NF_DROP, the packets doesn't flow to the next iptables
rule or chain. So it'd be rare to see a packet on the OUTPUT chain marked
with the DropMark.

Besides, nfq_set_verdict2() doesn't seem to place the mark on the
packets (libnetfilter-queue 1.0.5).

This OUTPUT rule had 0 hits on different systems and users.
2021-01-10 23:20:50 +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
Gustavo Iñiguez Goia
eb1534136d
Merge pull request #330 from freddii/master
german translation update
2021-01-10 12:03:57 +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
Gustavo Iñiguez Goia
72b8472eec ui, popups: improved message when resolving a domain
Improved message displayed when resolving a domain.

requested here: #321
2021-01-04 21:46:33 +01:00
Gustavo Iñiguez Goia
fcab4458fd
Merge pull request #325 from freddii/master
added german translation
2021-01-04 16:54:23 +01:00
freddii
d0fa290734 added german translation 2021-01-04 15:58:33 +01:00
Gustavo Iñiguez Goia
3a3363cb9a rules: delete file from disk if Duration changes
If the user changed the Duration of a rule, from Always to !Always
(temporary), we were not deleting from disk the file of the old
rule.
2021-01-04 12:48:05 +01:00
Gustavo Iñiguez Goia
8cc10fb9fb ui, stats/events: fixed displaying errors if any
When we received a notification error from an operation (like delete a
rule), the dialog box to inform the user was created but we didn't
display it.
2021-01-04 12:25:19 +01:00
Gustavo Iñiguez Goia
85168fe73a ui,i18n: use correct syntax for translations 2021-01-04 02:16:53 +01:00
Gustavo Iñiguez Goia
a6d1e585e1 ui, bin: fixed typo that prevented loading translations 2021-01-03 00:50:35 +01:00
Gustavo Iñiguez Goia
4c855eff91 ui: added translations to the installation steps 2021-01-03 00:32:12 +01:00
Gustavo Iñiguez Goia
3dc80809af updated i18n README 2021-01-02 21:55:02 +01:00
Gustavo Iñiguez Goia
e05cb3a865 added support for internazionalization
Read ui/i18n/README.md for information about how to add new
languages.

requested here: #319
2021-01-02 21:40:19 +01:00
Gustavo Iñiguez Goia
c0d70e2f63
Merge pull request #320 from benjaoming/precise-instructions
More precise information regarding pip installations
2021-01-01 23:01:11 +01:00
Gustavo Iñiguez Goia
60145f9010 ui: fixed typo that prevented refreshing the stats
On rare occasions probably.
2020-12-31 11:46:56 +01:00
Gustavo Iñiguez Goia
785fd8e107 ui,stats: fixed logout problems on some DE
On KDE and GNOME Shell we were preventing logging out from the
session.

Related: #318
2020-12-31 00:36:19 +01:00
Benjamin Bach
89269e8b44
More precise information regarding pip installations 2020-12-29 16:51:36 +01:00
themighty1
078faa9fda
unittest: test live reloading of rules (#317)
* unittest: test live reloading of rules

* data files for the previous commit

* tests: move files under /testdata; give better names to rules

Co-authored-by: themighty1 <themighty1>
2020-12-28 12:59:29 +01:00
Gustavo Iñiguez Goia
75a08245a9 Revert "Merge pull request #315 from themighty1/unminimize"
This reverts commit 81a66805a5, reversing
changes made to efcc944631.
2020-12-24 20:28:38 +01:00
Gustavo Iñiguez Goia
81a66805a5
Merge pull request #315 from themighty1/unminimize
Unminimize maximized windows properly.
2020-12-23 22:58:20 +01:00
themighty1
8a2c645ad5 Unminimize maximized windows properly. 2020-12-23 22:55:19 +03:00
Gustavo Iñiguez Goia
efcc944631
Merge pull request #314 from luzpaz/typos
Fix random typos
2020-12-23 20:25:41 +01:00
luz paz
d15d3465a9 Fix random typos
Found via `codespell v2.1.dev0`  
`codespell -q 3 -L ans`
2020-12-23 13:24:59 -05:00
Gustavo Iñiguez Goia
e95f448c44 fixed rules panels position
closes #312
2020-12-23 16:55:13 +01:00
Gustavo Iñiguez Goia
85fc5396bf updated grpc protocol files 2020-12-22 22:14:53 +01:00
Gustavo Iñiguez Goia
1384db6a1b fw: clean system rules before insert new ones
If the daemon exits unexpectedly, fw rules are not deleted.
So on every start/reload, clean any possible rule before adding new
ones.
2020-12-22 22:06:37 +01:00
Gustavo Iñiguez Goia
b1bf8e4143
Merge pull request #313 from themighty1/unixnano_fix
Use daemon's event timestamp in UI.
2020-12-22 21:58:58 +01:00
themighty1
3abb3e4c0d Use daemon's event timestamp in UI.
Use the timestamp instead of the event object when iterating over the last events. ~15x speed increase.
Increase event buffer to 100. On my machine I routinely hit the ceiling of 50 events under some multitasking workloads. Small buffer results in connection attempts not being logged.
Fix Makefile to rebuild when ui.proto changes
2020-12-22 22:50:18 +03:00
Gustavo Iñiguez Goia
003a668da7 ui, stats: improved start/stop interception button 2020-12-21 21:42:44 +01:00
Gustavo Iñiguez Goia
f7fd6fdd7b ui: set window icon
closes #302
2020-12-21 12:29:35 +01:00
Gustavo Iñiguez Goia
57b20cdfbd ui: added rules left pane to organize rules
An easy way to filter rules. It allows to filter rules by:
 - Duration
 - Nodes
2020-12-20 23:36:15 +01:00
Gustavo Iñiguez Goia
9b035ca66e added unit tests for process parsing and rules 2020-12-19 19:31:09 +01:00
Gustavo Iñiguez Goia
daa0037335
Merge pull request #306 from themighty1/master
Add a custom view/model to display the connections list more effi…
2020-12-18 21:42:41 +01:00
Gustavo Iñiguez Goia
5622f7a051
Merge pull request #308 from themighty1/nofocus
Disable always-on focus on cmdCleanSql button.
2020-12-18 21:18:34 +01:00
themighty1
667bfc2520 Disable always-on focus on cmdCleanSql button.
Right now because this button always has a focus if the user accidentally presses Enter even while typing in the Filter field, all db will be cleaned.
2020-12-18 23:06:15 +03:00
themighty1
a77c3398e8 Disable always-on focus on cmdCleanSql button.
Right now because this button always has a focus if the user accidentally presses Enter even while typing in the Filter field, all db will be cleaned.
2020-12-18 23:00:19 +03:00
Gustavo Iñiguez Goia
e59133beb2 rules: skip checking not enabled rules 2020-12-18 16:42:34 +01:00
themighty1
59216458af Add a custom view/model to display the connections list more efficiently than currently with QSqlQueryModel.
The major steps are:

    - take advantage of sqlite's default autoincremented rowid column
    - add index of the db columns
    - when a filter is applied, we build a map of rowids corresponding to the filter
    - when user scrolls the view, query the db only for that portion of db which contains the rows to be displayed
    - because sqlite cannot use an index when a wildcard is at the start of the LIKE expression, e.g. "process LIKE '%sbin%'", use a workaround:
      - keep track of all distinct values in each column
      - check in python if any of the distinct values contain the filter string
      - reconstruct the query string: instead of "process LIKE '%sbin%'" we use "process IN (<list of distinct values containing 'sbin'>)"

    Minor steps:
    - mimic some QSqlQueryModel's methods so that our model can be a drop-in replacement
    - disable view's default scrollbar and use our own scrollbar which is aware of how many rows are in the db
2020-12-18 16:14:27 +03:00
Gustavo Iñiguez Goia
438ceca57d Bump version to 1.3.0
Some checks failed
Build status / Build (push) Has been cancelled
v1.3.0
2020-12-16 18:59:03 +01:00