opensnitch/daemon
Gustavo Iñiguez Goia 21c6a914d6 drop connections while a pop-up is running
Prior to v1.4.x versions, when a pop-up asked the user to allow or deny
a connection, the rest of the network traffic was dropped until an
action was taken.

We fixed it, but when a pop-up was asking to allow or deny a new connection,
we let it passing by if the daemon's DefaultAction option was set to
allow, even if the user hadn't taken an action on it yet.

It also caused some confusion if the users had configured the pop-up's
DefaultAction to deny, they were expecting to not allow the connection
until they had decided what to do.

Now the previous behaviour has been restored, having these usage
scenarios:
- If the GUI is connected + daemon DefaultAction set to allow or deny.
  Result:
    1. Prompt the user to allow or deny the new connection.
    2. Deny the new connection until the user takes an action on it.
    3. Allow the rest of traffic, allowing known connections, and
       denying new ones until the active pop-up is closed and we can
       prompt the user again.

- GUI disconnected.
  Result:
    1. Apply daemon's DefaultAction from the configuration file
       default-config.json.

closes: #392
2021-06-16 09:50:36 +02:00
..
conman find PID: use legacy methods if the PID is not found. 2021-06-08 14:11:19 +02:00
core Bump versions to 1.4.0rc2 2021-05-07 21:24:42 +02:00
dns updated import paths 2020-12-09 18:18:42 +01:00
firewall added nftables support 2021-06-07 01:32:05 +02:00
log minor fixes to prevent go vet from complaining 2021-02-13 19:18:38 +03:00
netfilter wait for success when sending packet to chan, don't error out after first failed attempt. 2021-02-19 09:01:01 +03:00
netlink eBPF: ignore netlink errors if there're no connections 2021-05-29 00:16:18 +02:00
netstat updated import paths 2020-12-09 18:18:42 +01:00
procmon ebpf: fixed race condition when listing connections 2021-06-07 22:55:08 +02:00
rule fixed race condition when deleting a rule from disk 2021-06-05 16:33:50 +02:00
statistics Use daemon's event timestamp in UI. 2020-12-22 22:50:18 +03:00
ui drop connections while a pop-up is running 2021-06-16 09:50:36 +02:00
.gitignore daemon -> opensnitchd (ref #118) 2018-04-10 18:38:04 +02:00
default-config.json set server address and log file from the default config 2020-10-26 23:16:27 +01:00
go.mod added nftables support 2021-06-07 01:32:05 +02:00
Gopkg.toml fix: calling ftrace probe Reset in order to start from a clean state (fixes #159) 2018-04-18 02:00:12 +02:00
main.go added nftables support 2021-06-07 01:32:05 +02:00
Makefile makefile: 2021-02-13 18:48:49 +03:00
opensnitch.spec deb,rpm: minor changes to ease packing 2021-05-16 23:55:34 +02:00
opensnitchd.service set server address and log file from the default config 2020-10-26 23:16:27 +01:00
system-fw.json Merge branch 'priority-rules' into main 2020-11-13 00:14:39 +01:00