Browse Source

tags/v2.01a1
bbruns@gmail.com 6 years ago
parent
commit
b306539ef7
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      etc/main.conf
  2. +2
    -2
      lib/iptables.inc

+ 3
- 3
etc/main.conf View File

@@ -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
DisplayDetailedOutput="yes"

+ 2
- 2
lib/iptables.inc View File

@@ -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}


Loading…
Cancel
Save