Project

General

Profile

Actions

Bug #12174

closed

Firewall rule tabs load slowly when many rules on the tab utilize gateways

Added by lufte grof over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Rules / NAT
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.01
Release Notes:
Default
Affected Version:
2.5.x
Affected Architecture:
SG-1100

Description

firewall_rules.php is slow to load for interfaces that have numerous rules utilizing the gateway field for policy-based routing. The implementation of Feature Request #885 appears to be what caused this problem.

This has been affecting an SG-1100 since the upgrade to pfSense+ v21.02. I do not have any other platforms making extensive use of policy-based routing. However, user dlogan posted "Firewall -> Rules -> LAN very slow to load since 21.02 update" to the Netgate forums in May 2021. They are on an SG-5100. I will be following-up to see whether they are using policy-based routing in that configuration.

(https://forum.netgate.com/topic/164005/firewall-rules-lan-very-slow-to-load-since-21-02-update?_=1627572482359)

The original PR 4367 (https://github.com/pfsense/pfsense/pull/4367) checked for the disablealiaspopupdetail config option, but that condition was removed prior to merge because "there wouldn't be any similar issues with gateway popups."

With the attached patch, and configuring <disablealiaspopupdetail>, I have worked around the problem until a more efficient gateway_info_popup function can be developed.


Files

guiconfig.inc_29JUL2021b.patch (473 Bytes) guiconfig.inc_29JUL2021b.patch lufte grof, 07/29/2021 11:07 AM
guiconfig.inc_02AUG2021.patch (3.43 KB) guiconfig.inc_02AUG2021.patch lufte grof, 08/02/2021 02:20 PM
firewall_rules.php_02AUG2021.patch (2.31 KB) firewall_rules.php_02AUG2021.patch lufte grof, 08/02/2021 02:39 PM
Actions

Also available in: Atom PDF