<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Parse error for importing set with netmask"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1330">1330</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Parse error for importing set with netmask
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>email@cs-ware.de
</td>
</tr></table>
<p>
<div>
<pre>Create the following rules:
# nft add table inet filter
# nft add set inet filter blocklistssh4_8 { type ipv4_addr\; }
# nft add element inet filter blocklistssh4_8 { 1.1.1.1 }
# nft add chain inet filter blocklistssh
# nft add inet filter blocklistssh ip saddr \& 255.0.0.0 @blocklistssh4_8
counter drop
Pipe into file:
# nft list ruleset > rules.nftables
Flush ruleset:
# nft flush ruleset
Try to reimport rules:
# nft -f rules.nftables
rules.nftables:8:26-43: Error: Set 'blocklistssh4_8/8' does not exist
ip saddr @blocklistssh4_8/8 counter packets 0 bytes 0 drop
^^^^^^^^^^^^^^^^^^
Context:
# nft --version
nftables v0.9.0 (Fearless Fosdick)
# cat /proc/version
Linux version 4.9.0-8-amd64 (<a href="mailto:debian-kernel@lists.debian.org">debian-kernel@lists.debian.org</a>) (gcc version 6.3.0
20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.144-3.1 (2019-02-19)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>