From a0d72b3458a437fc5ab9ebf30417dea699d0522b Mon Sep 17 00:00:00 2001 From: bbruns Date: Tue, 22 Feb 2011 02:37:27 +0000 Subject: [PATCH] Fix order of blockincoming --- bin/firewall-sosdg | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index 7e1fecb..4b2f1b7 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -222,10 +222,7 @@ if [ "$DNS_REQUESTS_OUT" ]; then done fi -if [ -s "$BASEDIR/include/ipv4_custom_blockincoming" ]; then - display_c YELLOW "Loading custom incoming blocked rules..." - . "$BASEDIR/include/ipv4_custom_blockincoming" -fi + if [ -s "$BASEDIR/include/ipv4_custom_blockip" ]; then display_c YELLOW "Loading custom ip block rules..." @@ -708,8 +705,10 @@ $IPTABLES --policy INPUT ${IPV4_PINPUT} $IPTABLES --policy OUTPUT ${IPV4_POUTPUT} $IPTABLES --policy FORWARD ${IPV4_PFORWARD} - - +if [ -s "$BASEDIR/include/ipv4_custom_blockincoming" ]; then + display_c YELLOW "Loading custom incoming blocked rules..." + . "$BASEDIR/include/ipv4_custom_blockincoming" +fi if [ $BLOCKINCOMING ]; then $IPTABLES -A INPUT -p tcp --syn -j DROP