Modify

Opened 6 years ago

Last modified 4 years ago

#11045 new defect

A patch to make iptables-snmp work again

Reported by: Alfred Ganz <alfred-ganz+openwrt@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

I have created a patch file to make iptables-snmp work again.
The problems that I encountered are reported in ticket #10993
which can now be closed. In order to make things completely
work, activation of snmp modules should be added to two files
in the net-snmp package, for which there is an additional small
patch file.
I am not sure how to provide patches for files in the files
directory of the package definition, so changes may be needed
for this part. However, in the absence of the net-snmp patch,
the rebuilt iptables-snmp can be activated by adding the
following line to /etc/init.d/snmpd immediately after the line:
config_foreach snmpd_exec_add exec

echo "dlmod iptables /usr/lib/iptables-snmp.so" >> $RUN_C

I have done the build and my tests on a a vanilla r30556
bleeding edge system built for a Buffalo WZR-HP-G300NH

Hope this helps, AG

Attachments (3)

002-use_libiptc.patch (16.3 KB) - added by Alfred Ganz <alfred-ganz+openwrt@…> 6 years ago.
Modification to use only *.so libraries, upgrade to net-snmp-5.4.2.1 and iptables-1.4.10
net-snmp.patch (1.2 KB) - added by Alfred Ganz <alfred-ganz+openwrt@…> 6 years ago.
Add configuration support for generic dlmod module loading to net-snmp
003-simplified-mibs.patch (13.9 KB) - added by Alfred Ganz <alfred-ganz+openwrt@…> 6 years ago.
Remove index entries, which reccomended, reorder table entries to reflect regular iptables output

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by Alfred Ganz <alfred-ganz+openwrt@…>

Modification to use only *.so libraries, upgrade to net-snmp-5.4.2.1 and iptables-1.4.10

Changed 6 years ago by Alfred Ganz <alfred-ganz+openwrt@…>

Add configuration support for generic dlmod module loading to net-snmp

Changed 6 years ago by Alfred Ganz <alfred-ganz+openwrt@…>

Remove index entries, which reccomended, reorder table entries to reflect regular iptables output

comment:1 Changed 6 years ago by Alfred Ganz <alfred-ganz+openwrt@…>

Now that I have played around some with the new package, I would like to
simplify the main MIB, and bring it up to newer conventions. These changes
are contained in the third attachment (003-simplified-mibs.patch). However,i
this would represent a change that is *not* backwards compatible.

I would suggest that these changes be made anyway, but that is a policy question,
and I don't think I am the one to decide on this.

AG

comment:2 Changed 6 years ago by Alfred Ganz <alfred-ganz+openwrt@…>

Please ignore the net-snmp.patch and instead use net-snmp.patch from ticket #11068,
it adds support for com2sec6 in addition to support for dlmod to /etc/init.d/snmpd.

AG

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

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.