diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index da028355f..c18847ed3 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -680,7 +680,7 @@ sub add_common_rules() { if ( interface_is_optional $interface ) { add_commands( $chainref, - qq(if [ -n "SW_\$${base}_IS_USABLE" -a -n "$variable" ]; then) , + qq(if [ -n "\$SW_${base}_IS_USABLE" -a -n "$variable" ]; then) , ' echo "-A ' . match_source_dev( $interface ) . qq(-s $variable -p udp -j ACCEPT" >&3) , qq(fi) ); } else {