Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19
Any idea why I have to specify insmod ip_table.ko explicitly in the modules directory? Shouldn't the kernel resolve hte module name and add it? Also the next time I boot, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370

    Any idea why I have to specify
    insmod ip_table.ko explicitly in the modules directory?
    Shouldn't the kernel resolve hte module name and add it?

    Also the next time I boot, will it get installed or will I have to do a insmod again?

    thanks for the help...
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  2. #12
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That was just a step in debugging; I don't mean for you to run insmod manually every time. =)

    It is really strange that modprobe doesn't work for you, though. Can you find anything about iptable_filter in modules.dep (try "grep iptable modules.dep")? I can't help suspecting that depmod does something wrong.

  3. #13
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    boy oh boy!!!...i dont know wat I did...the iptable modules got loaded successfully...but my modules.dep is empty!!!! i dont know what happened...
    i guess depmod 2.6.0 did somethg...is this bad?
    can i recreate my modules.dep file in any way?

    thanks
    Nik
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  4. #14
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Try running just depmod instead, without any arguments, see if that helps anything.

  5. #15
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    man...thanks for helpin me out...i really appreciate it...
    jus runnin a depmod worked!!!!....in the module-init-tools i was told to run
    "depmod 2.6.0"...i dunno why it dint work...
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  6. #16
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Yeah, it's strange that didn't work, but, oh well. As long as it works now, I guess it's OK.

  7. #17
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    i got iptables to work correctly finally thanks to all the help!!!!
    but there is one caveat....
    during boot when my kernel tries to install iptables it tells me
    table "filter" not initialized...maybe you have to run insmod?
    table "filter" is not initialized...maybe you have to upgrade the kernel?


    After booting though if I manually run
    insmod /lib/modules/2.6.0/kernel/net/ipv4/netfilter/ip_tables.ko
    insmod /lib/modules/2.6.0/kernel/net/ipv4/netfilter/iptable_filter.ko
    insmod /lib/modules/2.6.0/kernel/net/ipv4/netfilter/ipt_REJECT.ko

    it works...any idea why I have to manually add them everytime?
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

  8. #18
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    What distribution is it that you're using? RedHat (and possibly others) needs to get /etc/rc.d/rc.sysinit patched to work with 2.6 modules. RedHat's rc.sysinit checks for the existance of /proc/ksyms to see if it's running a modular kernel. 2.6 doesn't have /proc/ksyms, though, so you need to replace it with some other check. On my system, I just edited that line so that it checks for /proc/modules instead.
    If rc.sysinit doesn't detect a modular kernel, it sets /proc/sys/kernel/modprobe to /bin/true so that the kernel won't try to autoload anything.

  9. #19
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    yeah...that did the trick....thanks
    Fixing Unix is better than working with Windows.
    http://nikhilk.homedns.org/projects/index.html

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •