[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script de firewall não funciona, pq ?



Pois é, é outros também fizeram algumas sugestões.

Gostaria, se for possivel, que você pudesse acessar este link :
http://pastebin.com/A4hQSrLu

E fizesse as modificações sugeridas.
Daí já testo o efeito delas.

2010/5/24 Allan Carvalho <allanc2@gmail.com>:
> Hamacker, você criou a nova chain como recomendei?
>
> Atenciosamente,
> Allan carvalho
>
> 2010/5/24 hamacker <sirhamacker@gmail.com>:
>> nada.
>>
>> 2010/5/24 Anderson Silva <abnerdoom@gmail.com>:
>>>
>>>
>>> 2010/5/24 hamacker <sirhamacker@gmail.com>
>>>>
>>>> echo "Liberando portas do servidor ($WAN):"
>>>> while read LINHA ; do
>>>>  PORTA=`semremarks "$LINHA"`
>>>>  if [ "$PORTA" != "" ] ; then
>>>>    echo -e "\tPorta : $PORTA"
>>>>    $IPTABLES -A INPUT -p tcp --dport $PORTA -j ACCEPT
>>>>    $IPTABLES -A FORWARD -p tcp --dport $PORTA -j ACCEPT
>>>>    $IPTABLES -A OUTPUT -p tcp --sport $PORTA -j ACCEPT
>>>>  fi
>>>> done <"$LISTA_PORTAS_LIBERADAS"
>>>> $IPTABLES -I INPUT -m state --state ESTABLISHED -j ACCEPT
>>>> $IPTABLES -I INPUT -m state --state RELATED -j ACCEPT
>>>> $IPTABLES -I OUTPUT -p icmp -o $WAN -j ACCEPT
>>>> $IPTABLES -I INPUT -p icmp -j ACCEPT
>>>>
>>>
>>> Olá Hamacker
>>> Experimente colocar as seguintes regras logo após estas acima:
>>> $IPTABLES -I FORWARD -i $LAN -j ACCEPT
>>> $IPTABLES -I FORWARD -i $LAN  -o $WAN -m state --state ESTABLISHED,RELATED
>>> -j ACCEPT
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-user-portuguese-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>> Archive: AANLkTincrrky3wiivn9pD10GFeFMRFs9m3WeMNL7zRNq@mail.gmail.com">http://lists.debian.org/AANLkTincrrky3wiivn9pD10GFeFMRFs9m3WeMNL7zRNq@mail.gmail.com
>>
>>
>


Reply to: