iptables Parseing Bug
Hi all,
While rewriting my firewall rules I found a Bug in iptables/ip6tables command line parsing, it interpretes the correct beginning of an argument as the whole argument. For example:
iptables -A INPUT -p tcp --sp 22 -j ACCEPT
works, it interpretes --sp as --sport. This is that far no problem. But what if you construct something like:
iptables -A INPUT -p tcp -m mport --sport 22 --dports 1:1024 -j ACCEPT
it fails with the error:
iptables v1.2.8: multiport can only have one option
because it interpretes --sport as --sports. I worked around that useing --sport before -m mport, but it took a long time getting the error I made. I know it's only cosmetics, but it's a bug ;)
greetings mihi
Signature · 2 lines
.plan: Get an ibook -> check http://unet.univie.ac.at/~a9900470/ibook