Decrease log level for peer float message
PATCH 1/1 Decrease log level for peer float message
--- src/openvpn/mudp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/mudp.c +1 -1
@@ -79,7 +79,7 @@ multi_get_create_instance_udp (struct multi_context *m, bool *floated) {/* reset prefix, since here we are not sure peer is the one it claims to be */ ungenerate_prefix (mi); -msg (D_MULTI_ERRORS ,"Untrusted peer %" PRIu32" wants to float to %s" , peer_id, +msg (D_MULTI_MEDIUM ,"Untrusted peer %" PRIu32" wants to float to %s" , peer_id,mroute_addr_print (&real, &gc)); } }
Signature · 1 line
1.9.1
Quoted 19 lines · Lev Stipakov
Signed-off-by Lev Stipakov <[email protected]...>--- src/openvpn/mudp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)src/openvpn/mudp.c +0
-0@@ -79,7 +79,7 @@ multi_get_create_instance_udp (struct multi_context *m, bool *floated) {/* reset prefix, since here we are not sure peer is the one it claims to be */
src/openvpn/mudp.c +0
-1ungenerate_prefix (mi); - msg (D_MULTI_ERRORS, "Untrusted peer %" PRIu32 " wants tofloat to %s",
peer_id,src/openvpn/mudp.c +1
-0+ msg (D_MULTI_MEDIUM, "Untrusted peer %" PRIu32 " wants tofloat to %s",
peer_id,
src/openvpn/mudp.c multi_get_create_instance_udp (struct multi_context *m, bool *floated) · line 85
Quoted 3 lines
src/openvpn/mudp.c +0
-0mroute_addr_print (&real, &gc)); } }
ACK. No need to log this so often.
-Steffan
PATCH 1/1 Refine float logging
v2:
* Bump log level for attack attempt message
* More clear message for float event
v1:
* Decrease log level for peer float message
--- src/openvpn/mudp.c | 2 +- src/openvpn/multi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
src/openvpn/mudp.c +1 -1
@@ -79,7 +79,7 @@ multi_get_create_instance_udp (struct multi_context *m, bool *floated) {/* reset prefix, since here we are not sure peer is the one it claims to be */ ungenerate_prefix (mi); -msg (D_MULTI_ERRORS ,"Untrusted peer %" PRIu32" wants to float to %s" , peer_id, +msg (D_MULTI_MEDIUM ,"Float requested for peer %" PRIu32" to %s" , peer_id,mroute_addr_print (&real, &gc)); } }
src/openvpn/multi.c +1 -1
@@ -2286,7 +2286,7 @@ void multi_process_float (struct multi_context* m, struct multi_instance* mi)/* do not float if target address is taken by client with another cert */ if (!cert_hash_compare (m1->locked_cert_hash_set, m2->locked_cert_hash_set)) { -msg (D_MULTI_MEDIUM ,"Disallow float to an address taken by another client %s" , +msg (D_MULTI_LOW ,"Disallow float to an address taken by another client %s" ,multi_instance_string (ex_mi, false, &gc)); mi->context.c2.buf.len =0 ;
Signature · 1 line
1.9.1
Re: [Openvpn-devel] [PATCH] Refine float logging
Quoted 45 lines · Lev Stipakov
v2:
* Bump log level for attack attempt message
* More clear message for float eventv1:
* Decrease log level for peer float messageSigned-off-by Lev Stipakov <[email protected]...>--- src/openvpn/mudp.c | 2 +- src/openvpn/multi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)src/openvpn/mudp.c +0
-0@@ -79,7 +79,7 @@ multi_get_create_instance_udp (struct multi_context *m, bool *floated) {/* reset prefix, since here we are not sure peer is the one it claims to be */
src/openvpn/mudp.c +0
-1ungenerate_prefix (mi); - msg (D_MULTI_ERRORS, "Untrusted peer %" PRIu32 " wants tofloat to %s",
peer_id,src/openvpn/mudp.c +1
-0+ msg (D_MULTI_MEDIUM, "Float requested for peer %" PRIu32 " to%s",
peer_id,src/openvpn/mudp.c +0
-0mroute_addr_print (&real, &gc)); } }src/openvpn/multi.c +0
-0@@ -2286,7 +2286,7 @@ void multi_process_float (struct multi_context* m, struct multi_instance* mi)/* do not float if target address is taken by client with another cert */
if (!cert_hash_compare(m1->locked_cert_hash_set, m2-Quoted 1 line
locked_cert_hash_set))src/openvpn/multi.c +0
-1{ - msg (D_MULTI_MEDIUM, "Disallow float to an address taken byanother client %s",
src/openvpn/multi.c +1
-0+ msg (D_MULTI_LOW, "Disallow float to an address taken by anotherclient %s",
src/openvpn/multi.c void multi_process_float (struct multi_context* m, struct multi_instance* mi) · line 2292
Quoted 3 lines
src/openvpn/multi.c +0
-0multi_instance_string (ex_mi, false, &gc)); mi->context.c2.buf.len =0 ;
Even-more-ACK
-Steffan
Re: [Openvpn-devel] [PATCH applied] Refine float logging
In reply to Lev StipakovFrom: David Sommerseth <[email protected]...>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Your patch has been applied to the master branch.
commit 5203d8094f38a9d23d983377171c11b1d3a82ad2
Author: Lev Stipakov Date: Thu Oct 15 14:39:42 2015 +0300
Refine float logging
Signed-off-by: Lev Stipakov <[email protected]...>
Acked-by: Steffan Karger <[email protected]...>
Message-Id: [email protected]...
URL: http://article.gmane.org/gmane.network.openvpn.devel/10276
Signed-off-by: David Sommerseth <[email protected]...>- --
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlYfvhUACgkQDC186MBRfroFDwCfbG96a12WyLwwvtUXERXnNH5m 5WcAn30rIfWxNfBfkdlxXPmDRvD07+La
=zRPD
-----END PGP SIGNATURE-----