<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 - Definitions cannot be referenced in chain type configuration"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1442">1442</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Definitions cannot be referenced in chain type configuration
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Ubuntu
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>phillc@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>I've looked through the documentation, and through previous bugs to attempt to
establish if this is a bug, not a feature, or just WAD but haven't been able to
find much info.
Having set interface definitions at the top of nftables.conf
define $if_main = ens33
The definition works fine in subsequent rule configuration, but does not work
in chain type definitions.
I am attempting to introduce configuration portability for an ingress hook
chain by doing this:
table netdev filter {
chain Main_Ingress {
type filter hook ingress device $if_main priority -500; policy accept;
}
However I get "Error: syntax error, unexpected '$', expecting string or quoted
string or string with a trailing asterisk".
OS: Ubuntu 20.04 kernel 5.4.0-40-generic
nftables/focal 0.9.3-2 via apt package</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>