Skip to contentSkip to conversation

iptables upgrade: netmask parsing trouble

DISCUSSION Thomas Jarosch 2 participants 3 messages May 8, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

I've just updated from iptables 1.4.8 to 1.4.18 (git HEAD to be precise) and now face some trouble with netmask parsing:

This used to work with 1.4.8:
-A foo -m policy --mode tunnel --dir in --tunnel-src 192.168.123.0/255.255.255.0 -j RETURN

With git HEAD I get:
iptables-restore v1.4.18: policy: bad value for option "--tunnel-src", or out of range (0-32)

This of course works:
-A foo -m policy --mode tunnel --dir in --tunnel-src 192.168.123.0/24 -j RETURN

Any reason why we don't accept the full format anymore?

Cheers,
Thomas

#1 lore raw
Quoted 8 lines · Thomas Jarosch

Hi,

I've just updated from iptables 1.4.8 to 1.4.18 (git HEAD to be precise) and now face some trouble with netmask parsing:

This used to work with 1.4.8:
-A foo -m policy --mode tunnel --dir in --tunnel-src 192.168.123.0/255.255.255.0 -j RETURN

Quoted 8 lines

With git HEAD I get:
iptables-restore v1.4.18: policy: bad value for option "--tunnel-src", or out of range (0-32)

This of course works:
-A foo -m policy --mode tunnel --dir in --tunnel-src 192.168.123.0/24 -j RETURN

Any reason why we don't accept the full format anymore?

No. Things that used to work have to work indeed. Just sent a patch to fix it.

Thanks for the report Thomas.

#2 lore raw
Quoted 4 lines · On Wednesday, 8. May 2013 15:10:16 you wrote:
Quoted 1 line

Any reason why we don't accept the full format anymore?

No. Things that used to work have to work indeed. Just sent a patch to fix it.

patch seems to work fine (=loads the firewall again). Thanks for the quick fix.

Thomas