mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-02 07:56:00 +02:00
a) fix a silly bug and b) avoid calling separate_list on an already separated list
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@373 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
97c6eae79e
commit
ad6a24aa3f
@ -597,7 +597,7 @@ validate_interfaces_file() {
|
|||||||
eval ${interface}_zone="$z"
|
eval ${interface}_zone="$z"
|
||||||
eval ${interface}_options=\"$options\"
|
eval ${interface}_options=\"$options\"
|
||||||
|
|
||||||
for option in `separate_list $options`; do
|
for option in $options; do
|
||||||
case $option in
|
case $option in
|
||||||
dhcp|noping|filterping|routestopped|norfc1918|multi|tcpflags)
|
dhcp|noping|filterping|routestopped|norfc1918|multi|tcpflags)
|
||||||
;;
|
;;
|
||||||
@ -2160,8 +2160,8 @@ add_a_rule()
|
|||||||
if [ "$loglevel" = ULOG ]; then
|
if [ "$loglevel" = ULOG ]; then
|
||||||
run_iptables2 -A $chain $proto $multiport \
|
run_iptables2 -A $chain $proto $multiport \
|
||||||
$state $cli $sports $serv $dports -j ULOG $LOGPARMS \
|
$state $cli $sports $serv $dports -j ULOG $LOGPARMS \
|
||||||
--ulog-prefix "Shorewall:$chain:$logtarget:" \
|
--ulog-prefix "Shorewall:$chain:$logtarget:"
|
||||||
else
|
else
|
||||||
run_iptables2 -A $chain $proto $multiport \
|
run_iptables2 -A $chain $proto $multiport \
|
||||||
$state $cli $sports $serv $dports -j LOG $LOGPARMS \
|
$state $cli $sports $serv $dports -j LOG $LOGPARMS \
|
||||||
--log-prefix "Shorewall:$chain:$logtarget:" \
|
--log-prefix "Shorewall:$chain:$logtarget:" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user