More tweaks
parent
2a85eecd82
commit
7cd42ed7be
|
@ -33,17 +33,16 @@ for i in $TRUSTEDIP; do
|
||||||
done
|
done
|
||||||
echo -ne "\n"
|
echo -ne "\n"
|
||||||
|
|
||||||
echo -n "Adding blocked IPs: "
|
|
||||||
|
|
||||||
if [ $BLOCKEDIP ]; then
|
if [ $BLOCKEDIP ]; then
|
||||||
|
echo -n "Adding blocked IPs: "
|
||||||
for i in `grep -v "\#" $BLOCKEDIP`; do
|
for i in `grep -v "\#" $BLOCKEDIP`; do
|
||||||
echo -n "$i"
|
echo -n "$i "
|
||||||
$IPTABLES -A INPUT -s $i -j DROP
|
$IPTABLES -A INPUT -s $i -j DROP
|
||||||
$IPTABLES -A OUTPUT -d $i -j DROP
|
$IPTABLES -A OUTPUT -d $i -j DROP
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
echo -ne "\n"
|
echo -ne "\n"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $CLAMPMSS ]; then
|
if [ $CLAMPMSS ]; then
|
||||||
echo "Clamping MSS to PMTU..."
|
echo "Clamping MSS to PMTU..."
|
||||||
|
|
Loading…
Reference in New Issue