All of lore.kernel.org
 help / color / mirror / Atom feed
* rules inserted with bad interface name
@ 2002-11-23  0:12 Laurence J. Lane
  2002-11-23 14:49 ` Michael Schwendt
  0 siblings, 1 reply; 2+ messages in thread
From: Laurence J. Lane @ 2002-11-23  0:12 UTC (permalink / raw)
  To: netfilter-devel

http://bugs.debian.org/170040

There appears to be an argument parsing bug in iptables, tested with
version 1.2.7a. If -i or -o is used without a space between the
interface and the option, iptables use the option as part of the
interface name. For example:

  iptables -A INPUT -ifoo

That actually appends the rule with the inbound interface 
literally named "-ifoo".

I also fond something else odd. The longopt forms of the interface
options give an error when used with an equal sign. For example:

  root@absolom:~# iptables --append=OUTPUT --out-interface=foo
  iptables v1.2.7a: interface name `--out-interface=foo' must be shorter
  than IFNAMSIZ (15)

That may actually be the same bug because iptables will accept
"--in-interface=" (which weighs in at exactly 15 characters) and 
make it the actual interface name.


Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-23 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-23  0:12 rules inserted with bad interface name Laurence J. Lane
2002-11-23 14:49 ` Michael Schwendt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.