Hi there,

I use Shorewall on an OpenWRT distribution and I experience 2 problems. 
I have solved them myself and report them here to help others with it.

Shorewall version: shorewall[6]-lite 5.0.4
OpenWRT version: Chaos Calmer 15.05, r46767

Problem 1:
Shorewall uses the lock utility from openwrt. I believe it is used in 
the wrong way. File lib.common line 775
First it passes arguments which the utility doesn't use/know. The util 
accepts them dumbly and continues to create a lockfile. It has no 
time-out functionality. I do not know the meaning of the r1 argument.
Second the mutex_off simply deletes the lockfile by using the utility 
rm. This way a stale lock process keeps running. After a while the 
router is running a high number of stale processes which has impact on 
the load of the router. The correct way is to use "lock -u 
/lib/shorewall-lite/lock". This way the lockfile will be removed and the 
process will be terminated accordingly. To make it work for me, I no 
more let shorewall use the lock utility by using an ugly hack.

Problem 2:
An fgrep on the output of the type utility is wrongly coded. The output 
of the type command probably has been changed. File lib.cli line 4343
It is coded: "if type $1 2> /dev/null | fgrep -q 'is a function'; then"
To make it work for me, it should be coded: "if type $1 2> /dev/null | 
fgrep -q 'is a shell function'; then"

With regards,

Stefan




------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to