Posted: Mon Aug 18, 2014 11:20 Post subject: ip6 netfilter modules not loading correctly
I just installed dd-wrt on a Netgear WNDR3700v4 DD-WRT v24-sp2
(04/18/14) std).
I have managed to enable Ipv6 and a Hurricane electric
tunnel. The next step was to install the IPv6 firewall. As the modules
aren't available by default, I compiled them successfully. I took the
kernel 3.10.37 from the relevant svn-version (23919).
However, loading them always fails with error message like:
Aug 18 06:31:34 gateway kernel: [29020.800000] ip6_tables: Unknown symbol xt_free_table_info (err 0)
Aug 18 06:31:34 gateway kernel: [29020.810000] ip6_tables: Unknown symbol xt_alloc_table_info (err 0)
Aug 18 06:31:34 gateway kernel: [29020.810000] ip6_tables: Unknown symbol xt_recseq (err 0)
Aug 18 06:31:34 gateway kernel: [29020.820000] ip6_tables: Unknown symbol xt_register_table (err 0)
Aug 18 06:31:34 gateway kernel: [29020.830000] ip6_tables: Unknown symbol xt_proto_init (err 0)
Aug 18 06:31:34 gateway kernel: [29020.830000] ip6_tables: Unknown symbol xt_replace_table (err 0)
Aug 18 06:31:34 gateway kernel: [29020.840000] ip6_tables: Unknown symbol ipv6_find_hdr (err 0)
Aug 18 06:31:34 gateway kernel: [29020.840000] ip6_tables: Unknown symbol xt_find_table_lock (err 0)
Aug 18 06:31:34 gateway kernel: [29020.850000] ip6_tables: Unknown symbol xt_table_unlock (err 0)
Aug 18 06:31:34 gateway kernel: [29020.860000] ip6_tables: Unknown symbol xt_proto_fini (err 0)
Aug 18 06:31:34 gateway kernel: [29020.860000] ip6_tables: Unknown symbol xt_find_revision (err 0)
Aug 18 06:31:34 gateway kernel: [29020.870000] ip6_tables: Unknown symbol xt_unregister_table (err 0)
According to /proc/kallsyms, almost all symbols are already defined
in the running kernel. (I couldn't find the symbol ipv6_find_hdr, but
is present in the System.map-file during compilation - is this indicative of the problem?)
I've tried various toolchains
(toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33 from the DD-wrt
website) and toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2 (from
openwrt) with the kernel configuration adapted from .config_wndr3700v4
in the kernel sources
($(DD-WRT)/src/linux/universal/linux-3.10) (attached).
However, if I use these toolchains to compile a simple helloWorld
module (attached), this module loads and unloads
correctly.
there´s no need to compile them yourself. modules should be included. look for them in absolut path. _________________ RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
Posted: Mon Aug 18, 2014 13:44 Post subject: ip6 netfilter modules not loading correctly
I'm afraid I cannot find them anywhere - in particular they are not under /lib/modules/3.10.37 on the router. One example of a missing module is ip6_tables.ko.
hm very strange. you may try an upgrade. maybe you can use my modules, i am on 3.10.40 _________________ RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
thanks for the hint. Are these 3.10.40-modules easily available on the web?
Also, in the meantime I had a closer look at the issue. I seem to be unable to use any symbols which are exported via EXPORT_SYMBOL_GPL. Symbols exported via EXPORT_SYMBOL work fine. In other words, for some reason the modules are not recognised as being licensed under the GPL even the MODULE_LICENSE("GPL") - command is correctly there (and modinfo produces the right information).
IPv6 together with radvd is enabled and working. None of the modules you mentioned are present under /lib/modules/3.10.37 - these are exactly the ones I'm looking for (which I have compiled but cannot insert). Hence there is no IPv6-firewall at the moment. The IPv4-firewall is working fine.
Unfortunately there is nothing at the location you mentioned. Also, the kernel modules that I found were either little-endian (which won't work, as the WNDR3700 has a big-endian chip), or had the same problem. I will need to keep looking...
According to the spec, there is plenty of space - 128MB of RAM and 128MB of flash. I also have a usb memory stick attached to the usb port, which gives me a further 2GB. So space is not a problem.
hum maybe with atheros, the modules are not included generally. you may open up a ticket on trac. i also didnt found them on an 8MB flash atheros unit.
anyway, i have uploaded them for you, but i am on broadcom.so, no idea if that works _________________ RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
looks like BS just has added all modules for your type of router. _________________ RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )