I discover there is a NETMAP extension to use with iptables on Openwrt !
Does someone know how to load module with iptables.
I try to put iptables -m with no success. iptables v1.8.3 (legacy): Couldn't load match `iptables-mod-dnetmap':No such file or directory
Thank you.
Package kmod-ipt-dnetmap (4.14.171+2.14-8) is installed on root and has the following files:
/etc/modules.d/ipt-dnetmap
/lib/modules/4.14.171/xt_DNETMAP.ko
Package iptables-mod-dnetmap (2.14-8) is installed on root and has the following files:
/usr/lib/iptables/libxt_DNETMAP.so
Well, you'll definitely need the module and apparently this is the correct syntax for this version of NETMAP. Don't ask, I was googling for half an hour to find it, everyone was using the --to with NETMAP, but apparently DNETMAP is different.
I come back after few days, making lot of tests from some treats,
I just got one time a response from a natted IP, but i can't reproduce the conditions of this little success
I don't know if DNETMAP is really working like NETMAP, i will make some try on Ubuntu Server.
Again you are looking at NETMAP, while this is DNETMAP.
Check the 3rd example from the ubuntu manpage link I posted above. It seems to be using DNETMAP on both PRE and POSTROUTING.