From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: Re: Bug report DNAT destination not work Date: Thu, 2 Mar 2023 20:40:05 +0100 Message-ID: <20230302194005.GA9239@breakpoint.cc> References: <20230302104337.GA23204@breakpoint.cc> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Martin Zaharinov Cc: Florian Westphal , Pablo Neira Ayuso , netfilter , netfilter-devel@vger.kernel.org Martin Zaharinov wrote: > Hi Florian > > > i recheck and libxt_DNAT.so is symlink to libxt_NAT.so > > and i try : > > iptables v1.8.9 (nf_tables) What did you try? > --modprobe= try to insert modules using this command > --set-counters -c PKTS BYTES set the counter during insert/append > [!] --version -V print package version. > > > and show help . No idea what you did or what you are trying to show. IFF you ran "iptables -j DNAT --help", then libxt_DNAT is not found resp. iptables is looking at the wrong place. $ iptables-legacy -V iptables v1.8.9 (legacy) $ iptables -j DNAT --help [..] DNAT target options: --to-destination [[-]][:port[-port[/port]]] Address to map destination to. [--random] [--persistent] $ I can only guess what the problem might be. Maybe 'strace -f -e file iptables -j DNAT --help' will give a clue, there should be lines like this: newfstatat(AT_FDCWD, "/usr/lib64/xtables/libipt_DNAT.so", 0x7ffe94e3f180, 0) = -1 ENOENT newfstatat(AT_FDCWD, "/usr/lib64/xtables/libxt_DNAT.so", {st_mode=S ... = 0 openat(AT_FDCWD, "/usr/lib64/xtables/libxt_DNAT.so", O_RDONLY|O_CLOEXEC) = 4