Commit Graph

703 Commits

Author SHA1 Message Date
Mészáros Mihály
8dc5bbcb3b Tidy: too long line length 2020-12-22 17:05:42 +00:00
Mészáros Mihály
6101ebd51b external-ip private part to white list fixes#584 2020-12-22 16:58:00 +00:00
Mészáros Mihály
ae541958cd Tidy: remoe trailing space 2020-12-18 08:22:02 +00:00
Mészáros Mihály
2f790ec18b Tidy acme code 2020-12-18 08:06:25 +00:00
Mészáros Mihály
377e8f7687 Ugly Hack: Parse HTTP request 2020-12-18 08:05:56 +00:00
Mészáros Mihály
174d039c73 fix acme-redirect help 2020-12-15 13:56:21 +00:00
Mészáros Mihály
fa01cfeed6 Move acme to new file 2020-12-15 13:25:56 +00:00
Jens Elkner
12c7d19a47 support of --acme-redirect <URL> 2020-12-15 13:24:10 +00:00
Mészáros Mihály
d4686750ee Move acme to new file 2020-12-15 13:04:11 +00:00
Jens Elkner
9b0dd4380c acme-redirect: add option to man page, fix help text 2020-12-15 13:01:51 +00:00
Jens Elkner
7e525c8e1c support of --acme-redirect <URL> 2020-12-15 13:01:51 +00:00
Camden Narzt
0880d7cd0f
fix compilation on macOS Big Sur
You must define `__APPLE_USE_RFC_3542` in order to use the `IPV6_DONTFRAG` sockopt: https://opensource.apple.com/source/xnu/xnu-6153.141.1/bsd/netinet6/in6.h.auto.html
```
 * To use the new IPv6 Sockets options introduced by RFC 3542
 * the constant __APPLE_USE_RFC_3542 must be defined before
 * including <netinet/in.h>
```
2020-12-09 16:15:40 -07:00
Mészáros Mihály
b0fb4a9a0a Rename new timestamp options, and fix these cli handling 2020-12-08 11:51:25 +01:00
Mészáros Mihály
9a0d9d8c5d Replace new-timestamp_format=>new-timestamp-format 2020-12-08 11:07:53 +01:00
Mészáros Mihály
00659f3948
Merge pull request #599 from cedk/libressl
Do not use FIPS and remove hardcode OPENSSL_VERSION_NUMBER with LibreSSL
2020-12-08 08:48:15 +01:00
Mészáros Mihály
c0822dab95
Merge pull request #618 from PaulWay/paulway_log_real_time
Print full date and time in logs
2020-12-08 08:45:48 +01:00
Mészáros Mihály
330744de24
Merge pull request #655 from Startup-Stack/proxy-protocol
Add support for proxy protocol V1
2020-12-08 08:37:54 +01:00
Mészáros Mihály
75309e5c2d
Merge pull request #643 from tupelo-schneck/master
Allow RFC6062 TCP relay data to look like TLS; fixes #605
2020-12-08 08:16:31 +01:00
Mészáros Mihály
3b3c5849cc bump version 2020-12-07 15:26:00 +01:00
Peter Linss
c00d69e67f
Add support for proxy protocol V1 2020-11-18 17:20:24 -08:00
Robert Tupelo-Schneck
a83bffd942 Allow RFC6062 TCP relay data to look like TLS; fixes #605 2020-10-30 12:34:31 -04:00
Paul Wayper
c315c288bd Add options for new log timestamp and setting timestamp format
This adds the `--new-log-timestamp` and `--new-timestamp-format <value>` options
to the `turnserver` program.

Setting `--new-log-timestamp` on the command line, or `new-log-timestamp` in the
configuration file, will cause all logs to be written with an ISI-8601 timestamp
(`YYYY-MM-DDTHH:MM:SSZZZZZ` with `T` being literal and `ZZZZZ` being `+` or `-`
and the hour and minute offset from GMT for the local timezone).  This replaces
the 'number of seconds since daemon was started' format.

