From beafa08b9af3148dd51bb93ea1226b06ef31cf5b Mon Sep 17 00:00:00 2001 From: Brielle Date: Sat, 29 Nov 2014 12:09:08 -0700 Subject: [PATCH] Fixing some typos --- lib/iptables.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 5bf8ad8..d88302f 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -452,7 +452,7 @@ function enable_nat { while read -r type srcinterface srcaddress dstinterface dstaddress custom; do [[ ${type} = \#* ]] && continue [[ ${type} = "" ]] && continue - ([[ ${type} != "SNAT" ]] && [[ ${type} != "MASQ" ]] && [[ ${type} != "NETMAP" ]] && [[ ${type} != "ACCEPT") \ + ([[ ${type} != "SNAT" ]] && [[ ${type} != "MASQ" ]] && [[ ${type} != "NETMAP" ]] && [[ ${type} != "ACCEPT" ]]) \ && ${display} RED "nat.conf: Error - must begin with SNAT/MASQ/NETMAP/ACCEPT: ${DEFAULT_COLOR}${type} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${custom}" && continue # Do some creative work with variables to make building the iptables rules fairly painless @@ -645,4 +645,4 @@ function enable_v6_critical_icmp { ${VER_IPTABLES} -A ${v6ICMP} -s fe80::/10 -p ipv6-icmp --icmpv6-type 151 -j ACCEPT ${VER_IPTABLES} -A ${v6ICMP} -s fe80::/10 -p ipv6-icmp --icmpv6-type 152 -j ACCEPT ${VER_IPTABLES} -A ${v6ICMP} -s fe80::/10 -p ipv6-icmp --icmpv6-type 153 -j ACCEPT -} \ No newline at end of file +}