<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:phil@nwl.cc" title="Phil Sutter <phil@nwl.cc>"> <span class="fn">Phil Sutter</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - "nft -s list ruleset" should include "flush ruleset" as first line"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1696">bug 1696</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>phil@nwl.cc
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - "nft -s list ruleset" should include "flush ruleset" as first line"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1696#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - "nft -s list ruleset" should include "flush ruleset" as first line"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1696">bug 1696</a>
from <span class="vcard"><a class="email" href="mailto:phil@nwl.cc" title="Phil Sutter <phil@nwl.cc>"> <span class="fn">Phil Sutter</span></a>
</span></b>
<pre>Well, first of all the requested behaviour is unrelated to what '-s' flag does,
so it doesn't make much sense to combine them.
Next, a ruleset dumped via 'nft list ruleset' will restore fine after a reboot,
so dumping into a file and loading it via 'nft -f <file>' works fine for a
service to make a ruleset persistent.
Then, creating a flushing dump is trivial using '(echo 'flush ruleset' && nft
list ruleset) > /path/to/dump'. Another alternative for a service is to run
'nft "flush ruleset; include /path/to/dump;"'. Fedora's nftables service does
that, for instance.
I really don't see why nft should assist in this simple task.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>