<p>In default-files/etc/config/firewall:</p>
<pre style='color:#555'>> @@ -61,6 +60,17 @@ config forwarding
>  config rule
>    option src 'wan'
>    option dest_port '22'
> +  option proto 'tcp'
> +  option state 'NEW'
</pre>
<p>Huh. I could have sworn I read it on one of the openwrt wiki pages or forum posts but now I can't find it. State is supported by iptables. The closest I can find in the UCI documentation is "The iptables rules generated for this section rely on the state match." I must have guessed at it.</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/pull/120/files#r12158606'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNDUwMjEyNywiZGF0YSI6eyJpZCI6MzAzNDgxNTZ9fQ==--49cac2d08ee45b95c51cd26cf992f7681c3676d9.gif' height='1' width='1'></p>