I have /bin/ash from rh8 installation and I have following error when I tried to change using ash instead of sh with shorewall-1.4.7: + eval options=$tap0_options + options+ list_search newnotsyn + local e=newnotsyn + [ 1 -gt 1 ] + return 1 + run_user_exit newnotsyn + find_file newnotsyn + [ -n -a -f /newnotsyn ] + echo /etc/shorewall/newnotsyn + local user_exit=/etc/shorewall/newnotsyn + [ -f /etc/shorewall/newnotsyn ] + [ -n info ] + log_rule info newnotsyn DROP + local level=info + local chain=newnotsyn + local disposition=DROP + shift + shift + shift + log_rule_limit info newnotsyn DROP --match limit --limit 1/second \ --limit-burst 60 + local level=info + local chain=newnotsyn + local disposition=DROP + local rulenum+ local limit=--match limit --limit 1/second --limit-burst 60 local: --limit: bad variable name + shift + shift + shift + shift + [ -n ] + eval iptables -A newnotsyn --match -j LOG --log-level info --log-prefix "`printf "$LOGFORMAT" $chain $disposition`" + printf Shorewall:%s:%s: newnotsyn DROP + iptables -A newnotsyn --match -j LOG --log-level info --log-prefix Shorewall:newnotsyn:DROP: iptables v1.2.8: Couldn''t load match `-j'':/lib/iptables/libipt_-j.so: cannot open shared object file: No such file or direct ory Try `iptables -h'' or ''iptables --help'' for more information. + [ 2 -ne 0 ] + [ -z ] + stop_firewall + set +x Any hint how to fix this? -- Tuomo Soini <tis@foobar.fi>
Tuomo Soini wrote:> I have /bin/ash from rh8 installation and I have following error when I > tried to change using ash instead of sh with shorewall-1.4.7: > > + local limit=--match limit --limit 1/second --limit-burst 60 > local: --limit: bad variable name> Any hint how to fix this?This small patch seems to fix it. --- firewall~ 2003-10-07 14:19:05.000000000 +0300 +++ firewall 2003-10-08 14:14:25.000000000 +0300 @@ -960,7 +960,7 @@ local chain=$2 local disposition=$3 local rulenum- local limit=${4:-$LOGLIMIT} + local limit="${4:-$LOGLIMIT}" shift;shift;shift;shift -- Tuomo Soini <tis@foobar.fi>
On Wed, 2003-10-08 at 04:19, Tuomo Soini wrote:> Tuomo Soini wrote: > > I have /bin/ash from rh8 installation and I have following error when I > > tried to change using ash instead of sh with shorewall-1.4.7: > > > > + local limit=--match limit --limit 1/second --limit-burst 60 > > local: --limit: bad variable name > > > Any hint how to fix this? > > This small patch seems to fix it. >Thanks, Tuomo. I''ve applied the fix to my tree. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net