1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to start "string" module

Discussion in 'Tomato Firmware' started by kthaddock, Jun 15, 2013.

  1. kthaddock

    kthaddock Network Guru Member

    How do I start "string" module ? in shibbys 110-aio build.
    - add netfilter xt_string support insmod xt_string.ko <<== is it missing ?

    I have tried:

    But when i do lsmod I cant see module loaded.
    Code:
    root@Hostname:/tmp/home/root# lsmod
    Module                  Size  Used by    Tainted: P
    tun                    6464  1
    nls_cp850              3648  0
    ebt_ip                  1280 20
    ebtable_nat              928  1
    ebt_pkttype              544 12
    ebtable_filter          896  1
    ebtables              17856  4 ebt_ip,ebtable_nat,ebt_pkttype,ebtable_filter
    ip6table_mangle          992  0
    ip6table_filter          704  0
    xt_webmon              16320  1
    xt_web                  2016  1
    xt_layer7              10896  4
    ipt_ipp2p              10080 16
    xt_recent              6800  2
    xt_IMQ                  736  0
    imq                    2320  0
    ehci_hcd              34640  0
    vfat                    9216  0
    fat                    45936  1 vfat
    ext2                  55648  0
    ext3                  113568  3
    jbd                    48352  1 ext3
    mbcache                4528  2 ext2,ext3
    usb_storage            33120  3
    sd_mod                21408  4
    scsi_wait_scan          384  0
    scsi_mod              75488  3 usb_storage,sd_mod,scsi_wait_scan
    jffs2                106128  1
    zlib_inflate          13248  1 jffs2
    zlib_deflate          19440  1 jffs2
    nf_nat_sip              5920  0
    nf_conntrack_sip      19008  1 nf_nat_sip
    nf_nat_h323            5504  0
    nf_conntrack_h323      37152  1 nf_nat_h323
    nf_nat_rtsp            3600  0
    nf_conntrack_rtsp      4496  1 nf_nat_rtsp
    wl                  2617008  0
    dnsmq                  2032  1 wl
    et                    37344  0
    igs                    13584  1 wl
    emf                    17568  2 wl,igs
    
    Can't find it here either:
    Code:
    root@nod-e36-02:/lib/modules/2.6.22.19/kernel/net/netfilter# lsmod
    Module                  Size  Used by    Tainted: P
    tun                    6464  1
    nls_cp850              3648  0
    ebt_ip                  1280 20
    ebtable_nat              928  1
    ebt_pkttype              544 12
    ebtable_filter          896  1
    ebtables              17856  4 ebt_ip,ebtable_nat,ebt_pkttype,ebtable_filter
    ip6table_mangle          992  0
    ip6table_filter          704  0
    xt_webmon              16320  1
    xt_web                  2016  1
    xt_layer7              10896  4
    ipt_ipp2p              10080 16
    xt_recent              6800  2
    xt_IMQ                  736  0
    imq                    2320  0
    ehci_hcd              34640  0
    vfat                    9216  0
    fat                    45936  1 vfat
    ext2                  55648  0
    ext3                  113568  3
    jbd                    48352  1 ext3
    mbcache                4528  2 ext2,ext3
    usb_storage            33120  3
    sd_mod                21408  4
    scsi_wait_scan          384  0
    scsi_mod              75488  3 usb_storage,sd_mod,scsi_wait_scan
    jffs2                106128  1
    zlib_inflate          13248  1 jffs2
    zlib_deflate          19440  1 jffs2
    nf_nat_sip              5920  0
    nf_conntrack_sip      19008  1 nf_nat_sip
    nf_nat_h323            5504  0
    nf_conntrack_h323      37152  1 nf_nat_h323
    nf_nat_rtsp            3600  0
    nf_conntrack_rtsp      4496  1 nf_nat_rtsp
    wl                  2617008  0
    dnsmq                  2032  1 wl
    et                    37344  0
    igs                    13584  1 wl
    emf                    17568  2 wl,igs
    
    kthaddock
     
  2. mstombs

    mstombs Network Guru Member

  3. kthaddock

    kthaddock Network Guru Member

    Thanks mstombs
    Just what I thought,

    kthaddock
     
  4. darkknight93

    darkknight93 Networkin' Nut Member

    same for the module "SEMGET" :( no longer included since v108
     
  5. kthaddock

    kthaddock Network Guru Member

  6. koitsu

    koitsu Network Guru Member

    By the way, the proper answer is:

    You do absolutely nothing to load the xt_string module, other than use iptables -m string ... like you normally would. Really, no joke.

    iptables/netfilter will try to load the module on its own, if it needs to (it may be statically included in the kernel, in which case you won't see it in lsmod, but it'll work just fine). You do not need to call insmod or modprobe yourself, unless you're explicitly trying to use the module from a different/unique path other than stock kernel module and netfilter module search paths.

    P.S. -- What the hell is an xt_string.ko module doing in /usr/bin? Wrong wrong wrong. I don't know what firmware you're using where that existed, or why you put it there yourself (somehow? Maybe mount -o bind?), but that's wrong.
     
  7. kthaddock

    kthaddock Network Guru Member

    Nice to have you back Koitsu.
    That was what Shibby told me to. See link I thought he has added -string as a module.
    Working fine now in iptables using to block torrent downloads.

    kthaddock
     
  8. koitsu

    koitsu Network Guru Member

    Ahh, understood. Just to explain the technical aspects of it, by the way:

    http://repo.or.cz/w/tomato.git/blob...4:/release/src-rt/linux/linux-2.6/config_base

    Had this said CONFIG_NETFILTER_XT_MATCH_STRING=m (note m at the end, not y) it would have been built as a netfilter module (.ko file) and ended up installed as /lib/modules/2.6.22.19/kernel/net/netfilter/xt_string.ko. But you still wouldn't have needed to call modprobe xt_string or insmod xt_string because the iptables command does this automatically for you. The only time you need to manually modprobe/insmod something is if you've got a module you want to use/load in an alternate search path, or if you truly need to unload/reload the module for some reason (testing a debug version, etc.).
     

Share This Page