
irado
(usa XUbuntu)
Enviado em 21/07/2010 - 08:47h
IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P INPUT DROP
$IPTABLES -P FORWARD DROP
essas não são regras, são POLITICAS do firewall e (IMHO) são as corretas. Para fazer o log basta colocar assim:
a PRIMEIRA regra no bloco de INPUT:
iptables -t filter -A INPUT -j LOG --log-prefix '** INPUT **'
a PRIMEIRA regra no bloco de FORWARD
iptables -t filter -A FORWARD -j LOG --log-prefix '** FORWARD **'
e a única regra em OUTPUT:
iptables -t filter -A OUTPUT -j LOG --log-prefix '** OUTPUT **'