Skip to contentSkip to conversation

iptables-save and iptables difference

DISCUSSION Ozgur AKAN 1 participant 1 message Mar 30, 2004 netfilter

lore
Share & tools
lore

Ozgur AKAN

author
#0 lore raw

Hi,

I found that iptables-save and iptables process interface mask value (iniface_mask) differently.

if you add a rule to iptables with this command,

"iptables -A test -i + -j ACCEPT" (by the way, this is same with giving no interface value)

iptables-save discards the + sign (...because this is same with giving no interface value) however iptables -nvL command shows "+" as the input interface. (which shall be null as iptables-save does)

I know this is not a bug but I think it should be fixed. If it is worth to do I would like to prepare a patch for it.

I would like to be pleased to hear your comments,
Ozgur AKAN