mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add plugin features to aon edit
This commit is contained in:
parent
2ea00c3e74
commit
2ba7d6f8ef
@ -46,7 +46,7 @@ require("filter.inc");
|
||||
require("shaper.inc");
|
||||
|
||||
if (!is_array($config['nat']['advancedoutbound']))
|
||||
$config['nat']['advancedoutbound'] = array();
|
||||
$config['nat']['advancedoutbound'] = array();
|
||||
|
||||
if (!is_array($config['nat']['advancedoutbound']['rule'])) {
|
||||
$config['nat']['advancedoutbound']['rule'] = array();
|
||||
@ -218,6 +218,9 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
|
||||
// Allow extending of the firewall edit page and include custom input validation
|
||||
pfSense_handle_custom_code("/usr/local/pkg/firewall_aon/input_validation");
|
||||
|
||||
if (!$input_errors) {
|
||||
$natent = array();
|
||||
$natent['source']['network'] = $osn;
|
||||
@ -274,6 +277,9 @@ if ($_POST) {
|
||||
$natent['destination']['not'] = true;
|
||||
}
|
||||
|
||||
// Allow extending of the firewall edit page and include custom input validation
|
||||
pfSense_handle_custom_code("/usr/local/pkg/firewall_aon/pre_write_config");
|
||||
|
||||
if (isset($id) && $a_out[$id]) {
|
||||
$a_out[$id] = $natent;
|
||||
} else {
|
||||
@ -396,6 +402,10 @@ function poolopts_change() {
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Advanced Outbound NAT entry");?></td>
|
||||
</tr>
|
||||
<?php
|
||||
// Allow extending of the firewall edit page and include custom input validation
|
||||
pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/htmlphpearly");
|
||||
?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Do not NAT");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
@ -629,6 +639,10 @@ any)");?></td>
|
||||
<br> <span class="vexpl"><?=gettext("You may enter a description here " .
|
||||
"for your reference (not parsed).");?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
// Allow extending of the firewall edit page and include custom input validation
|
||||
pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/htmlphplate");
|
||||
?>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user