mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
change role names in so-firewall-minion
This commit is contained in:
@@ -49,33 +49,30 @@ fi
|
|||||||
case "$ROLE" in
|
case "$ROLE" in
|
||||||
|
|
||||||
'MANAGER')
|
'MANAGER')
|
||||||
so-firewall includehost manager "$IP"
|
so-firewall --role=manager --ip="$IP"
|
||||||
so-firewall --apply includehost minion "$IP"
|
|
||||||
;;
|
;;
|
||||||
'EVAL' | 'MANAGERSEARCH' | 'STANDALONE' | 'IMPORT')
|
'EVAL' | 'MANAGERSEARCH' | 'STANDALONE' | 'IMPORT')
|
||||||
so-firewall includehost manager "$IP"
|
so-firewall --role=manager --ip="$IP"
|
||||||
so-firewall includehost minion "$IP"
|
so-firewall --role=sensors --ip="$IP"
|
||||||
so-firewall includehost sensor "$IP"
|
so-firewall --apply --role=searchnodes --ip="$IP"
|
||||||
so-firewall --apply includehost search_node "$IP"
|
|
||||||
;;
|
;;
|
||||||
'SENSOR' | 'SEARCHNODE' | 'HEAVYNODE' | 'IDH' | 'RECEIVER')
|
'SENSOR' | 'SEARCHNODE' | 'HEAVYNODE' | 'IDH' | 'RECEIVER')
|
||||||
so-firewall includehost minion "$IP"
|
|
||||||
case "$ROLE" in
|
case "$ROLE" in
|
||||||
'SENSOR')
|
'SENSOR')
|
||||||
so-firewall --apply includehost sensor "$IP"
|
so-firewall --apply --role=sensors --ip="$IP"
|
||||||
;;
|
;;
|
||||||
'SEARCHNODE')
|
'SEARCHNODE')
|
||||||
so-firewall --apply includehost search_node "$IP"
|
so-firewall --apply --role=searchnodes --ip="$IP"
|
||||||
;;
|
;;
|
||||||
'HEAVYNODE')
|
'HEAVYNODE')
|
||||||
so-firewall includehost sensor "$IP"
|
so-firewall --role=sensors --ip="$IP"
|
||||||
so-firewall --apply includehost heavy_node "$IP"
|
so-firewall --apply --role=heavynodes --ip="$IP"
|
||||||
;;
|
;;
|
||||||
'IDH')
|
'IDH')
|
||||||
so-firewall --apply includehost beats_endpoint_ssl "$IP"
|
so-firewall --apply --role=beats_endpoint_ssl --ip="$IP"
|
||||||
;;
|
;;
|
||||||
'RECEIVER')
|
'RECEIVER')
|
||||||
so-firewall --apply includehost receiver "$IP"
|
so-firewall --apply --role=receivers --ip="$IP"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user