main/iptables: improve ebtables init
-
The broute table does not work with nftables which breaks the restart action:
# /etc/init.d/ebtables restart
* Stopping bridge firewall ...
ebtables: No chain/target/match by that name
ebtables v1.8.4 (nf_tables): RULE_FLUSH failed (No such file or directory): rule in chain (null)
ebtables: No chain/target/match by that name [ !! ]
* ERROR: ebtables failed to stop
-
With
SAVE_ON_STOP
the init script will fail to stop sinceebtables-save
is called with wrong parameters:
# /etc/init.d/ebtables stop
* Saving ebtables state ...
Unknown arguments found on commandline [ !! ]
* ERROR: ebtables failed to stop