From 8b4c8922c53ac95174ebdeb3e20a23f918e9cc5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Sun, 23 Jul 2023 22:30:49 +0200 Subject: [PATCH] Added sample rule to allow localhost connections --- daemon/data/rules/000-allow-localhost.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 daemon/data/rules/000-allow-localhost.json diff --git a/daemon/data/rules/000-allow-localhost.json b/daemon/data/rules/000-allow-localhost.json new file mode 100644 index 00000000..a8320b27 --- /dev/null +++ b/daemon/data/rules/000-allow-localhost.json @@ -0,0 +1,17 @@ +{ + "created": "2023-07-05T10:46:47.904024069+01:00", + "updated": "2023-07-05T10:46:47.921828104+01:00", + "name": "000-allow-localhost", + "description": "Allow connections to localhost. See this link for more information:\nhttps://github.com/evilsocket/opensnitch/wiki/Rules#localhost-connections", + "enabled": true, + "precedence": true, + "action": "allow", + "duration": "always", + "operator": { + "type": "regexp", + "operand": "dest.ip", + "sensitive": false, + "data": "^(127\\.0\\.0\\.1|::1)$", + "list": [] + } +}