Enviado em 09/05/2010 - 10:30h
Pessoal,
Tow usando um shell script para pegar algumas paloavras de um arquivo.txt e bloquealas, o comando eh bem simples:
iptables -A FORWARD -m string --string "$linha" --algo kmp -j DROP
obs: $linha eh varivel que tow usando no script, parete do codigo esta la em baixo:
Ma aparece esse erro, como quero tenho 4 palavras... aparece 4 vezes, logicamente:
iptables: no chain/target/match by the name
iptables: no chain/target/match by the name
iptables: no chain/target/match by the name
iptables: no chain/target/match by the name
ALGUEM PODE ME DIZER PORQUE ESSE ERRO?
Muito obrigado!! =)
for i in $(seq $b)
do
read linha
iptables -A FORWARD -m string --string "$linha" --algo kmp -j DROP
done < lista.txt
Tow usando um shell script para pegar algumas paloavras de um arquivo.txt e bloquealas, o comando eh bem simples:
iptables -A FORWARD -m string --string "$linha" --algo kmp -j DROP
obs: $linha eh varivel que tow usando no script, parete do codigo esta la em baixo:
Ma aparece esse erro, como quero tenho 4 palavras... aparece 4 vezes, logicamente:
iptables: no chain/target/match by the name
iptables: no chain/target/match by the name
iptables: no chain/target/match by the name
iptables: no chain/target/match by the name
ALGUEM PODE ME DIZER PORQUE ESSE ERRO?
Muito obrigado!! =)
for i in $(seq $b)
do
read linha
iptables -A FORWARD -m string --string "$linha" --algo kmp -j DROP
done < lista.txt