miniupnp icon indicating copy to clipboard operation
miniupnp copied to clipboard

Question about "iptc_commit() invalid argument"

Open hilee0602 opened this issue 1 year ago • 5 comments

Hi. I have problem for use miniupnpd in my embedded system.

When I execute miniupnpd and send upnp add query from my PC then I can see below message in my embedded system's console.

"x_tables: ip_tables: DNAT.0 target: invalid size 32 (kernel) != (user) 24 miniupnpd[3227]: addnatrule() : iptc_commit() error : Invalid argument"

My device's kernel version is 5.10.226 and miniupnpd version is 2.3.7. Please help me how to fix this problem.

Thank you so much.

hilee0602 avatar Apr 14 '25 07:04 hilee0602

Make sure miniupnpd has been linked with the right version of libiptc for your system.

miniupnp avatar Apr 14 '25 22:04 miniupnp

@miniupnp Thank you reply.

My iptables version is 1.4.18. I think my iptables can support miniupnpd 2.3.7.

Thank you.

hilee0602 avatar Apr 14 '25 22:04 hilee0602

I can't help you much. You could use the testiptcrdr program in the netfilter subdirectory to debug.

Also make sure you are not mixing 32bits libraries with a 64bits kernel or something.

What is the architecture ?

miniupnp avatar Apr 14 '25 22:04 miniupnp

@miniupnp

My embedded system's archtecture is aarch64(ARM64). It's very strange... I also have miniupnpd 1.3 version. If I use 1.3 version, it can work normaly.

I tried execute miniupnpd add "-vv" option and then I can see debug message on my console. Image

Thank you so much.

hilee0602 avatar Apr 14 '25 22:04 hilee0602

@miniupnp

Thank you for your supprt. I will take myself solve this problem.

Thank you so much.

hilee0602 avatar Apr 14 '25 23:04 hilee0602