diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index c2198a0..3e7c12c 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -586,11 +586,13 @@ if [ $IPV6 ]; then display_c YELLOW "Loading custom IPv6 trust rules..." . "$BASEDIR/include/ipv6_custom_trust" fi - for i in $IPV6TRUSTED; do - echo -n "$i " - $IP6TABLES -A INPUT -s $i -j ACCEPT - $IP6TABLES -A OUTPUT -d $i -j ACCEPT - done + if [ "$IPV6_TRUSTED" ]; then + for i in $IPV6_TRUSTED; do + echo -n "$i " + $IP6TABLES -A INPUT -s $i -j ACCEPT + $IP6TABLES -A OUTPUT -d $i -j ACCEPT + done + fi reset_color if [ -s "$BASEDIR/include/ipv4_custom_blockip" ]; then diff --git a/tools/convert-config b/tools/convert-config index 48f597b..d0f0027 100755 --- a/tools/convert-config +++ b/tools/convert-config @@ -1,7 +1,7 @@ #!/bin/bash -echo "This script converts certain aspects of old config files, such as renamed variables" -echo "to the new variable names. It is NOT foolproof, so please check your config files" -echo "afterwards." +echo "This script converts certain aspects of old config files, such +echo "as renamed variables to the new variable names. It is NOT foolproof" +echo "so please check your config files afterwards." sed -e 's/IPV6FORWARD/IPV6_FORWARD/' \ -e 's/IPV6CONNTRACK/IPV6_CONNTRACK/' \