Setting the `--new-timestamp-format <format>` option with a given format, or
`new-log-timestamp=<format>` in the configuration file, will use this instead
of the standard timestamp format.  Timestamp format strings up to 48 characters
can be accommodated; more will be truncated.  This will only be used when the
`--new-log-timestamp` option (above) is set.

Thanks to Hendrik Huels <hendrik.huels@outlook.de> for the idea and some of the
code for setting the log timestamp string.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 21:07:44 +10:00
Paul Wayper
ed88f1605a Neater ISO-8601 timestamp format string
Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 20:57:54 +10:00
Paul Wayper
f59e9f8ad4 Allow the log timestamp format to be set
This allows the timestamp format in log output to be set by a function.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 18:43:56 +10:00
Paul Wayper
5e87c44469 Merge turn_log_func_default and vrtpprintf
The function `turn_log_func_default` calls the function `vrtpprintf` to print to syslog
or the log file.  The latter does exactly the same string formatting as the former, so
here we merge the two functions into one to do the string formatting once.  This also
makes sure that the log line is consistent on all outputs.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 18:35:01 +10:00
Paul Wayper
16eeb53e07 Allow new log format to be turned on if required
This provides the 'use_new_timestamp_log_format' variable in `ns_turn_utils.h`.  By
default it is set to 0 and the old 'seconds since daemon was started' timestamp will
be emitted.  However, if it is set to 1 or any 'true' number the new date and time
timestamp format will be used instead.

This has also resulted in a small clean-up of some of the string length handling.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-08-31 22:34:54 +10:00
Mészáros Mihály
c5b0bd0e22 Update prometheus gcc 10 compatible 2020-08-27 20:27:09 +02:00
Paul Wayper
762ee23482 Fixing a few errors - C still coming back to me
Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-08-26 21:05:08 +10:00
Paul Wayper
599a61eea6 Print full date and time in logs
Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-08-25 21:46:15 +10:00
Mészáros Mihály
87d85f06bd Add log for prometheus collector start 2020-08-03 15:16:09 +02: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
c9cd99e4f5 Disable prometheus by default 2020-08-03 10:25:56 +02:00
Cédric Krier
5b6739a793 Do not use FIPS and remove hardcode OPENSSL_VERSION_NUMBER with LibreSSL
Fix #552
2020-07-19 10:48:44 +02:00
Mészáros Mihály
2f9ac538f5 Add ifdef around default value 2020-07-08 10:00:53 +02:00
Mészáros Mihály
2acb952670 tidy after PR #517 2020-07-08 09:47:24 +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
wolmi
a5d1fbba57
Merge branch 'master' into prometheus 2020-06-29 09:33:20 +02:00
Mészáros Mihály
6d605d353f Bump version 2020-06-24 17:05:18 +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
islamoglus
a43d3b63b4 ignore md5 for boringssl 2020-06-11 07:40:00 +03:00
Miquel Ortega
798349fb5b Change gauge to counters metrics 2020-06-05 11:29:22 +02:00
Miquel Ortega
83cf9ea6c4 Merge branch 'prometheus' of github.com:wolmi/coturn into prometheus 2020-05-05 19:44:16 +02:00
Miquel Ortega
2789a27fb9 Added no-promethsu CLI option 2020-05-05 15:49:50 +02:00
Mészáros Mihály
2b2f116c2d Bump version 2020-04-30 20:41:17 +02:00
Mészáros Mihály
e228a5e745 Quick and dirty fix for tot_recv_messages wrong count in e.g. secure_tls_client_c2c_tcp_relay.sh 2020-04-30 12:15:54 +00:00
Greg Fodor
38e7daf3d6 Merge remote master 2020-04-28 17:18:30 +00:00
wolmi
7bbe78a5f2
Merge branch 'master' into prometheus 2020-04-28 12:56:33 +02:00