forked from extern/shorewall_code
Improve COMMENT feature
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4655 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
8437d79d73
commit
d2607cd0da
@ -885,7 +885,7 @@ setup_tc1() {
|
||||
if [ "x$mark" = xCOMMENT ]; then
|
||||
if [ -n "$COMMENTS" ]; then
|
||||
comment=$(echo $sources $dests $proto $ports $sports $user $testval $length $tos)
|
||||
save_command COMMENT=\"${comment% }\"
|
||||
save_command COMMENT=\"$comment\"
|
||||
else
|
||||
error_message "COMMENT ignored -- requires comment support in iptables/Netfilter"
|
||||
fi
|
||||
@ -1022,7 +1022,7 @@ __EOF__
|
||||
if [ "x$mark" = xCOMMENT ]; then
|
||||
if [ -n "$COMMENTS" ]; then
|
||||
comment=$(echo $sources $dests $proto $ports $sports $user $testval $length $tos)
|
||||
save_command COMMENT=\"${comment% }\"
|
||||
save_command COMMENT=\"$comment\"
|
||||
else
|
||||
error_message "COMMENT ignored -- requires comment support in iptables/Netfilter"
|
||||
fi
|
||||
@ -2749,7 +2749,7 @@ process_rules()
|
||||
COMMENT)
|
||||
if [ -n "$COMMENTS" ]; then
|
||||
comment=$(echo $xclients $xservers $xprotocol $xports $xcports $xaddress $xratelimit $xuserspec)
|
||||
save_command COMMENT=\"${comment% }\"
|
||||
save_command COMMENT=\"$comment\"
|
||||
else
|
||||
error_message "COMMENT ignored -- requires comment support in iptables/Netfilter"
|
||||
fi
|
||||
|
@ -436,7 +436,7 @@ __EOF__
|
||||
if [ "x$fullinterface" = xCOMMENT ]; then
|
||||
if [ -n "$COMMENTS" ]; then
|
||||
comment=$(echo $networks $addresses $proto $ports $ipsec)
|
||||
save_command COMMENT=\"${comment% }\"
|
||||
save_command COMMENT=\"$comment\"
|
||||
else
|
||||
error_message "COMMENT ignored -- requires comment support in iptables/Netfilter"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user