Skip to contentSkip to conversation

Reverse the behavior change of -L option?

DISCUSSION gypsy 2 participants 2 messages Feb 20, 2005 – Feb 21, 2005 netfilter

lore
Share & tools
lore

gypsy

author
#0 lore raw

Since 1.3.0 none of the scripts I parse the output of 'iptables -nvL' works anymore because the order has changed from INPUT FORWARD OUTPUT USER to alphabetical. How do I revert back to the prior behavior?

gypsy

#1 lore raw
Quoted 3 lines · gypsy

Since 1.3.0 none of the scripts I parse the output of 'iptables -nvL' works anymore because the order has changed from INPUT FORWARD OUTPUT USER to alphabetical. How do I revert back to the prior behavior?

Change your scripts so that they don't assume any particular table order, and this problem will never happen again.

Alexey