opensnitch/daemon/firewall
Gustavo Iñiguez Goia d31c4e86bf
fixed adding interception rule on some kernels
On some kernels (4.19), adding the interception rule to the
inet-mangle-output chain failed.

According to the nftables wiki, the mangle-output chain have (must?) to
be of type Route:
"route type: ... mangle table ... for the output hook (for other
hooks use type filter instead)."

https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains#Base_chain_types

So if we fail adding the interception rule, we retry it with type Filter
instead of Route.

Related: #781 , ced9a24
2023-01-04 21:44:46 +01:00
..
common Allow to configure firewall rules from the GUI (#660) 2022-05-03 22:05:12 +02:00
config sys fw: silence error parsing configuration 2022-12-11 22:11:37 +01:00
iptables sys fw: improved chains creation 2022-12-23 00:50:22 +01:00
nftables fixed adding interception rule on some kernels 2023-01-04 21:44:46 +01:00
rules.go sys fw: improved chains creation 2022-12-23 00:50:22 +01:00