diff --git a/etc/main.conf b/etc/main.conf index d197027..8c07051 100644 --- a/etc/main.conf +++ b/etc/main.conf @@ -4,8 +4,8 @@ PREFIX="/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}" # Enable / Disable IPv4 and IPv6 support (yes/no) -EnableIPv4=yes -EnableIPv6=yes +EnableIPv4="yes" +EnableIPv6="yes" # Display detailed output while running script? -EnableDetailedOutput=yes \ No newline at end of file +DisplayDetailedOutput="yes" \ No newline at end of file diff --git a/lib/iptables.inc b/lib/iptables.inc index e6b37b3..b6fd39c 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -29,7 +29,7 @@ function iptables_rules_flush { ipv6) VER_IPTABLES=${IP6TABLES} ; TABLE_NAMES=/proc/net/ip6_tables_names ;; ipv4|*) VER_IPTABLES=${IPTABLES} ; TABLE_NAMES=/proc/net/ip_tables_names ;; esac - ${display_c} RED "Flushing ${IP_VERSION} rules..." + ${display} RED "Flushing ${IP_VERSION} rules..." ${VER_IPTABLES} --flush &>/dev/null ${VER_IPTABLES} -F OUTPUT &>/dev/null ${VER_IPTABLES} -F PREROUTING &>/dev/null @@ -67,7 +67,7 @@ function setup_iptables_chains { IPVER="4" ;; esac # Create the actual chains - ${display_c} GREEN "Setting up chains for ${IP_VERSION}..." + ${display} GREEN "Setting up chains for ${IP_VERSION}..." ${VER_IPTABLES} -N ${InPreRules} ${VER_IPTABLES} -N ${OutPreRules} ${VER_IPTABLES} -N ${Trusted}