summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@eurephia.org>2015-01-08 15:10:49 +0100
committerDavid Sommerseth <dazo@eurephia.org>2015-01-08 15:16:44 +0100
commit56c654a93a451099a3121ff74efac34dd31f7cdf (patch)
tree2aeb62922e82c614c9f0e962ae857b95f5cfa805
parent3ddac122908f024e153abae83c232edf2d480f12 (diff)
downloadeurephia-56c654a93a451099a3121ff74efac34dd31f7cdf.tar.gz
eurephia-56c654a93a451099a3121ff74efac34dd31f7cdf.tar.xz
eurephia-56c654a93a451099a3121ff74efac34dd31f7cdf.zip
plugin: Improved logging of not found addresses in eurephia_learn_address
If routing subnets over the VPN tunnel, OpenVPN will learn addresses inside these subnets. As these IP addresses are not directly connected to a eurephia session, these errors can be silenced in normal operation. So this logging was moved to DEBUG(). Signed-off-by: David Sommerseth <dazo@eurephia.org> (cherry picked from commit 0628a765e4ecdf44a966b9a3fd6717aca9b9d09f)
-rw-r--r--plugin/eurephia.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c
index 25af617..d21b80c 100644
--- a/plugin/eurephia.c
+++ b/plugin/eurephia.c
@@ -742,9 +742,7 @@ int eurephia_learn_address(eurephiaCTX *ctx, const char *mode, const char *clien
}
}
if( session == NULL ) {
- eurephia_log(ctx, LOG_WARNING, 0,
- "Could not find any session connected to the client address %s",
- clientaddr);
+ DEBUG(ctx, 25, "[learn-address] Untracked IP address: %s", clientaddr);
ret = 0;
goto exit;
}