516 Commits

Author SHA1 Message Date
Yves Rutschle
f7f712341f check accept actually succeeded v1.23.1 2024-01-11 20:54:27 +01:00
Yves Rutschle
591cfc9a8a Reintroduce --ssl as alias to --tls in maintenance branch for 1.x (fix #416) v1.23.0 2024-01-02 21:47:00 +01:00
yrutschle
3013658b20 test to drop connection before writing anything (fix #285) v1.22c 2021-08-28 16:33:20 +02:00
yrutschle
a704c7f7f5 fix #302 2021-08-28 16:03:58 +02:00
yrutschle
1a3341c2a4 be more defensive when allocating and extending gap v1.22b 2021-08-24 20:07:28 +02:00
yrutschle
4a6bbda60d remove obsolete usage string and added lost version option 2021-08-24 14:10:14 +02:00
yrutschle
fa848f2ae9 do not timeout TCP connections (fix #300) 2021-08-24 13:38:18 +02:00
Yves Rutschle
6aa19d080a updated version numbers for release v1.22 2021-08-17 21:55:18 +02:00
yrutschle
a43385b8db remove hardcoded quick50 and teamspeak. to be replaced with a generalised regex setup to come in next version 2021-08-13 18:03:59 +02:00
yrutschle
1261a5f4c7 updated some references to obsolete ssl option 2021-08-06 22:43:38 +02:00
yrutschle
40da147efd keep track of next UDP timeout to only go through all connections when that happens 2021-08-06 22:29:00 +02:00
yrutschle
e4936454c5 refactor: take time only once when computing UPD timeouts 2021-08-05 17:05:08 +02:00
yrutschle
63f9c4a582 added syslog probe (fixes #34) 2021-08-04 15:29:05 +02:00
yrutschle
0e45107797 advertise new UDP protocols 2021-08-01 22:02:42 +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
e40d43bea5 removed obsolete ssl test pattern 2021-08-01 21:27:04 +02:00
yrutschle
2196146224 Merge branch 'master' of https://github.com/yrutschle/sslh 2021-08-01 21:25:39 +02:00
Yves Rutschle
2f822741b3
Merge pull request #297 from jeremiejig/master
update doc CAP_NET_RAW, remove CAP_SETUID/SETGID
2021-08-01 21:25:05 +02:00
Jeremiejig
760def3444 update doc CAP_NET_RAW, remove CAP_SETUID/SETGID
Update documentation CAP_NET_ADMIN -> CAP_NET_RAW.

Remove useless capabilities CAP_SETUID CAP_SETGID in service unit files.
There are only useful if not using either User=sslh nor DynamicUser=true
2021-08-01 21:08:52 +04:00
yrutschle
4b885b4a2c remove obsolete variables 2021-07-31 23:34:43 +02:00
yrutschle
ce23f202b7 use pcre2 api directly 2021-07-31 23:12:55 +02:00
Yves Rutschle
82b8ba547e
Merge pull request #205 from inztar/master
add Dockerfile
2021-07-31 16:28:42 +02:00
Yves Rutschle
8e38d56167
Merge pull request #294 from wltu/fix-unused-result
Fixed unused result issue with write()
2021-07-31 16:20:06 +02:00
Yves Rutschle
ea3b6794e1
Merge pull request #296 from lnslbrty/improved/example-config-udp
Added some example regex for UDP forward.
2021-07-31 16:16:15 +02:00
Toni Uhlig
e42f165ef5
Added some example regex for UDP forward.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2021-07-30 23:00:24 +02:00
yrutschle
37d2756703 move to PCRE for conf file 2021-07-23 22:36:20 +02:00
Willy Tu
ec25ab56e8 Fixed unused result issue with write()
Simply print an error message if the write result is < 0.
2021-07-23 13:21:14 -07:00
yrutschle
7fb65ad0ac refactor: remove sideeffects from udp_timedout 2021-07-18 21:50:40 +02:00
yrutschle
c43882c85f refactor: move timeout management to separate function 2021-07-18 21:36:46 +02:00
yrutschle
4a4c571116 document UDP support 2021-07-16 22:38:53 +02:00
yrutschle
c049885758 document UDP support 2021-07-16 22:37:41 +02:00
yrutschle
de0ec959d9 make udp timeout configurable per protocol 2021-07-08 14:13:04 +02:00
yrutschle
e7df8eeaa1 removed static known_source arrays, UDP connections are now managed dynamically 2021-07-07 19:58:08 +02:00
yrutschle
8af87ebbad report errors as E instead of M, and consolidate restarts as simplified roman numerals 2021-07-07 19:56:17 +02:00
yrutschle
bf57d63c3a fix message for fd closure on timeout 2021-07-02 08:22:09 +02:00
yrutschle
862e33cfec moved UDP support from sslh-fork to sslh-select 2021-07-01 22:44:35 +02:00
yrutschle
24e7f46a43 fix for libconfig 1.7.3 (#292) 2021-06-23 11:48:59 +02:00
yrutschle
bf2053eb79 fail gracefully if libconfig fails to find root element 2021-06-22 21:34:08 +02:00
yrutschle
1ad450a444 sslh-select sets O_NONBLOCK *before* calling connect, which prevents hanging on an unresposive server (fix #258) 2021-05-28 13:38:45 +02:00
yrutschle
300e1916c3 add recv and sendto addresses 2021-05-16 15:08:33 +02:00
yrutschle
e678428334 clarify function name 2021-05-15 17:57:33 +02:00
yrutschle
edc42ca13b clarify variable name 2021-05-15 17:39:34 +02:00
yrutschle
c41ec489e0 changed CAP_NET_ADMIN to CAP_NET_RAW as it's enough 2021-05-11 06:44:27 +02:00
yrutschle
79f49f4481 refactor t_load to use test.cfg as base 2021-05-09 16:40:38 +02:00
yrutschle
8e130882fc sslh-fork drops all capabilities after connecting to server side 2021-05-09 15:46:25 +02:00
yrutschle
030ef64b99 refactor: purified set_capabilities, told to keep or drop CAP_NET_ADMIN instead of deciding for itself 2021-05-09 15:39:14 +02:00
yrutschle
cf4f4cbebe typo 2021-05-08 22:33:45 +02:00
yrutschle
905ac95ca1 do not drop CAP_NET_ADMIN if any of the protocols require transparent proxying 2021-05-08 07:44:39 +02:00
yrutschle
da3b51e056 upgraded argtable3 to current last version to fix a parsing issue with command line options 2021-05-08 07:37:20 +02:00