<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - iptables v1.8.0 (nf_tables) has a problem inverting in-interface and maybe out"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1302">bug 1302</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;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>fw@strlen.de
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - iptables v1.8.0 (nf_tables) has a problem inverting in-interface and maybe out"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1302#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - iptables v1.8.0 (nf_tables) has a problem inverting in-interface and maybe out"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1302">bug 1302</a>
from <span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span></b>
<pre>(In reply to trever from <a href="show_bug.cgi?id=1302#c0">comment #0</a>)
<span class="quote">> From a script that works with plain iptables:
> iptables -A INPUT -i \!ppp0 -p udp --destination-port 53 -j ACCEPT
>
> # iptables-nft -A INPUT -i \!ppp0 -p tcp --destination-port 53 -j ACCEPT
>
> does not work!
>
> In part it yields:
>
> iifname "!ppp0" ip protocol tcp counter packets 0 bytes 0 accept
>
> in nft list ruleset
>
> I believe that is supposed to be
>
> iifname != "ppp0" ip protocol tcp counter packets 0 bytes 0 accept.</span >
No, its doing exactly what iptables is doing in this case.
You need to use
\! -i ppp0
(extra-positioned negation) instead.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>