Fix order of blockincoming
parent
08b6229835
commit
d2fb7f9017
|
@ -222,6 +222,11 @@ if [ "$DNS_REQUESTS_OUT" ]; then
|
||||||
done
|
done
|
||||||
fi
|
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
|
if [ -s "$BASEDIR/include/ipv4_custom_blockip" ]; then
|
||||||
display_c YELLOW "Loading custom ip block rules..."
|
display_c YELLOW "Loading custom ip block rules..."
|
||||||
. "$BASEDIR/include/ipv4_custom_blockip"
|
. "$BASEDIR/include/ipv4_custom_blockip"
|
||||||
|
@ -704,10 +709,7 @@ $IPTABLES --policy OUTPUT ${IPV4_POUTPUT}
|
||||||
$IPTABLES --policy FORWARD ${IPV4_PFORWARD}
|
$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
|
if [ $BLOCKINCOMING ]; then
|
||||||
$IPTABLES -A INPUT -p tcp --syn -j DROP
|
$IPTABLES -A INPUT -p tcp --syn -j DROP
|
||||||
|
|
Loading…
Reference in New Issue