Temat: iptables letrigger netfilter mam problem z konfiguracją

Witam serdecznie.

Próbuje uruchomić trigger netfilter według tego poradnika http://openrouter.info/forum/viewtopic. … &t=511.
Niestety iptables zwraca zawsze "iptables v1.4.6: unknown option `--led-trigger-id'
Pakiety (kmod-ledtrig-netfilter iptables-mod-ipopt) zainstalowane.
"Package: kmod-ledtrig-netfilter
Version: 2.6.32.27-1cj"
"Package: iptables-mod-ipopt
Version: 1.4.6-3.1cj"

2

Odp: iptables letrigger netfilter mam problem z konfiguracją

pokaż wynik

lsmod
iptables -j LED --help

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: iptables letrigger netfilter mam problem z konfiguracją

Module                  Size  Used by    Not tainted
usbip                  10416  0
usbip_common_mod        7344  1 usbip
w1_therm                1808  0
gspca_main             17472  0
sierra                  6672  0
option                 17744  0
w1_gpio                  704  0
v4l2_common            11760  0
videodev               29344  2 gspca_main,v4l2_common
v4l1_compat            12128  1 videodev
usbserial              23840  2 sierra,option
usblp                   8512  0
cdc_acm                12624  0
w1_gpio_custom           864  0
i2c_dev                 4064  0
wire                   13776  2 w1_therm,w1_gpio
ohci_hcd               16896  0
ledtrig_usbdev          2112  0
xt_LED                  1104  0
ledtrig_morse           1840  0
ipt_SET                 1136  0
ipt_set                  896 10
ip_set_setlist          3088  0
ip_set_portmap          2640  0
ip_set_nethash          7008  1
ip_set_macipmap         2384  0
ip_set_iptreemap        8080  0
ip_set_iptree           4448  0
ip_set_ipportnethash     8736  0
ip_set_ipportiphash     6864  0
ip_set_ipporthash       6432  0
ip_set_ipmap            2432  0
ip_set_iphash           5344  0
ip_set                 12224 24 ipt_SET,ipt_set,ip_set_setlist,ip_set_portmap,ip                                                         _set_nethash,ip_set_macipmap,ip_set_iptreemap,ip_set_iptree,ip_set_ipportnethash                                                         ,ip_set_ipportiphash,ip_set_ipporthash,ip_set_ipmap,ip_set_iphash
xt_IMQ                   704  0
imq                     3728  0
ipt_weburl             14960  0
ipt_webmon             12944  0
ipt_timerange            848  0
nf_nat_tftp              432  0
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               816  0
nf_conntrack_irc        2512  1 nf_nat_irc
nf_nat_ftp              1328  0
nf_conntrack_ftp        4640  1 nf_nat_ftp
xt_iprange              1024  0
xt_HL                   1280  0
xt_hl                    896  0
xt_MARK                  496  0
ipt_ECN                 1312  0
xt_CLASSIFY              496  0
xt_time                 1552  0
xt_tcpmss                992  0
xt_statistic             816  0
xt_mark                  512  0
xt_length                672  0
ipt_ecn                  976  0
xt_DSCP                 1392  0
xt_dscp                 1008  0
xt_string                880  0
xt_layer7              10368  0
ipt_bandwidth          18016 20
ipt_REDIRECT             672  2
ipt_NETMAP               672  0
ipt_MASQUERADE           992  4
iptable_nat             2768  1
nf_nat                 10160  7 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_REDIRECT,i                                                         pt_NETMAP,ipt_MASQUERADE,iptable_nat
xt_CONNMARK              768  0
xt_recent               5536  0
xt_helper                816  0
xt_conntrack            2016  0
xt_connmark              656  0
xt_connbytes            1232  0
xt_NOTRACK               544  0
iptable_raw              656  1
xt_state                 768  3
nf_conntrack_ipv4       7376  6 iptable_nat,nf_nat
nf_defrag_ipv4           656  1 nf_conntrack_ipv4
nf_conntrack           37744 18 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conn                                                         track_irc,nf_nat_ftp,nf_conntrack_ftp,xt_layer7,ipt_MASQUERADE,iptable_nat,nf_na                                                         t,xt_CONNMARK,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_NOTRACK,xt_stat                                                         e,nf_conntrack_ipv4
pppoe                   8304  0
pppox                   1216  1 pppoe
ipt_REJECT              1712  2
xt_TCPMSS               2560  1
ipt_LOG                 4272  0
xt_comment               464  0
xt_multiport            1792  0
xt_mac                   576  0
xt_limit                1008  1
iptable_mangle           992  1
iptable_filter           768  1
ip_tables               8544  4 iptable_nat,iptable_raw,iptable_mangle,iptable_f                                                         ilter
xt_tcpudp               1760 32
x_tables                9296 45 xt_LED,ipt_SET,ipt_set,xt_IMQ,ipt_weburl,ipt_web                                                         mon,ipt_timerange,xt_iprange,xt_HL,xt_hl,xt_MARK,ipt_ECN,xt_CLASSIFY,xt_time,xt_                                                         tcpmss,xt_statistic,xt_mark,xt_length,ipt_ecn,xt_DSCP,xt_dscp,xt_string,xt_layer                                                         7,ipt_bandwidth,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,iptable_nat,xt_CONNMARK,x                                                         t_recent,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_NOTRACK,xt_state,ipt                                                         _REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_t                                                         cpudp
tun                    10048  0
snd_pcm                48240  0
snd_timer              13904  1 snd_pcm
snd_rawmidi            14176  0
snd_seq_device          4032  1 snd_rawmidi
snd_hwdep               4304  0
snd_page_alloc          4192  1 snd_pcm
snd                    32720  5 snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd                                                         _hwdep
soundcore               3520  1 snd
ppp_async               6400  0
ppp_generic            18848  3 pppoe,pppox,ppp_async
slhc                    4160  1 ppp_generic
vfat                    7712  0
fat                    42496  1 vfat
ath9k                  56896  0
ath9k_common            1200  1 ath9k
ath9k_hw              321072  2 ath9k,ath9k_common
ath                    12096  3 ath9k,ath9k_common,ath9k_hw
nls_iso8859_1           2832  0
nls_cp437               4368  0
mac80211              198160  1 ath9k
ts_fsm                  2608  0
ts_bm                   1456  0
ts_kmp                  1344  0
crc_ccitt                976  1 ppp_async
cfg80211              138176  2 ath9k,mac80211
compat                 16544  3 ath9k,mac80211,cfg80211
arc4                     816  2
aes_generic            30256  2
deflate                 1360  0
ecb                     1328  0
cbc                     2016  0
usb_storage            32720  1
ehci_hcd               31456  0
sd_mod                 21696  2
ext2                   42224  0
ext4                  210400  1
jbd2                   36544  1 ext4
usbcore                98016 12 usbip,gspca_main,sierra,option,usbserial,usblp,c                                                         dc_acm,ohci_hcd,ledtrig_usbdev,usb_storage,ehci_hcd
scsi_mod               68256  2 usb_storage,sd_mod
nls_base                4800  5 vfat,fat,nls_iso8859_1,nls_cp437,usbcore
mbcache                 3920  1 ext4
crc16                    976  1 ext4
leds_gpio               1456  0
button_hotplug          2592  0
gpio_buttons            2128  0
input_polldev           1360  1 gpio_buttons
input_core             17056  4 button_hotplug,gpio_buttons,input_polldev
root@Gargoyle:~$ iptables -j LED --help
iptables v1.4.6

