netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netfilter/iptables and network interface names
@ 2010-02-04 12:58 Thomas Woerner
  2010-02-04 14:29 ` Jan Engelhardt
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Woerner @ 2010-02-04 12:58 UTC (permalink / raw)
  To: netfilter-devel

Hello,

I just fell over network interface definitions in kernel and 
netfilter/iptables.

Interfaces names in the kernel have few limits: Only spaces and slashes 
are not allowed, but everything else, even Ctrl characters are.

In iptables, there are other limits: Colon, exclamation mark and 
asterisk are not allowed. The plus is treated special for matching. But 
what will be matched if the interface starts with or contains a plus?

iptables allows to use interfaces containing spaces and slashes. 
iptables-save is not escaping interface names. The interface "+" will be 
treated as no interface limit at all and will be dropped, therefore all 
interfaces match.

I think there should be some discussion about interface names and limits 
in kernel and netfilter/iptables.

What do you think?

Thanks in advance,
Thomas Woerner

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

end of thread, other threads:[~2010-02-09 15:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04 12:58 netfilter/iptables and network interface names Thomas Woerner
2010-02-04 14:29 ` Jan Engelhardt
2010-02-04 14:31   ` Patrick McHardy
2010-02-04 14:46     ` Jan Engelhardt
2010-02-04 14:55       ` Patrick McHardy
2010-02-04 16:48         ` Jan Engelhardt
2010-02-04 16:49           ` Patrick McHardy
2010-02-04 18:44             ` Jan Engelhardt
2010-02-05 10:27               ` Patrick McHardy
2010-02-09 11:44                 ` Jan Engelhardt
2010-02-05 10:32       ` Patrick McHardy
2010-02-09 15:00       ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).