Commit Graph

579 Commits

Author SHA1 Message Date
Mészáros Mihály
e5d4e62dec Fix typo "finsihed" reported by Felipe Cecagno 2021-01-14 15:14:53 +01:00
brevilo
a52df6cafb
Define OPENSSL_VERSION_1_1_1 on systems where it doesn't (yet) exist
Otherwise preprocessor logic will fail and cause incompatible pointer type issues (by using wrong callback API)
2021-01-13 01:54:25 +01:00
Mészáros Mihály
104ab83f09 Automatically notify systemd if compiled 2021-01-10 20:57:43 +01:00
Mészáros Mihály
e367fabb0e Fix typo 2021-01-10 17:20:40 +01:00
Mészáros Mihály
c1437902e2 Remove earlier deleted function definitions 2021-01-10 10:43:36 +01:00
Mészáros Mihály
f1d946c1b4 Refactoring Prometheus
* Fix c++ support
* Simplify: Remove session id/allocation
2021-01-10 00:32:49 +00:00
Mészáros Mihály
a28fee8cde Fix typo in acme 2021-01-08 09:19:33 +00:00
Mészáros Mihály
ef7916842d Add systemd notification support 2021-01-07 17:51:34 +00:00
Mészáros Mihály
5b13fdd37b Fix: Read log options in first pass. Fixes #602 2021-01-07 10:33:14 +00:00
Mészáros Mihály
50ebef7a3f Fix g++ 2 errors and many warnings
Resolves #661 #654
2021-01-05 21:47:50 +00:00
Mészáros Mihály
288c486676
Merge pull request #672 from jelmd/acme_fix
fix acme wrt. security, redundancy, consistency
2021-01-05 11:42:03 +01:00
Mészáros Mihály
6ce463e8e2 Removed wiki, due it was outdated and redundant. 2021-01-05 09:57:16 +00:00
Mészáros Mihály
27b261eb58 Disable binding logging to avoid DoS attack
* Add new option log-binding
2021-01-05 09:55:55 +00:00
Jens Elkner
8c99505614 fix acme wrt. security, redundancy, consistency 2020-12-31 16:39:00 +01:00
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
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
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
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
fefc55041c tidy 2020-06-24 16:51:53 +02:00