<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:terciofilho@gmail.com" title="Tercio Gaudencio Filho <terciofilho@gmail.com>"> <span class="fn">Tercio Gaudencio Filho</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - chain priority cannot be set by a defined variable"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1172">bug 1172</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>terciofilho@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - chain priority cannot be set by a defined variable"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1172#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - chain priority cannot be set by a defined variable"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1172">bug 1172</a>
from <span class="vcard"><a class="email" href="mailto:terciofilho@gmail.com" title="Tercio Gaudencio Filho <terciofilho@gmail.com>"> <span class="fn">Tercio Gaudencio Filho</span></a>
</span></b>
<pre>This error also occurs when setting a chain policy:
define DEFAULT_POLICY = "drop"
add chain ip filter input { type filter hook input priority 0; policy
$DEFAULT_POLICY; }
This is useful when we have a separated file to override defaults, like:
/etc/nftables.rules:
#----------------------------------------------------------
define DEFAULT_POLICY = "drop"
include "/etc/defaults/nftables.rules"
add chain ip filter input { type filter hook input priority 0; policy
$DEFAULT_POLICY; }
#----------------------------------------------------------
/etc/defaults/nftables.rules:
#----------------------------------------------------------
redefine DEFAULT_POLICY = "accept"
#----------------------------------------------------------</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>