Usage: iptables -[AD] chain rule-specification [options]
       iptables -I chain [rulenum] rule-specification [options]
       iptables -R chain rulenum rule-specification [options]
       iptables -D chain rulenum [options]
       iptables -[LS] [chain [rulenum]] [options]
       iptables -[FZ] [chain] [options]
       iptables -[NX] chain
       iptables -E old-chain-name new-chain-name
       iptables -P chain target [options]
       iptables -h (print this help information)

Commands:
Either long or short options are allowed.
  --append  -A chain            Append to chain
  --delete  -D chain            Delete matching rule from chain
  --delete  -D chain rulenum
                                Delete rule rulenum (1 = first) from chain
  --insert  -I chain [rulenum]
                                Insert in chain as rulenum (default 1=first)
  --replace -R chain rulenum
                                Replace rule rulenum (1 = first) in chain
  --list    -L [chain [rulenum]]
                                List the rules in a chain or all chains
  --list-rules -S [chain [rulenum]]
                                Print the rules in a chain or all chains
  --flush   -F [chain]          Delete all rules in  chain or all chains
  --zero    -Z [chain [rulenum]]
                                Zero counters in chain or all chains
  --new     -N chain            Create a new user-defined chain
  --delete-chain
            -X [chain]          Delete a user-defined chain
  --policy  -P chain target
                                Change policy on chain to target
  --rename-chain
            -E old-chain new-chain
                                Change chain name, (moving any references)
Options:
[!] --proto     -p proto        protocol: by number or name, eg. `tcp'
[!] --source    -s address[/mask][...]
                                source specification
[!] --destination -d address[/mask][...]
                                destination specification
[!] --in-interface -i input name[+]
                                network interface name ([+] for wildcard)
 --jump -j target
                                target for rule (may load target extension)
  --goto      -g chain
                              jump to chain with no return
  --match       -m match
                                extended match (may load extension)
  --numeric     -n              numeric output of addresses and ports
[!] --out-interface -o output name[+]
                                network interface name ([+] for wildcard)
  --table       -t table        table to manipulate (default: `filter')
  --verbose     -v              verbose mode
  --line-numbers                print line numbers when listing
  --exact       -x              expand numbers (display exact values)
[!] --fragment  -f              match second or further fragments only
  --modprobe=<command>          try to insert modules using this command
  --set-counters PKTS BYTES     set the counter during insert/append
[!] --version   -V              print package version.

4

Odp: iptables letrigger netfilter mam problem z konfiguracją

jeśli się dobrze orientuje - nie uruchamia się moduł netfilter.
pozostaje pytanie dlaczego, i jak go uruchomić.

5

Odp: iptables letrigger netfilter mam problem z konfiguracją

Czy masz plik /usr/lib/iptables//libxt_LED.so?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: iptables letrigger netfilter mam problem z konfiguracją

nie

7

Odp: iptables letrigger netfilter mam problem z konfiguracją

To wyinstaluj i zainstaluj jeszcze raz ode mnie iptables-mod-ipopt

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: iptables letrigger netfilter mam problem z konfiguracją

Dziękuje za pomoc. udało mi się rozpędem utworzyć przykładowy trigger z telnetem. teraz doczytam i będę to przystosowywał do własnych potrzeb

9

Odp: iptables letrigger netfilter mam problem z konfiguracją

Jak to się stało że poprzednio tego nie miałeś?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: iptables letrigger netfilter mam problem z konfiguracją

nie mam pojęcia, nic nie mieszałem w tych plikach, a pakiet był od Ciebie od początku

11

Odp: iptables letrigger netfilter mam problem z konfiguracją

Wiem że mój bo po oznaczeniu widziałem. Dlatego się zdziwiłem że tej biblioteki nie miałeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.