<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 - nft 0.9.1 - table family inet, chain type nat, fails to auto-load modules"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1359">1359</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>nft 0.9.1 - table family inet, chain type nat, fails to auto-load modules
</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>other
</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>james@nurealm.net
</td>
</tr></table>
<p>
<div>
<pre>Arch Linux
linux 5.2.5.arch1-1
nftables 1:0.9.1-1
For clarity, removing any nat rules, then:
...
table inet nats {
chain prenats { type nat hook prerouting priority -100;
}
chain postnats { type nat hook postrouting priority 100;
}
}
...
$ sudo /etc/nftables.conf
/etc/nftables.conf:374:8-14: Error: Could not process rule: No such file or
directory
chain prenats { type nat hook prerouting priority -100;
^^^^^^^
/etc/nftables.conf:395:8-15: Error: Could not process rule: No such file or
directory
chain postnats { type nat hook postrouting priority 100;
^^^^^^^^
$ lsmod |grep nft
nft_log 16384 0
nft_limit 16384 0
nft_ct 20480 0
nf_conntrack 163840 1 nft_ct
nf_tables 163840 4 nft_ct,nft_log,nft_limit,nf_tables_set
Edit:
table inet nats { -> table ip nats {
$ sudo /etc/nftables.conf
$ lsmod |grep nft
nft_chain_nat 16384 2
nf_nat 53248 1 nft_chain_nat
nft_log 16384 3
nft_limit 16384 2
nft_ct 20480 2
nf_conntrack 163840 2 nf_nat,nft_ct
nf_tables 163840 101
nft_ct,nft_log,nft_chain_nat,nft_limit,nf_tables_set
Edit, back the way it was:
table ip nats { -> table inet nats {
Now, it works fine:
$ sudo /etc/nftables.conf
The same set of modules:
$ lsmod |grep nft
nft_chain_nat 16384 0
nf_nat 53248 1 nft_chain_nat
nft_log 16384 3
nft_limit 16384 2
nft_ct 20480 2
nf_conntrack 163840 2 nf_nat,nft_ct
nf_tables 163840 101
nft_ct,nft_log,nft_chain_nat,nft_limit,nf_tables_set
Why were nft_chain_nat and nf_nat not auto loaded?
Is this a kernel problem? Or an nftables problem?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>