opensnitch/daemon
Gustavo Iñiguez Goia 479b8ded59
Some checks failed
Build status / Build (push) Has been cancelled
improved connections parsing
Under certain conditions, when we dumped inodes via netlink, we were
linking network connections to wrong applications.

- To improve this situation:

1) Use netfilter's UID by default:
   Sometimes the UID reported via netlink was different than the one
   reported by libnetfilter. libnetfilter UID is always correct.
   If you had a rule that filtered by UID, this problem could cause to
   prompt you again to allow the connection.

2) Use the netlink entry that matches exactly the properties of an
   outgoing connection:
   There're some in-kernel sockets that doesn't match 1:1 outgoing
   connections (daemon/netlink/socket.go#L22).
   In order to identify the applications that initiate these network
   connections we use a workaround. But under certain conditions
   (source port reuse), we were associating connections to wrong
   applications.
   So in order to avoid this problem, if there's a 1:1 match use that
   netlink entry. If not, fallback to the workaround.

- misc: added more logs to better debug these issues.
2021-11-15 13:26:52 +01:00
..
conman improved connections parsing 2021-11-15 13:26:52 +01:00
core Bump versions to v1.5.0rc1 2021-10-19 12:00:22 +02:00
dns updated import paths 2020-12-09 18:18:42 +01:00
firewall fixed interception and system fw rules, default action 2021-08-25 13:06:32 +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 improved connections parsing 2021-11-15 13:26:52 +01:00
netstat updated import paths 2020-12-09 18:18:42 +01:00
procmon Allow to intercept more kernel connections (#513) 2021-09-23 01:44:12 +02:00
rule rules: don't load rules that fail to compile 2021-11-12 12:08:31 +01:00
statistics statistics: fixed missed connections 2021-08-13 12:18:10 +02:00
ui improved process monitor method (re)configuring 2021-09-04 21:18:22 +02:00
.gitignore daemon -> opensnitchd (ref #118) 2018-04-10 18:38:04 +02:00
default-config.json Use eBPF as procs monitor method by default 2021-08-17 13:54:46 +02:00
go.mod updated protoc command to generate the protobuffer 2021-10-06 11:10:57 +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 action reject 2021-09-12 10:54:24 +02:00
Makefile need to generate go.sum otherwise we get errors 2021-09-15 04:28:56 +00:00
opensnitch.spec Bump versions to v1.5.0rc1 2021-10-19 12:00:22 +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