opensnitch/daemon/firewall/nftables
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
..
exprs sys fw: improved rules, profiles policies 2022-12-19 10:59:43 +01:00
chains.go fixed adding interception rule on some kernels 2023-01-04 21:44:46 +01:00
monitor.go sys fw: improved chains creation 2022-12-23 00:50:22 +01:00
nftables.go sys fw: improved chains creation 2022-12-23 00:50:22 +01:00
parser.go sys fw: added option to filter by MAC 2022-10-23 11:36:51 +02:00
rule_helpers.go fw: support for icmpv6 nftables in system rules 2022-07-02 18:14:40 +02:00
rules.go Allow to configure firewall rules from the GUI (#660) 2022-05-03 22:05:12 +02:00
system.go sys fw: improved chains creation 2022-12-23 00:50:22 +01:00
tables.go nftables: fixed adding interception rules 2022-12-22 00:19:16 +01:00
utils.go run tests on every change, fixed fw options 2022-05-18 17:47:39 +02:00