Skip to content

Commit

Permalink
ebpf: add make install-ebpf and sample config
Browse files Browse the repository at this point in the history
install ebpf program to /etc/suricata/ebpf
add sample suricata xdp synproxy yaml config
in af-packet IDS mode
  • Loading branch information
vincentmli committed Jan 5, 2024
1 parent 0f6eb82 commit 455821e
Show file tree
Hide file tree
Showing 2 changed files with 2,109 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \

CLEANFILES = stamp-h[0-9]*

BPF_FILES = $(wildcard $(top_srcdir)/ebpf/*.bpf)
BPF_INSTALL_DIR = $(DESTDIR)$(e_sysconfdir)/ebpf

install-data-am:
@echo "Run 'make install-conf' if you want to install initial configuration files. Or 'make install-full' to install configuration and rules";

Expand All @@ -20,6 +23,10 @@ install-full:
$(MAKE) install-conf
$(MAKE) install-rules

install-ebpf:
install -d "$(BPF_INSTALL_DIR)"
$(INSTALL_DATA) $(BPF_FILES) $(BPF_INSTALL_DIR)

install-conf:
install -d "$(DESTDIR)$(e_sysconfdir)"
@test -e "$(DESTDIR)$(e_sysconfdir)/suricata.yaml" || install -m 600 "$(top_srcdir)/suricata.yaml" "$(DESTDIR)$(e_sysconfdir)"
Expand Down
Loading

0 comments on commit 455821e

Please sign in to comment.