Sfoglia il codice sorgente

Update 'cinsarmy.sh'

Fixed "invalid context length argument" error.
deadtom 1 settimana fa
parent
commit
719315c870
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      cinsarmy.sh

+ 1 - 1
cinsarmy.sh

@@ -53,7 +53,7 @@ echo "Checking for return rule at the end of our chain."
 
 RETURNRULE="-A $CHAIN_NAME -p tcp -j RETURN"
 
-if $FIREWALL -S $CHAIN_NAME | grep -q "$RETURNRULE"; then
+if $FIREWALL -L $CHAIN_NAME -n | grep -q "tcp" && $FIREWALL -L $CHAIN_NAME -n | grep -q "RETURN"; then
     echo "Rule already exists: $RETURNRULE"
 else
     # Add the rule if it doesn't exist