Robert Tupelo-Schneck
a83bffd942
Allow RFC6062 TCP relay data to look like TLS; fixes #605
2020-10-30 12:34:31 -04:00
Mészáros Mihály
388d939ed9
Change prometheus exporter port to 9641
2020-08-03 14:24:20 +02:00
Miquel Ortega
c65ce15fde
Fix peer and realm on delete
2020-08-03 10:32:29 +02:00
Mészáros Mihály
063def2c0a
Merge branch 'prometheus'
2020-07-07 20:23:08 +02:00
Mészáros Mihály
93a8c8aa78
Fix null pointer dereferenceThanks to Thomas Moeller for the report!
2020-07-03 11:07:40 +02:00
Mészáros Mihály
fefc55041c
tidy
2020-06-24 16:51:53 +02:00
Mészáros Mihály
170da11407
init with zero any new or reused stun buffers
2020-06-24 16:51:53 +02:00
wolmi
7bbe78a5f2
Merge branch 'master' into prometheus
2020-04-28 12:56:33 +02:00
Miquel Ortega
fb3bd0d353
Added checks to make prometheus optional
2020-04-02 17:28:21 +02:00
Miquel Ortega
aeb0474344
Added some comments
2020-04-02 10:45:32 +02:00
Miquel Ortega
d485088409
Added metrics for total traffic
2020-04-02 10:35:50 +02:00
Miquel Ortega
3e22d7e199
Refactor to use only one function to set metrics
2020-04-02 10:26:01 +02:00
Miquel Ortega
9ed631c495
Prometheus server init and first metrics
2020-04-02 00:51:42 +02:00
Bertold Van den Bergh
ace903fd07
Add support for loadbalanced TCP connections (haproxy protocol v2)
2020-02-13 01:56:43 +01:00
Zebadiah Long
8bf70a1199
added bandwidth usage reporting for bandwidth used by peers
2019-05-21 12:30:12 +02:00
Bradley T. Hughes
d2ee3ac291
Remove [su]{08,16,32,64}bits type defines
...
Do not overload the standard types with #defines, just use them
directly.
2019-03-08 09:08:30 +01:00
Bradley T. Hughes
7663167dff
Remove pointer debugging machinery
...
There are tools and debugging options that can be used instead. Do not
reinvent the wheel with our own pointer tracking/debugging code.
2019-03-07 08:39:20 +01:00
Bradley T. Hughes
7a43aae7c3
Remove ns_bzero(), ns_bcopy(), and ns_bcmp()
...
Do not overload bzero(), bcopy(), and bcmp() from strings.h
2019-03-07 08:39:20 +01:00
Bradley T. Hughes
e781060a52
Remove SSL_NEW() and SSL_FREE()
...
Do not overload functions from OpenSSL.
2019-03-07 08:00:09 +01:00
Bradley T. Hughes
043b102e38
Remove turn_strdup()
...
Do not overload strdup() from string.h
2019-03-07 08:00:08 +01:00
Bradley T. Hughes
b50fc77124
Remote turn_free()
...
Do not overload free() with a different API.
2019-03-07 07:58:12 +01:00
Bradley T. Hughes
31033c3ffa
Remote turn_realloc()
...
Do not overload realloc() with a different API.
2019-03-07 07:57:35 +01:00
Bradley T. Hughes
fef016901e
Remove turn_malloc()
...
Do not overload malloc() from stdlib.h
2019-03-06 23:38:20 +01:00
Mészáros Mihály
7f201e86a6
Workaround for SPARC64 recv_ttl=0
...
Quick & Dirty fix to use default TTL
TODO: to find a better fix..
2019-03-02 19:41:47 +01:00
Mészáros Mihály
c8313ac68d
fix: double free ssl crash
...
AFAIU Openssl 1.1 SSL_set0_rbio() calls BIO_free_ all automatically..
"On calling this function, any existing rbio that was previously set will also be freed via a call to BIO_free_all"
2018-09-10 15:41:14 +02:00
Arne Georg Gisnås Gleditsch
6bc4bab95b
Make SIGUSR2 reload TLS certificates
...
This commit does the following:
* Factor out loading of TLS keys and certificates into turn_params SSL
context so that it can be repeated. (Contexts are not overwritten
when loading encounters errors, but initial contexts will be set
regardless of errors. This keeps existing semantics.)
* Isolate copying of turn_params SSL context to ioa_engine structs
into callback functions appropriate for libevent invocation.
* Chain both of the above to a signal event handler responding to
SIGUSR2.
This allows replacement of keys and certificates during run-time
without interrupting relaying operations.
2018-04-19 14:51:07 +02:00
Bradley T. Hughes
e55e13d23e
Update total usage on client shutdown
...
Call turn_report_session_usage() from shutdown_client_connection(), so
that any accumulated packets and data sent/received gets added to the
totals before passing it to report_turn_session_info(). This also
ensures that the total_traffic message sent to redis contains correct
values.
Add a force_invalid argument to turn_report_session_usage() to ensure
that report_turn_session_info() is still called when the former is
called from shutdown_client_connection(). This should avoid any
unexpected change in behavior.
2018-02-09 20:54:10 +01:00
Bradley T. Hughes
86967b93f3
Report total traffic used per allocation via Redis
...
Publish total traffic information when an allocation is deleted. This
makes it easier for applications to monitor total usage per session.
2017-11-20 13:58:50 +01:00
Oleg Moskalenko
069f813cd5
TLS1.2 fixed
2016-12-07 23:40:36 -08:00
Oleg Moskalenko
a2c17748af
cleaning
2016-08-27 20:18:42 -07:00
Oleg Moskalenko
79aed7d8b7
libreSSL compatibility
2016-08-27 16:49:26 -07:00
Oleg Moskalenko
eec7e0cac9
basic OpenSSL 1.1.0 support
2016-08-20 18:49:30 -07:00
James Huang
e5375ee590
case call to check_tentative_tls with TLS_SUPPORTED
2016-07-22 15:25:57 -07:00
Oleg Moskalenko
9232f0c9c5
more SSLv3 fixes
2015-11-15 15:05:29 -08:00
Oleg Moskalenko
6bd1a8a449
inter-realm boundaries relaxed
2015-09-15 22:50:52 -07:00
Oleg Moskalenko
dd1a632d8d
working on multi-tenant server
2015-09-14 22:48:39 -07:00
mom040267
948a61d250
SCTP fixes.
2015-04-03 06:54:10 +00:00
mom040267
8662de6d73
sctp fixes
2015-04-02 05:32:46 +00:00
mom040267
b3ed8d8165
sctp compilation
2015-03-17 06:57:10 +00:00
mom040267
eee9dae321
sctp compilation
2015-03-17 06:44:37 +00:00
mom040267
6c247bbbae
'no sctp' implemented
2015-03-17 06:27:02 +00:00
mom040267
79d68a27cb
working on sctp
2015-03-16 07:12:32 +00:00
mom040267
2958c8ec73
working on sctp
2015-03-16 07:10:07 +00:00
mom040267
b824384faa
working on SCTP
2015-03-16 06:10:10 +00:00
mom040267
0496635edd
fixing SCTP on Linux
2015-03-15 21:08:31 +00:00
mom040267
69653ea259
native SCTP support
2015-03-15 19:48:30 +00:00
mom040267
3888a928bf
working on SCTP support
2015-03-15 06:33:06 +00:00
mom040267
1b279a2a5f
optional SCTP support added
2015-03-15 06:10:49 +00:00
mom040267
61239f9aa8
bandwidth limit is 64 bits now
2015-03-02 01:44:29 +00:00
mom040267
6a508683c4
bandwidth control fixes
2015-03-01 05:02:42 +00:00