On Thu, Aug 29, 2013 at 10:59 AM, Sedat Dilek <sedat.di...@gmail.com> wrote:
> On Thu, Aug 29, 2013 at 10:36 AM, Adam Novak <ano...@soe.ucsc.edu> wrote:
>> Hello,
>>
>> I've attached that file. It doesn't seem to have anything about
>> nat_ipv4 or nat_ipv6.
>>
>
> $ egrep -i 'ip6t|kmod-ip|nat' /tmp/dot-config_adam.txt | grep ^CONFIG | sort
> CONFIG_DEFAULT_ip6tables=y
> CONFIG_DEFAULT_kmod-ipt-nathelper=y
> CONFIG_DEFAULT_kmod-natsemi=y
> CONFIG_PACKAGE_ip6tables=y
> CONFIG_PACKAGE_kmod-ip6tables=y
> CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
> CONFIG_PACKAGE_kmod-ipt-conntrack=y
> CONFIG_PACKAGE_kmod-ipt-core=y
> CONFIG_PACKAGE_kmod-ipt-extra=y
> CONFIG_PACKAGE_kmod-ipt-nat-extra=y
> CONFIG_PACKAGE_kmod-ipt-nathelper-extra=y
> CONFIG_PACKAGE_kmod-ipt-nathelper=y
> CONFIG_PACKAGE_kmod-ipt-nat=y
> CONFIG_PACKAGE_kmod-ipv6=y
> CONFIG_PACKAGE_kmod-natsemi=y
> CONFIG_PACKAGE_libip6tc=y
>
> There is no *ip6table_nat* selected (from the diff you pointed to):
>
> $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NF_NAT_
> IPV6,
> $(P_V6)nf_nat_ipv6 $(P_V6)ip6table_nat, ge 3.8.0),))
>
> I cannot say why...
>
> Did you look over the sources and searched for "nf_nat_ipv6.ko" file.
>
> $ find /path/to/openwrt/ -name 'nf_nat_ipv6.ko'
>
> ...was it built?
>

[ KERNEL-SPACE ]

In your kernel-config you have...

CONFIG_NF_NAT_IPV4=m
CONFIG_NF_NAT_IPV6=m

...so I would expect to see as corresponding OpenWrt Kconfig-options:

CONFIG_PACKAGE_kmod-ipt-nat=y <--- IPv4?
CONFIG_PACKAGE_kmod-ip6t-nat=y <--- IPv6 (this option does not exist!)?

[ USER-SPACE (here: iptables package) ]

Next question is what are the corresponding iptables Kconfig-options
to above kernel-options?

You have...

CONFIG_DEFAULT_iptables=y
CONFIG_PACKAGE_iptables=y

...but did not selected any of the CONFIG_PACKAGE_iptables-mod-* options...

# CONFIG_PACKAGE_iptables-mod-account is not set
# CONFIG_PACKAGE_iptables-mod-chaos is not set
# CONFIG_PACKAGE_iptables-mod-condition is not set
# CONFIG_PACKAGE_iptables-mod-conntrack-extra is not set
# CONFIG_PACKAGE_iptables-mod-delude is not set
# CONFIG_PACKAGE_iptables-mod-dhcpmac is not set
# CONFIG_PACKAGE_iptables-mod-dnetmap is not set
# CONFIG_PACKAGE_iptables-mod-extra is not set
# CONFIG_PACKAGE_iptables-mod-filter is not set
# CONFIG_PACKAGE_iptables-mod-fuzzy is not set
# CONFIG_PACKAGE_iptables-mod-geoip is not set
# CONFIG_PACKAGE_iptables-mod-hashlimit is not set
# CONFIG_PACKAGE_iptables-mod-iface is not set
# CONFIG_PACKAGE_iptables-mod-ipmark is not set
# CONFIG_PACKAGE_iptables-mod-ipopt is not set
# CONFIG_PACKAGE_iptables-mod-ipp2p is not set
# CONFIG_PACKAGE_iptables-mod-iprange is not set
# CONFIG_PACKAGE_iptables-mod-ipsec is not set
# CONFIG_PACKAGE_iptables-mod-ipv4options is not set
# CONFIG_PACKAGE_iptables-mod-led is not set
# CONFIG_PACKAGE_iptables-mod-length2 is not set
# CONFIG_PACKAGE_iptables-mod-logmark is not set
# CONFIG_PACKAGE_iptables-mod-lscan is not set
# CONFIG_PACKAGE_iptables-mod-lua is not set
# CONFIG_PACKAGE_iptables-mod-nat-extra is not set <--- NAT for both
IPv4 and IPv6?
# CONFIG_PACKAGE_iptables-mod-psd is not set
# CONFIG_PACKAGE_iptables-mod-quota2 is not set
# CONFIG_PACKAGE_iptables-mod-rawnat is not set
# CONFIG_PACKAGE_iptables-mod-steal is not set
# CONFIG_PACKAGE_iptables-mod-sysrq is not set
# CONFIG_PACKAGE_iptables-mod-tarpit is not set
# CONFIG_PACKAGE_iptables-mod-tee is not set
# CONFIG_PACKAGE_iptables-mod-tproxy is not set
# CONFIG_PACKAGE_iptables-mod-u32 is not set
# CONFIG_PACKAGE_iptables-mod-ulog is not set

Anyway, those options correspond to each other and should be
auto-selected... to say make it more user-friendly.
( I know from the Freetz router project, Linux-kernel<->iptables is
still a chaos...)

Sorry, but I had to dig more into the sources to understand all
correlations in OpenWrt.

- Sedat -
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to