Commit graph

66 commits

Author SHA1 Message Date
ppom
b4313699df
systemd: Let reaction stop its subprocesses before killing them
systemd by default send SIGTERM to all processes in the cgroup, which
doesn't let reaction handle the shutdown of its plugins.
This is fixed by adding KillMode=mixed.
2026-02-12 12:00:00 +01:00
ppom
270c6cb969
systemd service: config file must live in /etc/reaction/
This is a breaking change, but it unifies config
for yaml, json, jsonnet and directory users.
2026-02-12 12:00:00 +01:00
ppom
0b2bfe533b
Update example configs to get rid of ip46tables 2025-08-04 12:00:00 +02:00
ppom
43f8b66870
Update config documentation 2025-08-04 12:00:00 +02:00
ppom
6b970e74c5
Update configuration reference 2025-07-14 12:00:00 +02:00
ppom
881fc76bf9
WIP duplicates
- new duplicate option
- change triggers Tree structure to keep O(log(n)) querying:
  now we need to know if a match already has a trigger.
- triggers migration
- triggers adaptations in State & FilterManager
2025-07-14 12:00:00 +02:00
ppom
39bf662296
Fix example configs
- Fix comma issues
- Fix regex syntax doc
- Add ssh regexes
2025-06-28 12:00:00 +02:00
ppom
0d9fc47016
Update duration format documentation
As it's no longer Go's format
2025-06-10 12:00:00 +02:00
ppom
5bccdb5ba7
Add oneshot option for actions
Fixes #92
2025-06-10 12:00:00 +02:00
ppom
3beca6d7a5
Document state_directory
Fixes #71
2025-06-05 12:00:00 +02:00
ppom
daf1bf3818
Update configuration
- README.md: update minimal example (was outdated since a long time 🤐)
- README.md: link to Security part of the wiki
- README.md: fix OpenBSD broken link
- README.md: add `state_directory` option
- activitywatch & server configs: remove from config directory. only
  available in the wiki.
- heavy-load: move to new bench directory
- test: move to tests directory

Fix #121
2025-05-31 12:00:00 +02:00
ppom
1ec558e559 v2.0.0-rc2 release
- Cross compilation to amd64 and arm64
- Fully static binaries
- Debian packages
- Man pages
- Shell completions
- Systemd service
2025-02-21 12:00:00 +01:00
ppom
1587e38c68 Move example.yml back to config/ directory 2025-02-05 12:00:00 +01:00
ppom
3dd97523fd Move new rust codebase to root dir 2024-10-24 12:00:00 +02:00
ppom
c2c6e6269a Flush now takes regexes 2024-05-24 12:00:00 +02:00
ppom
131d8eced9 Big client-daemon refacto
Now most of the work is done on the client side.

Daemon sends its Config, Matches and Actions structures.
Client does all data conversions, and filtering.
For flush, Client sends to the Daemon individual flush instructions.
2024-05-20 12:00:00 +02:00
ppom
a2be0c2ac6 Fix match logic 2024-05-20 12:00:00 +02:00
ppom
3d697a5003 systemd service files cleaning 🧹 2024-04-20 12:00:00 +02:00
ppom
8e1c67cead iptables: add reaction chain to FORWARD chain for docker
https://framagit.org/ppom/reaction/-/issues/84
2024-03-27 12:00:00 +01:00
ppom
0b4030905b ignoreregex test 2024-02-09 12:00:00 +01:00
Tom Hubrecht
8afa6281f4 Add support for ignore regexes in filters 2024-02-08 13:28:51 +00:00
ppom
bc13342e06 Add banFor snippet to jsonnet example 2024-01-08 12:00:00 +01:00
ppom
e1ff702cd1 Generalisation of new SSH regex 2024-01-06 12:00:00 +01:00
fallstar
ed809f4f98 improved server.jsonnet 2024-01-06 12:00:00 +01:00
ppom
b441e91f84 Add global concurrency parameter. fix #56
Fix bug which caused pending actions to be run multiple times when pending time finished
Fix bug which caused
1. past pending actions to rerun on exit
2. maximum one pending action per pattern/action couple to run on exit
2024-01-05 12:00:00 +01:00
ppom
8874454a0f Revert "quick fix IP regexes. see #62"
This reverts commit c2723d3829.
fix #62
2024-01-04 12:00:00 +01:00
ppom
c2723d3829 quick fix IP regexes. see #62 2024-01-04 12:00:00 +01:00
ppom
b834e02755 Fix jsonnet examples 2023-12-21 12:00:00 +01:00
ppom
380599c80a 📦 — Fix "Add a make target for Debian packaging" 2023-12-20 12:00:00 +01:00
ppom
7afe7e9b6f update IP regex
see https://framagit.org/ppom/reaction-wiki/-/issues/13
2023-12-20 12:00:00 +01:00
ppom
a132c3052a fix example
fix #49
2023-11-29 12:00:00 +01:00
ppom
4927460af7 Merge branch 'main' of framagit.org:ppom/reaction 2023-11-27 12:00:00 +01:00
ppom
7503e57063 fix example 2023-11-27 12:00:00 +01:00
Zatalyz
69119d1193 Update server.jsonnet : typo with an extra space, creating a launch error 2023-11-26 10:02:41 +00:00
ppom
418af00152 comment suggestion for people that don't read the full file 2023-11-24 12:00:00 +01:00
ppom
1bb24b443c Exit 0 when all is fine
Fix #45
2023-11-23 12:00:00 +01:00
ppom
05d50c74c4 fix not installable systemd file 2023-11-11 12:00:00 +01:00
ppom
52dc67ed34 more ssh regexes 2023-11-05 12:00:00 +01:00
ppom
6ee78f45f2 fix confs iptables 2023-11-05 12:00:00 +01:00
ppom
2c73a8af03 update confs 2023-10-28 12:00:00 +02:00
ppom
8c50f8412a new doc, new examples, support -help 2023-10-22 12:00:00 +02:00
ppom
b7eeb51e82 several fixes
- wait for start/stop commands to finish running
- better logs
2023-10-22 12:00:00 +02:00
ppom
4053a83629 reaction show: implement --limit: stream/filter filtering
fix #28
2023-10-21 12:00:00 +02:00
ppom
b56ccffd3b Fix persistence bug 2023-10-20 12:00:00 +02:00
ppom
345dd94b17 Implement start/stop commands
fix #41
update README and configuration files accordingly
2023-10-18 12:00:00 +02:00
ppom
22ac3764e4 remove last "retry-period" occurences 2023-10-18 12:00:00 +02:00
ppom
9d44c05a17 Configs refactor. New WIP config for activity watch like reaction server 2023-10-12 12:00:00 +02:00
ppom
92e07f5fe6 ip46tables
wrote `ip46tables` C minimal program to handle both ipv4 and ipv6 at the same time.
fix #22
2023-10-05 12:00:00 +02:00
ppom
e56b851d15 support json, jsonnet, yaml formats
- jsonnet, json and yaml support for configuration
- json and yaml support for output formats

fix #40
fix #27
2023-10-05 12:00:00 +02:00
ppom
b6d7e5a946 server-client "show" reimplemented
Bug → expired matches are still present
2023-09-24 16:43:18 +02:00