<p>In working to add custom iptables firewall rules into commotion I stumbled on the "Custom Rules" page in the Firewall section of the Advanced config.  I added my iptables rules and reset the firewall only to find that the rules had not been applied.  I logged in and applied my iptables rules manually to double check syntax and they worked as designed.  I found that the file this section was editing was the /etc/firewall.user file. After some more investigation these seams to be a standard file used for adding custom firewall rules in OpenWRT but that it needed to be included in the UCI firewall config file with the following included statement:</p>

<p>config include<br>
       option path /etc/firewall.user</p>

<p>These lines were missing from the UCI firewall config file located at /etc/config/firewall. Once these lines were added the firewall.user file was included as described it would be and all iptables rules were applied successfully. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/commotion-router/issues/156">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBFR_vl6QFm8pZ4cCXxVuNqbkbrahks5nKYiRgaJpZM4C3Ge2.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/opentechinstitute/commotion-router/issues/156"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>