All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Woerner <twoerner@redhat.com>
To: netfilter-devel@vger.kernel.org
Subject: netfilter/iptables and network interface names
Date: Thu, 04 Feb 2010 13:58:15 +0100	[thread overview]
Message-ID: <4B6AC467.7020209@redhat.com> (raw)

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

             reply	other threads:[~2010-02-04 12:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 12:58 Thomas Woerner [this message]
2010-02-04 14:29 ` netfilter/iptables and network interface names 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B6AC467.7020209@redhat.com \
    --to=twoerner@redhat.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.