This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 521
RemovingASensor
weslambert edited this page Jul 8, 2016
·
17 revisions
There may come a time when you need to disable a sensor interface, delete a sensor's configuration, or get rid of an entire sensor and its data altogether. The steps below outline what is required to accomplish each objective.
- To disable a sensor interface, simply comment out the interface in
/etc/nsm/sensortab
and in/opt/bro/etc/node.cfg
on the sensor box for which you wish to disable the interface. - Restart NSM service(s) (
sudo service nsm restart
) and/or reboot to ensure changes have taken effect.
- To delete the configuration for a sensor, run
/usr/sbin/nsm_sensor_del
on the sensor box for which you wish to delete the configuration.
- To completely wipe sensor configuration and data, run
/usr/bin/sosetup
on the sensor box for which you wish to wipe the data and configuration.
-
On the master server, edit
/etc/elsa_web.conf
, remove the sensor from thepeers
section, then restart Apache (sudo service apache2 restart
). -
In MySQL database securityonion_db, edit sensor table (you can simply set active='N'), then restart sguild.
- Stop sguild
sudo nsm_server_ps-stop
- Show sensor entries
sudo mysql --defaults-file=/etc/mysql/debian.cnf -Dsecurityonion_db -e 'select * from sensor';
- Set sensor as inactive
sudo mysql --defaults-file=/etc/mysql/debian.cnf -Dsecurityonion_db -e "update sensor set active='N' where sid in (<SID1>,<SID2>)";
- Start sguild
sudo nsm_server_ps-start
- Stop sguild
-
If running salt:
- Remove the sensor from
/opt/onionsalt/salt/top.sls
.
- Delete the key from salt:
sudo salt-key -d [sensor_key_name ]
- Remove the sensor from
- Introduction
- Use Cases
- Hardware Requirements
- Release Notes
- Download/Install
- Booting Issues
- After Installation
- UTC and Time Zones
- Services
- VirtualBox Walkthrough
- VMWare Walkthrough
- Videos
- Architecture
- Cheat Sheet
- Conference
- Elastic Stack
- Elastic Architecture
- Elasticsearch
- Logstash
- Kibana
- ElastAlert
- Curator
- FreqServer
- DomainStats
- Docker
- Redis
- Data Fields
- Beats
- Pre-Releases
- ELSA to Elastic
- Network Configuration
- Proxy Configuration
- Firewall/Hardening
- Email Configuration
- Integrating with other systems
- Changing IP Addresses
- NTP
- Managing Alerts
- Managing Rules
- Adding Local Rules
- Disabling Processes
- Filtering with BPF
- Adjusting PF_RING for traffic
- MySQL Tuning
- Adding a new disk
- High Performance Tuning
- Trimming PCAPs