bbruns@gmail.com 2014-03-29 17:11:26 +00:00
parent 04b1308238
commit b306539ef7
2 changed files with 5 additions and 5 deletions

View File

@ -4,8 +4,8 @@
PREFIX="/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}" PREFIX="/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}"
# Enable / Disable IPv4 and IPv6 support (yes/no) # Enable / Disable IPv4 and IPv6 support (yes/no)
EnableIPv4=yes EnableIPv4="yes"
EnableIPv6=yes EnableIPv6="yes"
# Display detailed output while running script? # Display detailed output while running script?
EnableDetailedOutput=yes DisplayDetailedOutput="yes"

View File

@ -29,7 +29,7 @@ function iptables_rules_flush {
ipv6) VER_IPTABLES=${IP6TABLES} ; TABLE_NAMES=/proc/net/ip6_tables_names ;; ipv6) VER_IPTABLES=${IP6TABLES} ; TABLE_NAMES=/proc/net/ip6_tables_names ;;
ipv4|*) VER_IPTABLES=${IPTABLES} ; TABLE_NAMES=/proc/net/ip_tables_names ;; ipv4|*) VER_IPTABLES=${IPTABLES} ; TABLE_NAMES=/proc/net/ip_tables_names ;;
esac esac
${display_c} RED "Flushing ${IP_VERSION} rules..." ${display} RED "Flushing ${IP_VERSION} rules..."
${VER_IPTABLES} --flush &>/dev/null ${VER_IPTABLES} --flush &>/dev/null
${VER_IPTABLES} -F OUTPUT &>/dev/null ${VER_IPTABLES} -F OUTPUT &>/dev/null
${VER_IPTABLES} -F PREROUTING &>/dev/null ${VER_IPTABLES} -F PREROUTING &>/dev/null
@ -67,7 +67,7 @@ function setup_iptables_chains {
IPVER="4" ;; IPVER="4" ;;
esac esac
# Create the actual chains # 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 ${InPreRules}
${VER_IPTABLES} -N ${OutPreRules} ${VER_IPTABLES} -N ${OutPreRules}
${VER_IPTABLES} -N ${Trusted} ${VER_IPTABLES} -N ${Trusted}