LimitersFW patch
Paste the below code into the Patch Contents box.
Add a description such as 'Remove schedule and add limiters Firewall UI' in the Description box.
Set Path Strip Count to '0'.
Base Directory to '/usr/local/www/'.
[code]--- firewall_rules.php 2022-09-28 20:57:55.827968000 +0100 +++ firewall_rules.php 2022-09-28 20:55:22.694754000 +0100 @@ -405,8 +405,7 @@
<th><?=gettext("Destination")?></th> <th><?=gettext("Port")?></th> <th><?=gettext("Gateway")?></th>
- <th><?=gettext("Queue")?></th> - <th><?=gettext("Schedule")?></th> + <th><?=gettext("Limiter")?></th>
<th><?=gettext("Description")?></th> <th><?=gettext("Actions")?></th> </tr>
@@ -859,26 +858,20 @@
</td> <td> <?php
- if (isset($filterent['ackqueue']) && isset($filterent['defaultqueue'])) {
- $desc = str_replace('_', ' ', $filterent['ackqueue']);
- echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['ackqueue']}&action=show\">{$desc}</a>";
- $desc = str_replace('_', '_
} else { echo gettext("none"); } ?> </td> <td>
- <?php if ($printicon) { ?>
- <i class="fa fa-<?=$image?> <?=$dispcolor?>" title="<?=$alttext;?>"></i>
- <?php } ?>
- <?=$schedule_span_begin;?><?=str_replace('_', '_
<?=htmlspecialchars($filterent['descr']);?> </td> <td class="action-icons">[/code]