I'm having quite a battle here.
I need to include the *SNAT and *DNAT .so files in /usr/lib/iptables, and can't figure out quite how to get things configured.
I notice some anomalies that I'm sure explain the problem I'm having, but I don't know how to interpret them.
In .config, on a pristine checkout, after running make menconfig and immediately saving it we see:
. .
CONFIG_PACKAGE_iptables=y
CONFIG_PACKAGE_iptables-mod-conntrack=y
CONFIG_PACKAGE_iptables-mod-extra=y
CONFIG_PACKAGE_iptables-mod-filter=y
CONFIG_PACKAGE_iptables-mod-imq=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
. . .
I'm pretty sure this is why I can't do anything with those packages when I do a "make menuconfig" again:
? ? <M> kmod-ebtables................................. Bridge firewallin? ?
? ? <M> kmod-ip6tables.............................................. IPv? ?
? ? --- kmod-ipt-conntrack....................... Modules for connection? ?
? ? --- kmod-ipt-extra............................................. Extr? ?
? ? --- kmod-ipt-filter.................... Modules for packet content i? ?
? ? --- kmod-ipt-imq............................... Intermediate Queuein? ?
? ? --- kmod-ipt-ipopt........... Modules for matching/changing IP packe? ?
? ? <M> kmod-ipt-iprange........................... Module for matching ? ?
? ? <M> kmod-ipt-ipsec........................ Modules for matching IPSe? ?
Note that they're "lined out" and can't be modified.
So what I want is:
CONFIG_PACKAGE_iptables-mod-nat=y
in .config, which I assume will cause similar behavior in the make menuconfig program, and result in the proper modules being put into the .bin file.
But nothing I do with Kernel Modules -> Netfilter Extensions -> kmod-ipt-nat
has any effect on the CONFIG_PACKAGE line in .config.
So I'm wondering how one *DOES* change it; you can't manually change it in .config, because it gets changed right back again when make menuconfig is run.
For that matter the iptables-mod-nat .ipk file doesn't get built, either, no matter what happens to the options in the menuconfig screen.
I would think this is a bug, but I'm betting there's something I need to know, but do not. . .