Re: [iptables] misleading print

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

 



On Monday 05 of December 2011 16:26EN, U.Mutlu wrote:
> I have in my script these statements:
>    iptables -A INPUT  -i lo -j ACCEPT
>    iptables -A OUTPUT -o lo -j ACCEPT
> 
> When doing "iptables -L -n" then the above gets shown as this:
>    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
> 
> IMHO, this could easily be misinterpreted if one looks
> only at the iptables output, because the crucial info,
> ie. that it applies to the "lo" device only, is missing...

Output of "iptables -L" doesn't show -i and -o matches by default. If 
you want to see them, use "-v" option.

                                                       Michal Kubeček

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux