Post Go back to editing

modprobe: module ip_tables not found in modules.dep

Hi EZ,

I am trying to run iptable script on uClinux platform on BF537 Stamp board, I 've enabled net filter using 'make menuconfig' command

when i run script it pops with the following error.

SETTING UP IPTABLES PROXY...
Loading required stateful/NAT kernel modules...
sh: can't execute '/sbin/depmod': No such file or directory
modprobe: module ip_tables not found in modules.dep
modprobe: module ip_conntrack not found in modules.dep
modprobe: module ip_conntrack_ftp not found in modules.dep
modprobe: module ip_conntrack_irc not found in modules.dep
modprobe: module iptable_nat not found in modules.dep
modprobe: module ip_nat_ftp not found in modules.dep
modprobe: module ip_nat_irc not found in modules.dep
    Enabling IP forwarding...
    External interface: eth2
       External interface IP address is: 192.168.4.9
    Loading proxy server rules...
modprobe: module ip_tables not found in modules.dep
iptables v1.4.5: can't initialize iptables table `nat': Table does not exist (do
you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables: No chain/target/match by that name.
modprobe: module ip_tables not found in modules.dep
iptables v1.4.5: can't initialize iptables table `nat': Table does not exist (do
you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
       Proxy server rule loading complete


modprobe: module ip_tables not found in modules.dep
iptables v1.4.5: can't initialize iptables table `nat': Table does not exist (do
you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
  Allowing packets with ICMP data (pings)

i think i need to enable some modules but no idea which are those modules i need to enable

any lights on how to solve this error??

  • Networking Support -> Networking options -> Network packet filtering framework -> IP: Netfilter Configuration -> IP tables support

    From: parashuram analog@sgaur.hosted.jivesoftware.com

    Sent: Monday, December 19, 2011 1:33 PM

    To: Zhang, Sonic

    Subject: New message: "modprobe: module ip_tables not found in modules.dep"

    Analog Devices EngineerZone<http://ez.analog.com/index.jspa>

    modprobe: module ip_tables not found in modules.dep

    created by parashuram<http://ez.analog.com/people/parashuram> in Linux Distribution for Blackfin - View the full discussion<http://ez.analog.com/message/38803#38803

  • Hello ,

    Thanks for ur quick answer, even after enabling

    Networking Support -->

         Networking options -->

              [*]Network packet  filtering framework(netfilter) -->     

                   IP: Netfilter Configuration ->

                        <*> IP tables  support(required for filtering/masq/NAT)

    downlaod the new uImage

    when I run my iptable script I get the same error.

    following is my 'svn info'

    Path: .
    URL: svn://blackfin.uclinux.org/uclinux-dist/trunk
    Repository Root: svn://blackfin.uclinux.org/uclinux-dist
    Repository UUID: 3e2a5524-39e8-4cb9-84a9-c49da69cba3a
    Revision: 10383
    Node Kind: directory
    Schedule: normal
    Last Changed Author: vivili
    Last Changed Rev: 10383
    Last Changed Date: 2011-09-08 02:56:43 -0400 (Thu, 08 Sep 2011)

    help is very much appriciated

    regards

    parashuram

  • when i run 'lsmod' output is

    Module                  Size  Used by

    I think no modules are running inside kernel, so i tried to insert the ip_tables.ko file with 'insmod ip_tables.ko'  , but got this

    ip_tables: exports duplicate symbol _ipt_do_table (owned by kernel)
    insmod: can't insert 'ip_tables.ko': invalid module format

    I am woundering why I cant insert the modules??

    in between should it needs modules needs to inserted manaully ??

    regards

    parashu

  • Hi EZ,

    I solved it , ip_tables and iptable_nat module got loaded automatically and later it was popping up with error

    iptables: No chain/target/match by that name.

    this is coz of 'state' match support kernel module was not loaded , i loaded it with 'modprobe xt_state' command

    now it works fine , just posted this coz might help for someone

    merry xmass enjoy

  • Hi ,

    i am also facing the same issue with the iptables.

    i am running  2019_r1 release built from petalinux for ZC706 + FMComms5.

    here is the error i am getting ...

    root@analog:~# iptables -L
    iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.

    can u help me how to fix it ?

    thanks in advance.