Skip to content

Commit

Permalink
Firewall: Automation: Filter - add some fields for #8143
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Dec 23, 2024
1 parent 1e78885 commit 88893fe
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
<style>tokenize</style>
<help>For grouping purposes you may select multiple groups here to organize items.</help>
</field>
<field>
<id>rule.nosync</id>
<label>No XMLRPC Sync</label>
<type>checkbox</type>
<help>Hint: This prevents the rule on Master from automatically syncing to other CARP members. This does NOT prevent the rule from being overwritten on Slave.</help>
</field>
<field>
<id>rule.description</id>
<label>Description</label>
Expand Down Expand Up @@ -121,6 +127,18 @@
<type>checkbox</type>
<help>Log packets that are handled by this rule</help>
</field>
<field>
<id>rule.nopfsync</id>
<label>NO pfsync</label>
<type>checkbox</type>
<help>Hint: This prevents states created by this rule to be sync'ed over pfsync.</help>
</field>
<field>
<id>rule.statetype</id>
<label>State type</label>
<type>dropdown</type>
<help>State tracking mechanism to use, default is full stateful tracking, sloppy ignores sequence numbers, use none for stateless rules.</help>
</field>
<field>
<type>header</type>
<label>Source routing</label>
Expand Down
18 changes: 18 additions & 0 deletions src/opnsense/mvc/app/models/OPNsense/Firewall/Filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
<Default>1</Default>
<Required>Y</Required>
</enabled>
<statetype type="OptionField">
<Required>N</Required>
<BlankDesc>keep state</BlankDesc>
<OptionValues>
<sloppy>sloppy state</sloppy>
<modulate>modulate state</modulate>
<synproxy>synproxy state</synproxy>
<none>no state</none>
</OptionValues>
</statetype>
<sequence type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>99999</MaximumValue>
Expand Down Expand Up @@ -113,6 +123,14 @@
<Default>0</Default>
<Required>Y</Required>
</log>
<nosync type="BooleanField">
<Default>0</Default>
<Required>Y</Required>
</nosync>
<nopfsync type="BooleanField">
<Default>0</Default>
<Required>Y</Required>
</nopfsync>
<categories type="ModelRelationField">
<Model>
<rulesets>
Expand Down

0 comments on commit 88893fe

Please sign in to comment.