diff --git a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/ServiceController.php b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/ServiceController.php index 166a192ef..9c74d7431 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/ServiceController.php +++ b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/ServiceController.php @@ -41,4 +41,4 @@ class ServiceController extends ApiMutableServiceControllerBase protected static $internalServiceEnabled = 'general.enabled'; protected static $internalServiceTemplate = 'OPNsense/WazuhAgent'; protected static $internalServiceName = 'wazuh_agent'; -} \ No newline at end of file +} diff --git a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/SettingsController.php b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/SettingsController.php index 2063a5780..68b75e072 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/SettingsController.php +++ b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/Api/SettingsController.php @@ -36,4 +36,4 @@ class SettingsController extends ApiMutableModelControllerBase { protected static $internalModelName = 'agent'; protected static $internalModelClass = 'OPNsense\WazuhAgent\WazuhAgent'; -} \ No newline at end of file +} diff --git a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/IndexController.php b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/IndexController.php index 5a9b9397f..11e53e782 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/IndexController.php +++ b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/IndexController.php @@ -43,4 +43,4 @@ class IndexController extends \OPNsense\Base\IndexController // choose template $this->view->pick('OPNsense/WazuhAgent/index'); } -} \ No newline at end of file +} diff --git a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/forms/settings.xml b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/forms/settings.xml index 8be2d81fb..0253a4fd1 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/forms/settings.xml +++ b/security/wazuh-agent/src/opnsense/mvc/app/controllers/OPNsense/WazuhAgent/forms/settings.xml @@ -119,4 +119,4 @@ checkbox Enable file integrity monitoring - \ No newline at end of file + diff --git a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/Firewall/static_aliases/wazuh_agent.json b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/Firewall/static_aliases/wazuh_agent.json index ecf704abc..94c0bbb04 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/Firewall/static_aliases/wazuh_agent.json +++ b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/Firewall/static_aliases/wazuh_agent.json @@ -6,4 +6,4 @@ "description": "Wazuh Agent blocklist (internal)", "content": "" } -} \ No newline at end of file +} diff --git a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/ACL/ACL.xml b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/ACL/ACL.xml index 0108ea9cb..cb1abc5c3 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/ACL/ACL.xml +++ b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/ACL/ACL.xml @@ -6,4 +6,4 @@ api/wazuh_agent/* - \ No newline at end of file + diff --git a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/Menu/Menu.xml b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/Menu/Menu.xml index 02191e604..086ffad92 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/Menu/Menu.xml +++ b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/Menu/Menu.xml @@ -6,4 +6,4 @@ - \ No newline at end of file + diff --git a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.php b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.php index add9f8114..478fb19e4 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.php +++ b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.php @@ -37,4 +37,4 @@ */ class WazuhAgent extends BaseModel { -} \ No newline at end of file +} diff --git a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.xml b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.xml index 1ae35d1e1..9a5b5de72 100644 --- a/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.xml +++ b/security/wazuh-agent/src/opnsense/mvc/app/models/OPNsense/WazuhAgent/WazuhAgent.xml @@ -90,4 +90,4 @@ - \ No newline at end of file + diff --git a/security/wazuh-agent/src/opnsense/scripts/syslog/logformats/wazuhagent.py b/security/wazuh-agent/src/opnsense/scripts/syslog/logformats/wazuhagent.py old mode 100644 new mode 100755 index 198256291..5a903264a --- a/security/wazuh-agent/src/opnsense/scripts/syslog/logformats/wazuhagent.py +++ b/security/wazuh-agent/src/opnsense/scripts/syslog/logformats/wazuhagent.py @@ -48,4 +48,4 @@ class OssecLogFormat(NewBaseLogFormat): @property def line(self): - return self._line[19:].strip().split(':', 1)[-1] \ No newline at end of file + return self._line[19:].strip().split(':', 1)[-1] diff --git a/security/wazuh-agent/src/opnsense/scripts/wazuh/setup.php b/security/wazuh-agent/src/opnsense/scripts/wazuh/setup.php index e294fd723..edeebf971 100755 --- a/security/wazuh-agent/src/opnsense/scripts/wazuh/setup.php +++ b/security/wazuh-agent/src/opnsense/scripts/wazuh/setup.php @@ -1,5 +1,6 @@ #!/usr/local/bin/php auth->password)) { mkdir("/var/log/wazuhagent/ossec/", 0700, true); mkdir("/var/log/wazuhagent/activeresponses/", 0700, true); @symlink("/var/ossec/logs/ossec.log", "/var/log/wazuhagent/ossec/ossec_99991231.log"); -@symlink( "/var/ossec/logs/active-responses.log", "/var/log/wazuhagent/activeresponses/activeresponses_99991231.log"); +@symlink("/var/ossec/logs/active-responses.log", "/var/log/wazuhagent/activeresponses/activeresponses_99991231.log"); diff --git a/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/opnsense-fw.conf b/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/opnsense-fw.conf index 073220f8f..778b54960 100644 --- a/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/opnsense-fw.conf +++ b/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/opnsense-fw.conf @@ -1,4 +1,4 @@ [general] {% if not helpers.empty('OPNsense.WazuhAgent.wazuh_command.fw_alias_ignore') and helpers.getUUID(OPNsense.WazuhAgent.wazuh_command.fw_alias_ignore) %} skip_alias={{helpers.getUUID(OPNsense.WazuhAgent.wazuh_command.fw_alias_ignore).name}} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/ossec_config.d/004-localfile-suricata.conf b/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/ossec_config.d/004-localfile-suricata.conf index ec0b9ffce..cb627a493 100644 --- a/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/ossec_config.d/004-localfile-suricata.conf +++ b/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/ossec_config.d/004-localfile-suricata.conf @@ -6,4 +6,4 @@ {% else %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/syslog-ng-wazuh-agent.conf b/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/syslog-ng-wazuh-agent.conf index 649aa0221..562a64629 100644 --- a/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/syslog-ng-wazuh-agent.conf +++ b/security/wazuh-agent/src/opnsense/service/templates/OPNsense/WazuhAgent/syslog-ng-wazuh-agent.conf @@ -24,4 +24,4 @@ log { filter(f_local_wazuhagent); destination(d_local_wazuhagent); }; -{% endif %} \ No newline at end of file +{% endif %}