Modify

Opened 7 years ago

Closed 7 years ago

Last modified 2 years ago

#9400 closed defect (fixed)

iptables is missing led module (fix included)

Reported by: ddxx0n Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

libxt_LED.so is built, but not not put in /usr/lib/iptables breaking the whole trigger thing fails because iptables -j LED is not available. The attached patch fixes this; to my surprise, it really works after that and it is very nice to trigger leds by matching packets.

What is left to be done is going through the whole led dependency chain - apart from a) the new CONFIG_PACKAGE_iptables-mod-led not being auto-selected by the appropriate options b) changeset 26868 created a packaging problem which can only solved by using opkg --force-overwrite

Installing kmod-ipt-led (2.6.38.6-1) to root...
Installing kmod-ledtrig-netfilter (2.6.38.6-1) to root...
Configuring kmod-ipt-led.
Collected errors:
 * check_data_file_clashes: Package kmod-ledtrig-netfilter wants to install file /lib/modules/2.6.38.6/xt_LED.ko
        But that file is already provided by package  * kmod-ipt-led
 * opkg_install_cmd: Cannot install package kmod-ledtrig-netfilter.

Attachments (1)

ipt_led.diff (1.1 KB) - added by ddxx0n 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by ddxx0n

comment:1 Changed 7 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to accepted

comment:2 Changed 7 years ago by florian

  • Resolution set to fixed
  • Status changed from accepted to closed

Applied in r27460, thanks!

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:4 Changed 3 years ago by anonymous

I guess i still have this 4 year old problem that was fixed 3 years ago.?
How can i apply a patch and install netfilter?
Thanks.

# opkg install kmod-ledtrig-netfilter
Installing kmod-ledtrig-netfilter (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-ledtrig-netfilter_3.10.49-1_ar71xx.ipk.
Collected errors:
 * check_data_file_clashes: Package kmod-ledtrig-netfilter wants to install file /lib/modules/3.10.49/xt_LED.ko
        But that file is already provided by package  * kmod-ipt-led
 * opkg_install_cmd: Cannot install package kmod-ledtrig-netfilter.
# opkg list | grep -i kmod-ipt-led              kmod-ipt-led - 3.10.49-1 - Netfilter target to trigger a LED when a network packet is matched.
# opkg list | grep -i kmod-ledtrig-netfilter
kmod-ledtrig-netfilter - 3.10.49-1 - Kernel module to flash LED when a particular packets passing through your machine.  For example to create an LED trigger for incoming SSH traffic: iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000 Then attach the new trigger to an LED on your system: echo netfilter-ssh > /sys/class/leds/<ledname>/trigger

comment:5 Changed 3 years ago by javisaman@…

Seem to be having the same problem. What was the fix?

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.