Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#246 fwb_ipt v5.1.0.3599 may try to load nonexistent modules

open
nobody
None
5
2013-01-02
2013-01-02
Håvard Lygre
No

Hi,

while running my firewall script, I get the error message

Running prolog script
FATAL: Could not open '/lib/modules/2.6.18-308.20.1.el5/kernel/net/ipv4/netfilter/ip_conntrack_sip.ko': No such file or directory

This is due to me having renamed the file to ip_conntrack_sip.ko.orig. However, the load_modules function in the prolog script only looks for the string *conntrack* in the module name, and does not care if the file name does not end in .ko. This could be fixed by changing the line

MODULES=$(find $MODULES_DIR -name '*conntrack*' \! -name '*ipv6*'|sed -e 's/^.*\///' -e 's/\([^\.]\)\..*/\1/')

to

MODULES=$(find $MODULES_DIR -name '*conntrack*.ko' \! -name '*ipv6*'|sed -e 's/^.*\///' -e 's/\([^\.]\)\..*/\1/')

and then the same for the NAT-line two lines below.

Discussion