Yves Rutschle
ef6f698d86
document proxyprotocol
2025-04-03 21:30:34 +02:00
Yves Rutschle
416a82fcc6
code cleanup
2025-03-29 17:34:25 +01:00
Yves Rutschle
24c3bb07a0
add support for proxyprotocol v1 on backend server side
2025-03-09 18:49:17 +01:00
Yves Rutschle
bf082292c2
new is_unix field to create listen unix sockets
2024-12-22 23:54:14 +01:00
Yves Rutschle
cac7f48fa7
new is_unix field to connect to unix socket target servers
2024-12-22 16:17:47 +01:00
Yves Rutschle
c2551c011e
update to Conf::Libconfig 1.0.3 API
2023-09-12 21:35:23 +02:00
Yves Rutschle
1b0c6d0b8d
add resolve_on_forward in tests
2023-09-06 18:01:52 +02:00
yrutschle
750e828d49
reinstate checking of FD_SETSIZE for sslh-select
2022-05-22 22:32:22 +02:00
yrutschle
f6fe735171
sort target protocols as TCP or UDP, so only appropriate probes are called by the listeners
2022-05-05 17:45:40 +02:00
yrutschle
1e0578c082
don't log to syslog when testing
2022-03-18 18:02:32 +01:00
Björn Ketelaars
d57a155bf4
Fix (some) failing tests
...
Found a couple of failing tests on Alpine Linux and OpenBSD. For the
tests to even run `ip4-localhost` has to be changed to an IP-address
(127.0.0.1). `ip4-localhost` is typically not part of `/etc/hosts`.
Output failing tests:
```
not ok 5
udp: 0
prefix: tls:
listen [1]:
host: localhost
port: 9025
flushing deferred data to fd 9
selecting... max_fd=11 num_probing=0
activity on fd8
closing fd 8
closing fd 9
selecting... max_fd=11 num_probing=0
# Failed test at ./t line 59.
# got: '1'
# expected: 'sslh-select: Connect and write nothing'
```
```
not ok 22 - sslh-select:ssh: probe connected correctly
# Failed test 'sslh-select:ssh: probe connected correctly'
# at ./t line 59.
# got: 'regex'
# expected: 'ssh'
```
```
not ok 68 - sslh-select:ssh: probe connected correctly
# Failed test 'sslh-select:ssh: probe connected correctly'
# at ./t line 59.
# got: 'regex'
# expected: 'ssh'
```
Diff works around issues causing tests 22 and 68 to fail. As of yet, no
workaround for test 5 has been found.
2021-10-27 19:52:06 +02:00
yrutschle
caa62875c1
remove --verbose option
2021-09-27 13:28:21 +02:00
yrutschle
e6cbbe9511
migrate common.c to new logging system
2021-09-26 15:53:21 +02:00
yrutschle
e5f16b93ce
hexdump writes to parametrable msg_info
2021-09-19 21:54:47 +02:00
yrutschle
f7b6f669a4
sslh-select to use new log system
2021-09-19 20:24:46 +02:00
yrutschle
5e27806545
new logging system: now with message classes
2021-09-19 15:13:04 +02:00
yrutschle
63f9c4a582
added syslog probe ( fixes #34 )
2021-08-04 15:29:05 +02:00
yrutschle
4584e719e1
added hardcoded probe for Teamspeak3
2021-08-01 22:01:59 +02:00
yrutschle
75e426c80f
added hardcoded probe for QUICK50
2021-08-01 21:35:24 +02:00
yrutschle
de0ec959d9
make udp timeout configurable per protocol
2021-07-08 14:13:04 +02:00
yrutschle
862e33cfec
moved UDP support from sslh-fork to sslh-select
2021-07-01 22:44:35 +02:00
yrutschle
adb27aa4a3
add a per-protocol transparent proxy option
2021-02-21 21:03:01 +01:00
yrutschle
c12f7a1ade
abstract listening sockets so we have protocol information alongside the socket
2020-11-07 22:31:49 +01:00
yrutschle
ebeabb6c18
add is_udp option and listen to UDP ports
2020-11-07 21:29:09 +01:00
yrutschle
9f99f296b1
warn about unknown settings in the configuration file
2020-08-29 18:22:42 +02:00
yrutschle
a7b4462c6e
Added 'minlength' option
2019-02-03 14:45:14 +01:00
yrutschle
33ab9d535d
code cleanup and adaptation of regex probe
2018-12-04 23:11:04 +01:00
yrutschle
e7ce929020
config file now read to struct with c2s; command line no longer works
2018-11-29 11:56:33 +01:00
yrutschle
8ec9799ca0
fix ssl tests
2018-11-04 22:59:01 +01:00
yrutschle
0003680137
remove old tls and ssl targets, only use alpn/sni probe also for TLS with no extensions
2018-09-23 12:07:06 +02:00
yrutschle
ffe9971624
test suite for SNI/ALPN with multiple targets and all combinations covered
2018-08-30 19:50:53 +02:00
Yves Rutschle
1693436cc3
automatic test for SNI/ALPN (single target)
2018-08-29 19:18:23 +02:00
Yves Rutschle
677e385fec
new probing algorithm
2018-08-13 22:29:09 +02:00
Yves Rutschle
94911c1c2a
cleaner framework to test all probes methodically (not all tests work as the probe code needs to be reworked)
2018-08-11 23:13:24 +02:00
Yves Rutschle
ad2b595280
Test suite: some cleanup and use config file instead of command-line parameters
2018-08-04 22:33:02 +02:00