# CU169 iptables WUI dropdown menus

**URL:** <https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372>\
**Category:** Update Trouble\
**Created:** [9 August 2022 00:36 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372 "2022-08-09T00:36:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaegers49](https://community.ipfire.org/user_avatar/community.ipfire.org/jaegers49/32/12729_2.png) [@jaegers49](https://community.ipfire.org/u/jaegers49)\
**Post date:** [9 August 2022 00:36 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/1 "2022-08-09T00:36:49Z")

</div>

Hi all,

Is anyone else having issues with the iptables’s drop down menus in CU169? If I go and look at that page in the WUI, all the menus are the same between iptables:, IPTable Mangles:, and IPTable Network Address Translation:. So I get a page that looks like this:

 ![image](https://community.ipfire.org/uploads/default/original/2X/5/5445885fc5167d48640f20a2eefbd2d4a23d79f8.png)

All three types of tables have the same menu options, and this did not used to be this way. Wondering if it is a bug or a browser issue.

PZ

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [9 August 2022 00:49 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/2 "2022-08-09T00:49:51Z")

</div>

You can select a different menu  
From the drop down menu. And update.  
To display that option.

---

<div class="post-metadata">

**Author:** ![jaegers49](https://community.ipfire.org/user_avatar/community.ipfire.org/jaegers49/32/12729_2.png) [@jaegers49](https://community.ipfire.org/u/jaegers49)\
**Post date:** [9 August 2022 01:06 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/3 "2022-08-09T01:06:58Z")

</div>

Yes, I understand. But my problem is that between the three different types of iptables all the menus options are the same. So I can pick CUSTOMINPUT, or in the picture I posted HOSTILE\_DROP, in any of the three of the different areas, but there is no CUSTOMPREROUTING option. CUSTOMPREROUTING should show up in the NAT rules but it is not there.

---

<div class="post-metadata">

**Author:** ![bbitsch](https://community.ipfire.org/user_avatar/community.ipfire.org/bbitsch/32/7420_2.png) [@bbitsch](https://community.ipfire.org/u/bbitsch)\
**Post date:** [9 August 2022 08:03 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/4 "2022-08-09T08:03:14Z")

</div>

CUSTOMPREROUTING isn’t there on my system, too.  
Maybe it is deleted by the update because of some development decisions. Have you defined any rules there before?

EDIT: I’ve just checked from the command line. The chain exists.  
So you should raise a bug in [bugzilla](https://bugzilla.ipfire.org). Your login to the community can be used there also.

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/16838_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [9 August 2022 19:26 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/5 "2022-08-09T19:26:50Z")

</div>

My iptables is doing something different also. Different from past Core Updates.  
Notice blank **BADTCP** sections

 ![Screen Shot 2022-08-09 at 2.21.46 PM](https://community.ipfire.org/uploads/default/original/2X/4/468298a195348226881f437b870c09bab9308b5c.png)

Clicking any **Update** button changes the bottom two tables.

 ![Screen Shot 2022-08-09 at 2.24.35 PM](https://community.ipfire.org/uploads/default/original/2X/a/a265d0f2be7b94c68b6e3cfb8f492b664c7e062b.jpeg)

* * *

**EDIT** :

In the past the default for the drop downs was **Input** / **Prerouting** / **Prerouting**. And the results were populated instead of blank.

**AND** more important:  
I have `iptables -t nat -D CUSTOMPREROUTING -s ` command in `firewall.local` and CUSTOMPREROUTING no longer appears in the drop down.

 ![Screen Shot 2022-08-09 at 2.40.14 PM](https://community.ipfire.org/uploads/default/original/2X/b/b39e96f286491b3544d6723805043b850210bab1.jpeg)

---

<div class="post-metadata">

**Author:** ![bbitsch](https://community.ipfire.org/user_avatar/community.ipfire.org/bbitsch/32/7420_2.png) [@bbitsch](https://community.ipfire.org/u/bbitsch)\
**Post date:** [9 August 2022 19:43 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/6 "2022-08-09T19:43:54Z")

</div>

A quick review of the sources did not show hints for this erroneous behaviour.  
But there are some warnings from Perl ( if debug is switched on ) in /var/log/httpd/error\_log.  
I’ll look into that a bit deeper the next days.

EDIT: Nevertheless a bug report would be helpfull to ‘alert’ the other devs.

---

<div class="post-metadata">

**Author:** ![jaegers49](https://community.ipfire.org/user_avatar/community.ipfire.org/jaegers49/32/12729_2.png) [@jaegers49](https://community.ipfire.org/u/jaegers49)\
**Post date:** [10 August 2022 02:46 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/7 "2022-08-10T02:46:25Z")

</div>

I hope I submitted the bug properly. It is bug 12908, [12908 – Web interface iptables drop down menus incorrect](https://bugzilla.ipfire.org/show_bug.cgi?id=12908).

---

<div class="post-metadata">

**Author:** ![cbrown](https://community.ipfire.org/user_avatar/community.ipfire.org/cbrown/32/16342_2.png) [@cbrown](https://community.ipfire.org/u/cbrown)\
**Post date:** [16 August 2022 00:49 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/8 "2022-08-16T00:49:54Z")

</div>

Per the info I added to [12908 – Web interface iptables drop down menus incorrect](https://bugzilla.ipfire.org/show_bug.cgi?id=12908)  
It seems there is an index off by 1 issue. Not sure how / why it was working before.  
I’m not an IPFire developer but the one-line fix in **src/misc-progs/getipstat.c** – changing line 32 to “unsigned int pcount = 5;” – looks like it would do the trick.

---

<div class="post-metadata">

**Author:** ![cbrown](https://community.ipfire.org/user_avatar/community.ipfire.org/cbrown/32/16342_2.png) [@cbrown](https://community.ipfire.org/u/cbrown)\
**Post date:** [17 August 2022 16:07 UTC](https://community.ipfire.org/t/cu169-iptables-wui-dropdown-menus/8372/9 "2022-08-17T16:07:44Z")

</div>

Robin Roevens submitted a patch addressing the _off by 1_ index issue in src/misc-progs/getipstat.c
