Skip to content

Commit 091625d

Browse files
committed
Firewall: NAT: Port Forward - refactor to MVC (work in progress) for #8401
update menu and acl.
1 parent ed782ed commit 091625d

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

src/opnsense/mvc/app/models/OPNsense/Core/ACL/ACL.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,12 @@
215215
<pattern>firewall_nat_out_edit.php*</pattern>
216216
</patterns>
217217
</page-firewall-nat-outbound-edit>
218-
<page-firewall-nat-portforward>
219-
<name>Firewall: NAT: Port Forward</name>
220-
<patterns>
221-
<pattern>firewall_nat.php*</pattern>
222-
<pattern>api/firewall/category/search_item*</pattern>
223-
</patterns>
224-
</page-firewall-nat-portforward>
225218
<page-firewall-nat-portforward-edit>
226-
<name>Firewall: NAT: Port Forward: Edit</name>
219+
<name>Firewall: NAT: Destination NAT (Port Forward)</name>
227220
<patterns>
228-
<pattern>firewall_nat_edit.php*</pattern>
221+
<pattern>ui/firewall/d_nat</pattern>
222+
<pattern>api/firewall/d_nat/*</pattern>
223+
<pattern>api/firewall/category/search_item*</pattern>
229224
</patterns>
230225
</page-firewall-nat-portforward-edit>
231226
<page-firewall-rules>

src/opnsense/mvc/app/models/OPNsense/Core/Menu/Menu.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@
9292
<Categories url="/ui/firewall/category" cssClass="fa fa-tags fa-fw"/>
9393
<Groups url="/ui/firewall/group" cssClass="fa fa-sitemap fa-fw"/>
9494
<NAT cssClass="fa fa-exchange fa-fw">
95-
<PortForward order="100" VisibleName="Port Forward" url="/firewall_nat.php">
96-
<Edit url="/firewall_nat_edit.php*" visibility="hidden"/>
97-
</PortForward>
9895
<Outbound order="300" VisibleName="Outbound" url="/firewall_nat_out.php">
9996
<Edit url="/firewall_nat_out_edit.php*" visibility="hidden"/>
10097
</Outbound>

src/opnsense/mvc/app/models/OPNsense/Firewall/Menu/Menu.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<FilterRef url="/ui/firewall/filter#*" visibility="hidden"/>
55
</Rule>
66
<NAT>
7+
<DNat order="100" VisibleName="Destination NAT" url="/ui/firewall/d_nat/">
8+
<FilterRef url="/ui/firewall/d_nat#*" visibility="hidden"/>
9+
</DNat>
710
<OneToOne order="200" VisibleName="One-to-One" url="/ui/firewall/one_to_one/">
811
<FilterRef url="/ui/firewall/one_to_one#*" visibility="hidden"/>
912
</OneToOne>
1013
<SourceNat order="400" VisibleName="Source NAT" url="/ui/firewall/source_nat/">
1114
<FilterRef url="/ui/firewall/source_nat#*" visibility="hidden"/>
1215
</SourceNat>
13-
<DNat order="500" VisibleName="Destination NAT" url="/ui/firewall/d_nat/">
14-
<FilterRef url="/ui/firewall/d_nat#*" visibility="hidden"/>
15-
</DNat>
1616
<NPTv6 order="600" url="/ui/firewall/npt/">
1717
<FilterRef url="/ui/firewall/npt#*" visibility="hidden"/>
1818
</NPTv6>

0 commit comments

Comments
 (0)