<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 - ip6tables-restore not passing useful error messages from ip6tables"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1186">1186</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ip6tables-restore not passing useful error messages from ip6tables
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Ubuntu
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>unknown
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jasonhendry1987@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

I am using ip6tables-restore v1.6.0 (ubuntu 16.04 pkg from official repos).
When generating an IPv6 firewall with an option not supported by IPv6
ip6tables-restore gives this error: (line 76 is the last line in the file with
the COMMIT statement):

ip6tables-restore: line 76 failed

After debugging the rules manually I found the issue:

ip6tables -A DROP_BROADCAST_AND_MCAST --match state --state NEW --match
addrtype --dst-type BROADCAST --jump DROP 
ip6tables: Invalid argument. Run `dmesg' for more information.

Running dmesg gives me:

[636716.526815] xt_addrtype: ipv6 does not support BROADCAST matching

If ip6tables-restore could pass the error from ip6tables that would be useful. 
I have not tested if this happens with iptables-restore</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>