mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
security/wazuh-agent: implement options to change server ports (#4346)
This commit is contained in:
parent
4f40b607a1
commit
530e70cebc
3 changed files with 33 additions and 2 deletions
|
|
@ -22,6 +22,13 @@
|
|||
<advanced>true</advanced>
|
||||
<help>Specifies the transport protocol to use.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>agent.general.port</id>
|
||||
<label>Manager port</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Specifies the port to use for communicating with the Wazuh manager.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>agent.logcollector.syslog_programs</id>
|
||||
<label>Applications</label>
|
||||
|
|
@ -84,7 +91,7 @@
|
|||
</field>
|
||||
<field>
|
||||
<type>header</type>
|
||||
<label>Authentication</label>
|
||||
<label>Enrollment</label>
|
||||
<collapse>true</collapse>
|
||||
</field>
|
||||
<field>
|
||||
|
|
@ -93,6 +100,12 @@
|
|||
<type>password</type>
|
||||
<help>Password to use in authd.pass file.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>agent.auth.port</id>
|
||||
<label>Enrollment port</label>
|
||||
<type>text</type>
|
||||
<help>Specifies the port to use for communicating with the Wazuh manager during enrollment.</help>
|
||||
</field>
|
||||
<field>
|
||||
<type>header</type>
|
||||
<label>Policy monitoring and anomaly detection</label>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<model>
|
||||
<mount>//OPNsense/WazuhAgent</mount>
|
||||
<version>1.0.1</version>
|
||||
<version>1.0.2</version>
|
||||
<description>
|
||||
Wazuh Agent
|
||||
</description>
|
||||
|
|
@ -22,6 +22,13 @@
|
|||
<udp>UDP</udp>
|
||||
</OptionValues>
|
||||
</protocol>
|
||||
<port type="IntegerField">
|
||||
<default>1514</default>
|
||||
<Required>Y</Required>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>65536</MaximumValue>
|
||||
<ValidationMessage>This must be a valid port number.</ValidationMessage>
|
||||
</port>
|
||||
<debug_level type="OptionField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
|
|
@ -35,6 +42,13 @@
|
|||
<auth>
|
||||
<password type="TextField">
|
||||
</password>
|
||||
<port type="IntegerField">
|
||||
<default>1515</default>
|
||||
<Required>Y</Required>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>65536</MaximumValue>
|
||||
<ValidationMessage>This must be a valid port number.</ValidationMessage>
|
||||
</port>
|
||||
</auth>
|
||||
<logcollector>
|
||||
<remote_commands type="BooleanField">
|
||||
|
|
|
|||
|
|
@ -3,8 +3,12 @@
|
|||
<server>
|
||||
<address>{{OPNsense.WazuhAgent.general.server_address}}</address>
|
||||
<protocol>{{OPNsense.WazuhAgent.general.protocol|default('tcp')}}</protocol>
|
||||
<port>{{OPNsense.WazuhAgent.general.port|default('1514')}}</port>
|
||||
</server>
|
||||
<crypto_method>aes</crypto_method>
|
||||
<enrollment>
|
||||
<port>{{OPNsense.WazuhAgent.auth.port|default('1515')}}</port>
|
||||
</enrollment>
|
||||
</client>
|
||||
|
||||
<client_buffer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue