-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #862 from Security-Onion-Solutions/dev
1.4.0
- Loading branch information
Showing
172 changed files
with
10,810 additions
and
4,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% import_yaml 'firewall/portgroups.yaml' as default_portgroups %} | ||
{% set default_portgroups = default_portgroups.firewall.aliases.ports %} | ||
{% import_yaml 'firewall/portgroups.local.yaml' as local_portgroups %} | ||
{% if local_portgroups.firewall.aliases.ports %} | ||
{% set local_portgroups = local_portgroups.firewall.aliases.ports %} | ||
{% else %} | ||
{% set local_portgroups = {} %} | ||
{% endif %} | ||
{% set portgroups = salt['defaults.merge'](default_portgroups, local_portgroups, in_place=False) %} | ||
|
||
role: | ||
eval: | ||
fleet: | ||
heavynode: | ||
helixsensor: | ||
master: | ||
mastersearch: | ||
standalone: | ||
searchnode: | ||
sensor: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
firewall: | ||
hostgroups: | ||
analyst: | ||
ips: | ||
delete: | ||
insert: | ||
beats_endpoint: | ||
ips: | ||
delete: | ||
insert: | ||
beats_endpoint_ssl: | ||
ips: | ||
delete: | ||
insert: | ||
fleet: | ||
ips: | ||
delete: | ||
insert: | ||
heavy_node: | ||
ips: | ||
delete: | ||
insert: | ||
master: | ||
ips: | ||
delete: | ||
insert: | ||
minion: | ||
ips: | ||
delete: | ||
insert: | ||
node: | ||
ips: | ||
delete: | ||
insert: | ||
osquery_endpoint: | ||
ips: | ||
delete: | ||
insert: | ||
search_node: | ||
ips: | ||
delete: | ||
insert: | ||
sensor: | ||
ips: | ||
delete: | ||
insert: | ||
syslog: | ||
ips: | ||
delete: | ||
insert: | ||
wazuh_agent: | ||
ips: | ||
delete: | ||
insert: | ||
wazuh_api: | ||
ips: | ||
delete: | ||
insert: | ||
wazuh_authd: | ||
ips: | ||
delete: | ||
insert: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
firewall: | ||
aliases: | ||
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script adds ip addresses to specific rule sets defined by the user | ||
|
||
local_salt_dir=/opt/so/saltstack/local | ||
POLICY=$1 | ||
IPADDRESS=$2 | ||
|
||
if grep -q $2 "/opt/so/saltstack/pillar/firewall/$1.sls"; then | ||
if grep -q $2 "$local_salt_dir/pillar/firewall/$1.sls"; then | ||
echo "Firewall Rule Already There" | ||
else | ||
echo " - $2" >> /opt/so/saltstack/pillar/firewall/$1.sls | ||
echo " - $2" >> $local_salt_dir/pillar/firewall/$1.sls | ||
salt-call state.apply firewall queue=True | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
firewall: | ||
analyst: | ||
ports: | ||
tcp: | ||
- 80 | ||
- 443 | ||
udp: | ||
beats_endpoint: | ||
ports: | ||
tcp: | ||
- 5044 | ||
forward_nodes: | ||
ports: | ||
tcp: | ||
- 443 | ||
- 5044 | ||
- 5644 | ||
- 9822 | ||
udp: | ||
master: | ||
ports: | ||
tcp: | ||
- 1514 | ||
- 3200 | ||
- 3306 | ||
- 4200 | ||
- 5601 | ||
- 6379 | ||
- 8086 | ||
- 8090 | ||
- 9001 | ||
- 9200 | ||
- 9300 | ||
- 9400 | ||
- 9500 | ||
udp: | ||
- 1514 | ||
minions: | ||
ports: | ||
tcp: | ||
- 3142 | ||
- 4505 | ||
- 4506 | ||
- 5000 | ||
- 8080 | ||
- 8086 | ||
- 55000 | ||
osquery_endpoint: | ||
ports: | ||
tcp: | ||
- 8090 | ||
search_nodes: | ||
ports: | ||
tcp: | ||
- 6379 | ||
- 9300 | ||
wazuh_endpoint: | ||
ports: | ||
tcp: | ||
- 1514 | ||
udp: | ||
-1514 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.