opensnitch/daemon
Gustavo Iñiguez Goia ced9a24933
nftables: fixed adding interception rules
On some systems after disabling and enabling the interception, the
DNS rule was not being re-added, with error: chain already exists.

When the interception is disabled, we firstly remove the rules,
and secondly if the chain and table is empty we try to remove them
as well.

However, on some systems even if "nft list ruleset" didn't list the
chains to hold our rules, it failed with error "already exists".

Before adding a chain now we check if it exists, and if it does we
reuse it.

Closes #781
2022-12-22 00:19:16 +01:00
..
conman find connections with connection fields swapped 2022-12-20 17:16:20 +01:00
core better errors, fixed default sys fw conf 2022-12-16 17:09:37 +01:00
dns centralized ebpf modules loading 2022-11-18 20:38:52 +01:00
firewall nftables: fixed adding interception rules 2022-12-22 00:19:16 +01:00
log loggers: improved remote_syslog logging 2022-05-25 17:46:27 +02:00
netfilter rules: allow to filter by network interface name 2022-09-24 17:12:09 +02:00
netlink added initial support for ICMP and SCTP 2022-12-18 00:41:06 +01:00
netstat updated import paths 2020-12-09 18:18:42 +01:00
procmon find connections with connection fields swapped 2022-12-20 17:16:20 +01:00
rule sys fw: added option to filter by MAC 2022-10-23 11:36:51 +02:00
statistics loggers: improved remote_syslog logging 2022-05-25 17:46:27 +02:00
ui sys fw: allow to change fw type from the GUI 2022-12-16 17:03:36 +01:00
.gitignore daemon -> opensnitchd (ref #118) 2018-04-10 18:38:04 +02:00
default-config.json added way to send events to syslog 2022-05-17 16:28:59 +02:00
go.mod bump nftables dependency version, packaging changes 2022-05-04 18:36:50 +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 sys fw: allow to change fw type from the GUI 2022-12-16 17:03:36 +01:00
Makefile daemon/Makefile: improvements to make distro packaging easier (#780) 2022-12-21 10:35:52 +01:00
opensnitchd.service systemd service: wait 10s to stop, otherwise kill daemon 2022-10-27 17:53:42 +02:00
system-fw.json better errors, fixed default sys fw conf 2022-12-16 17:09:37 +01:00