내 웹 서버/IPS & WAF
[Opnsense - WAF] Splunk Universal Forwarder 부팅 시 자동실행
C-Dragon
2023. 12. 31. 09:59
1. Syshook 경로에 스크립트 생성
- 50-splunkforwarder 생성
vi /usr/local/etc/rc.syshook.d/start/50-splunkforwarder
- '50-splunkforwarder'에 아래 내용 작성 후 저장
#!/bin/sh
/usr/local/bin/splunk start
- 생성 파일 실행권한 부여
chmod +x /usr/local/etc/rc.syshook.d/start/50-splunkforwarder
이후 재부팅을 수행하면 SplunkForwarder 자동 실행 확인
참고 사이트:
https://docs.opnsense.org/development/backend/autorun.html
Bootup / autorun options — OPNsense documentation
OPNsense offers an easy method to plug in custom scripts during boot stages and assorted system events. They can contain any executable file (e.g. shell scripts) in the following subdirectories: Note This event is intended to be atomic for every changed re
docs.opnsense.org