Allow any protocol for reflection rules
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 10 Oct 2013 19:38:57 +0000 (19:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 10 Oct 2013 19:38:57 +0000 (19:38 +0000)
redirects.c

index bb5e1ff..c76d848 100644 (file)
@@ -653,7 +653,7 @@ expand_redirect(struct fw3_ipt_handle *handle, struct fw3_state *state,
 
                        fw3_foreach(proto, &redir->proto)
                        {
 
                        fw3_foreach(proto, &redir->proto)
                        {
-                               if (!proto || (proto->protocol != 6 && proto->protocol != 17))
+                               if (!proto)
                                        continue;
 
                                if (redir->reflection_src == FW3_REFLECTION_INTERNAL)
                                        continue;
 
                                if (redir->reflection_src == FW3_REFLECTION_INTERNAL)