Commit Graph
100 Commits
Author SHA1 Message Date
yrutschle 3013658b20 test to drop connection before writing anything (fix #285) 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 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 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
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
yrutschle 37d2756703 move to PCRE for conf file 2021-07-23 22:36:20 +02: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
yrutschle 308b54aa8a remove caveat about UDP refactor 2021-05-08 07:06:14 +02:00
yrutschle 987643878f when verbose, precise which listen sockets are udp 2021-05-01 16:15:34 +02:00
yrutschle 46e741e9c2 add UDP support to echosrv 2021-04-25 09:06:31 +02:00
yrutschle c3d019284d made echosrv independant from common.o and with its own configuration 2021-04-24 10:31:41 +02:00
yrutschle 4c570e8d57 remove some debug messages 2021-04-21 08:48:31 +02:00
yrutschle 0a00220b42 justify use of select 2021-04-21 08:43:21 +02:00
yrutschle a0f9fc164e changelog the sslh-select refactoring 2021-04-21 08:42:27 +02:00
yrutschle 517e4ad5b4 Merge branch 'master' of https://github.com/yrutschle/sslh 2021-04-19 09:39:05 +02:00
yrutschle b258b0e0f7 manage probing sockets in a specific list instead of searching through all connections 2021-04-19 09:38:22 +02:00
yrutschle 02f6c6999d fix client/server protocol to indicate process death, and make process mortal again 2021-04-18 11:18:26 +02:00
yrutschle 41a914b350 alloc_cnx returns cnx pointer instead of simple error code 2021-04-17 21:29:38 +02:00
yrutschle a487ad4cbe fix ssh test and add random delays to exercise probing code 2021-04-17 21:28:55 +02:00
yrutschle 21ed247acb removed obsolete function 2021-04-17 21:00:52 +02:00
yrutschle dfa5d3cedb simplified some redundant parameters 2021-04-17 17:53:45 +02:00
yrutschle 74ce2acdc5 make t_load pretty print 2021-04-16 22:04:45 +02:00
yrutschle 0e3242c115 fix to work with test.cfg 2021-04-14 23:27:44 +02:00
yrutschle 5715a9f0bd stop managing connections as array; instead, allocate connections, and fd2cnx is the only pointer to it 2021-04-14 23:26:33 +02:00
yrutschle de474e1d07 stop managing connections as array; instead, allocate connections, and fd2cnx is the only pointer to it 2021-04-14 23:26:01 +02:00
yrutschle cb199ed3c6 remove redundant dependency 2021-04-11 09:38:36 +02:00
yrutschle 7485afe397 refactor accept to its own function 2021-04-10 08:26:22 +02:00
yrutschle 417722e3c1 remove obsolete definitions 2021-04-03 21:40:53 +02:00
yrutschle 9fca586735 remove over-verboseness 2021-04-03 21:39:43 +02:00
yrutschle 0613d412a2 refactor: write activity checked on select output rather than on each connection object 2021-04-03 21:34:47 +02:00
yrutschle b2ee07655a typo 2021-04-03 21:27:44 +02:00
yrutschle 465ecdda5b fix busy loop bug 2021-04-03 21:27:35 +02:00
yrutschle 3edf6a9d22 refactor: move write process to its own function 2021-04-02 22:20:04 +02:00
yrutschle 7a88a50c32 refactor: remove redundant paramters 2021-04-02 16:02:23 +02:00
yrutschle e7a5bbc4e1 removed some over-verboseness 2021-03-30 20:16:38 +02:00
yrutschle 40557c58ad working version with read activity checked on select output rather than on each connection object 2021-03-29 21:56:21 +02:00
yrutschle f0e1aaf82c refurbished valgrind launcher 2021-03-29 21:54:54 +02:00
yrutschle f51781664c add server-side file descriptor to collection 2021-03-28 12:22:36 +02:00
yrutschle 5948270b95 update API 2021-03-28 11:47:33 +02:00
yrutschle 758be2a8ab clarify API: allocate cnx in collection from a new fd, or add a fd to an existing connection in a collection 2021-03-28 11:40:40 +02:00
yrutschle 654ff0b5b0 rebuild when headers change 2021-03-28 11:39:49 +02:00
yrutschle 15a5073559 keep track of which connection contains what file descriptor 2021-03-23 22:58:10 +01:00
yrutschle c2b6bf246c refactor: make collection part of select object 2021-03-23 21:43:07 +01:00
yrutschle 6366d50b89 refactor: use fd_info instead of passing fd_sets directly 2021-03-23 13:59:15 +01:00
yrutschle 5b93e4ab55 abstracted collection management to its own file 2021-03-21 16:42:37 +01:00
yrutschle 1c63b06cc8 refactor: move collection handling towards a foreach construct 2021-03-21 14:01:12 +01:00
yrutschle 71c617050d fix collection extension 2021-03-17 21:16:08 +01:00
yrutschle 0409775a1a fix t_load so it works again! 2021-03-17 18:48:27 +01:00
yrutschle 790d639ad0 echosrv to prefix only once 2021-03-07 17:43:42 +01:00
yrutschle e884fc616d add conditional inclusion for header 2021-03-03 18:20:45 +01:00
yrutschle 7e63dedca3 refactor: abstract connection list management to a new 'collection' type 2021-03-03 14:38:24 +01:00
yrutschle 49d4080afd refactor pre-increment to more idiomatic post-increment (fix #282) 2021-03-03 14:29:25 +01:00
yrutschle be4e126f3a refactor: move all read process code to its own function 2021-02-28 18:19:18 +01:00
yrutschle 34bcc2bbc8 refactor: move probing actions to its own function 2021-02-28 10:46:17 +01:00
yrutschle 90975fd6c3 refactor: move all file descriptor info for select to its own struct 2021-02-28 10:12:13 +01:00
yrutschle f91f16d753 make local functions static 2021-02-27 15:33:41 +01:00
yrutschle dae8101a50 remove redundant macro definition 2021-02-27 15:20:15 +01:00
yrutschle 68fc10aed0 comment udp_listener prototype 2021-02-23 21:19:23 +01:00
yrutschle 49c136691c refactor: move UDP code to its own file 2021-02-23 21:17:39 +01:00
yrutschle adb27aa4a3 add a per-protocol transparent proxy option 2021-02-21 21:03:01 +01:00
yrutschle 9ff9723278 precised size types to ssize_t instead of int 2021-02-08 22:50:53 +01:00
yrutschle 52a9356c35 fix typo 2021-01-09 15:34:09 +01:00
yrutschle ac3b43d4bd document choice for UDP buffer management 2021-01-09 15:24:31 +01:00
yrutschle 368f286ce5 added FAQ for virtual hosting 2020-12-20 15:13:13 +01:00
yrutschle 05a835ff1f begin of release not for UDP 2020-12-06 15:50:08 +01:00
yrutschle 0a3d5874b4 free udp connections after some timeout 2020-12-05 22:59:38 +01:00