Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Anyone know how to rewrite this?


    I was running suse 9 and I had a script at start up to share my internet connection. Now this script don't work in suse 9.1. The script has these:

    Code:
    /sbin/insmod ip_tables
    /sbin/insmod ip_conntrack
    /sbin/insmod ip_conntrack_ftp
    /sbin/insmod ip_conntrack_irc
    /sbin/insmod iptable_nat
    /sbin/insmod ip_nat_ftp
    And it returns me "No such file or directory" for all!
    What I must change?
    Thanks

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    it is "/sbin/insmod" it is complaining about.

    does /sbin/insmod exist? i presume it does not, so run "updatedb" then "locate insmod" to find the correct location of insmod. update your script accordingly.

    Generally your kernel should already have most of those modules built in anyway, without the need to use insmod or modprobe to load them.

    Jason

  3. #3
    Yeah insmod exist in /sbin, take a look of message:

    Code:
    nsmod: can't read 'ip_tables': No such file or directory
    ip_conntrack
    insmod: can't read 'ip_conntrack': No such file or directory
    ip_conntrack_ftp
    insmod: can't read 'ip_conntrack_ftp': No such file or directory
    ip_conntrack_irc
    insmod: can't read 'ip_conntrack_irc': No such file or directory
    iptable_nat
    insmod: can't read 'iptable_nat': No such file or directory
    ip_nat_ftp
    insmod: can't read 'ip_nat_ftp': No such file or directory

  4. $spacer_open
    $spacer_close
  5. #4
    use modprobe instead of insmod.

    Good luck

  6. #5
    That worked thank you all for the replies

Posting Permissions

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