<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - No warning for weird interface characters if interface contains wildcard character"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1085">1085</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No warning for weird interface characters if interface contains wildcard character
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>CVS (please indicate timestamp)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>trivial
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>netfilterbugzilla@s.cdmweb.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I try to match on an interface with illegal characters (e.g. whitespace or
/), I get a warning, as expected:

# iptables -A FORWARD -i "asd f"
Warning: weird character in interface `asd f' ('/' and ' ' are not allowed by
the kernel).

The rule is inserted successfully into the ruleset.

However, when I make the interface match a wildcard, I do no longer get the
warning:
# iptables -A FORWARD -i "asd f+"


Expected behavior: I get a warning about the whitespace in my interface match.
Observed behavior Rule is accepted without any warning, iptables-save confirms
that the rule was successfully inserted.

The issue can be seen directly in the function xtables_parse_interface:
<a href="https://git.netfilter.org/iptables/tree/libxtables/xtables.c?h=v1.6.0#n518">https://git.netfilter.org/iptables/tree/libxtables/xtables.c?h=v1.6.0#n518</a>
The for loop which checks for weird characters is not executed if the interface
match string ends on '+'.


Version: iptables 1.6.0
As of git commit 921dfe98c69b7a71e31e48df79f4986d7bde7810 (HEAD on 30th Aug
2016), the mentioned code did not change.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>