Juan Pedro Paredes Caballero
Juan Pedro Paredes Caballero
Nice one, good job!
AFAIK I got a ENOENT (Error NO ENTity) error with the response for table nat and chain prerouting_miniupnpd. `596 recvmsg(4, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{nlmsg_len=512, nlmsg_type=NLMSG_ERROR, nlmsg_flags=0, nlmsg_seq=1709039263, nlmsg_pid=389069}, {error=-ENOENT,...
With some LOG_DEBUG added, I got some context debugging for rule_set_dnat ``` miniupnpd[740584]: AddPortMapping: ext port 8881 to 192.168.0.10:8881 protocol TCP for: test leaseduration=0 rhost= miniupnpd[740584]: UPnP permission rule 0...
Same problem with upstream limnl 1.0.5 ``` nuci:/usr/src/miniupnp/miniupnpd# ldd miniupnpd linux-vdso.so.1 (0x00007ffda4937000) libnftnl.so.11 => /lib/x86_64-linux-gnu/libnftnl.so.11 (0x00007f800f9e5000) libmnl.so.0 => /lib/x86_64-linux-gnu/libmnl.so.0 (0x00007f800f9de000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f800f9d4000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f800f600000) /lib64/ld-linux-x86-64.so.2 (0x00007f800fa55000)...
The first impression that I have, was same behaviour with PR #672 applied ``` nuci miniupnpd[167253]: AddPortMapping: ext port 8881 to 192.168.0.10:8881 protocol TCP for: test leaseduration=0 rhost= nuci miniupnpd[167253]:...
With the debugging information in libmnl I can see that nft_cb_run was called twice, the first one was a success call, I supose it not use netlink, the second one...
First things first, before imitating Dante descending into hell, I will focus on how the rule is constructed. This is the full bytecode send to the PF VM as a...
OMG! Just I see that ufw uses "ip" and "ip6" ruleset, and miniupnpd "inet" ruleset.
OK, if I change the ipv4 related code with NFPROTO_IPV4 and ipv6 related code with NFPROTO_IPV6 to test. @miniupnp Maybe for interest of the project a formal PR with this...
All test in my envoronment were a success. Waiting input for the proposal to close the issue. ``` nuci:~# /usr/bin/upnpc -u http://192.168.0.1:50080/rootDesc.xml -l upnpc : miniupnpc library test client, version...