mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/firewall - "No RDR" option for Automation / Source NAT, closes https://github.com/opnsense/plugins/issues/2504
This commit is contained in:
+6
@@ -5,6 +5,12 @@
|
||||
<type>checkbox</type>
|
||||
<help>Enable this rule</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rule.nonat</id>
|
||||
<label>Do not NAT</label>
|
||||
<type>checkbox</type>
|
||||
<help>Enabling this option will disable NAT for traffic matching this rule and stop processing Outbound NAT rules.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rule.sequence</id>
|
||||
<label>Sequence</label>
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class SourceNatRuleContainerField extends ContainerField
|
||||
*/
|
||||
public function serialize()
|
||||
{
|
||||
$result = array();
|
||||
$result = [];
|
||||
$source_mapper = [
|
||||
'enabled' => false,
|
||||
'source_net' => false,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<model>
|
||||
<mount>//OPNsense/Firewall/Filter</mount>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
<migration_prefix>MFP</migration_prefix>
|
||||
<description>
|
||||
OPNsense firewall filter rules
|
||||
@@ -112,6 +112,10 @@
|
||||
<default>1</default>
|
||||
<Required>Y</Required>
|
||||
</enabled>
|
||||
<nonat type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</nonat>
|
||||
<sequence type="IntegerField">
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>99999</MaximumValue>
|
||||
|
||||
Reference in New Issue
Block a user