<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 - arp forward filter doesn't work"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1155">1155</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>arp forward filter doesn't work
</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>All
</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>kernel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>maxime.deroucy@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Hello,
I tried to use nftables arp table on forward hook but it doesn't work.
The wiki says arp hooks are input and output but nft doesn't fail when
I add it.
<a href="https://wiki.nftables.org/wiki-nftables/index.php/Quick_reference-nftables_in_10_minutes#Chains">https://wiki.nftables.org/wiki-nftables/index.php/Quick_reference-nftables_in_10_minutes#Chains</a>
Add the table on host1 :
```
table arp arptest {
chain input {
type filter hook input priority 0; policy accept;
counter log prefix "INPUT FILTER ARP: "
}
chain forward {
type filter hook forward priority 0; policy accept;
counter log prefix "FORWARD FILTER ARP: "
}
chain output {
type filter hook output priority 0; policy accept;
counter log prefix "OUTPUT FILTER ARP: "
}
}
```
The topologie of my network (1 host, 2 vms):
host1
virbr0 192.168.122.1 (bridge containing vnet1 and vnet2)
vnet1 vnet2
↕ ↕
ens3 ens3
192.168.122.2 192.168.122.3
vm1 vm2
problem:
```
vm1$ arping -I ens3 192.168.122.3
```
On host1 I see input counter increasing, "INPUT FILTER ARP" logs in
journalctl ; but nothing else.
Output counter doesn't move (no "OUTPUT …" logs), which is normal.
But forward counter doesn't move either (no "FORWARD …" logs) which
isn't normal !
Did I do something wrong ? Did I misunderstand something ?
If arp can't be use on forward hook, why nft doesn't raise an error
when I added the chain ?
```
max@mde-test % nft -v
nftables v0.7 (Scrooge McDuck)
max@mde-test % uname -a
Linux mde-test 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017
x86_64 GNU/Linux
```
More informations can be found here:
<a href="https://pelican.craoc.fr/nftables.html#arp-vm1-vm2">https://pelican.craoc.fr/nftables.html#arp-vm1-vm2</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>