Fix order of blockincoming
parent
d2fb7f9017
commit
a0d72b3458
|
@ -222,10 +222,7 @@ 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..."
|
||||||
|
@ -708,8 +705,10 @@ $IPTABLES --policy INPUT ${IPV4_PINPUT}
|
||||||
$IPTABLES --policy OUTPUT ${IPV4_POUTPUT}
|
$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