FS#43401 - [nftables] Flush using ruleset
Attached to Project:
Arch Linux
Opened by nfnty (nfnty) - Saturday, 10 January 2015, 13:16 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 17 February 2015, 00:32 GMT
Opened by nfnty (nfnty) - Saturday, 10 January 2015, 13:16 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 17 February 2015, 00:32 GMT
|
Details
ExecStop and nftables-flush script can be replaced with:
ExecStop=/usr/bin/nft flush ruleset http://wiki.nftables.org/wiki-nftables/index.php/Operations_at_ruleset_level |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Tuesday, 17 February 2015, 00:32 GMT
Reason for closing: Implemented
Tuesday, 17 February 2015, 00:32 GMT
Reason for closing: Implemented
All tests I made on 3.18.0 were successful, maybe grsec hardening patch cause the crash.
3.18 is still in testing, so I will wait it reach core before improving this.
Attached log from linux 3.18.2-2
https://bugzilla.kernel.org/show_bug.cgi?id=91441
Also, an ExecReload rule should be added for atomic reloading with the following:
ExecReload=/usr/bin/nft -f /usr/lib/systemd/scripts/nftables-reload
Attached nftables-reload.
Read more about atomic reloading and iptables here:
http://www.tummy.com/blogs/2010/01/16/iptables-restore-is-in-the-atomic-age/
Someone added a section on the wiki for it:
https://wiki.archlinux.org/index.php/Nftables#Atomic_Reloading