misleading print
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...
Right?
Quoted 4 lines · U.Mutlu
I have in my script these statements:
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
Quoted 8 lines
When doing "iptables -L -n" then the above gets shown as this:
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0IMHO, 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...
Right?
That's why one should use iptables -S or iptables-save.
Quoted 10 lines · U.Mutlu
I have in my script these statements:
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPTWhen doing "iptables -L -n" then the above gets shown as this:
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0IMHO, 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
Quoted 8 lines · Michal KubeÄ�ek
Quoted 7 lines · U.Mutlu
I have in my script these statements:
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPTWhen doing "iptables -L -n" then the above gets shown as this:
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Quoted 6 lines
Quoted 3 lines
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.
Let's start a vote (of sorts) for getting rid of -L. Yes, it'll break people's oh-so-sacred scripts. But heck, you can't reasonably parse it anyway.