mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-25 01:06:20 +03:00
Compare commits
2
Commits
proxyprotocol
...
v1.23.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7f712341f | ||
|
|
591cfc9a8a |
No files matched your search
@@ -1,3 +1,17 @@
|
|||||||
|
|
||||||
|
v1.23.x:
|
||||||
|
Obsolete. Please use v2.0 or above. This is a branch
|
||||||
|
where no new features will be introduced, only
|
||||||
|
bugfixes to versions below 1.22.
|
||||||
|
|
||||||
|
v1.23.1:
|
||||||
|
Check accept() for failure in sslh-fork. Aborted
|
||||||
|
connections otherwise result in crashes.
|
||||||
|
|
||||||
|
v1.23.0:
|
||||||
|
Reintroduce --ssl as alias to --tls.
|
||||||
|
|
||||||
|
|
||||||
v1.22: 17AUG2021
|
v1.22: 17AUG2021
|
||||||
sslh-select now supports UDP protocols.
|
sslh-select now supports UDP protocols.
|
||||||
Probes specified in the `protocols`
|
Probes specified in the `protocols`
|
||||||
|
|||||||
+24
-1
@@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||||
* on Tue Aug 24 13:53:04 2021.
|
* on Tue Jan 2 21:42:30 2024.
|
||||||
|
|
||||||
# conf2struct: generate libconf parsers that read to structs
|
# conf2struct: generate libconf parsers that read to structs
|
||||||
# Copyright (C) 2018-2021 Yves Rutschle
|
# Copyright (C) 2018-2021 Yves Rutschle
|
||||||
@@ -459,6 +459,7 @@ struct arg_file* sslhcfg_conffile;
|
|||||||
struct arg_str* sslhcfg_listen;
|
struct arg_str* sslhcfg_listen;
|
||||||
struct arg_str* sslhcfg_ssh;
|
struct arg_str* sslhcfg_ssh;
|
||||||
struct arg_str* sslhcfg_tls;
|
struct arg_str* sslhcfg_tls;
|
||||||
|
struct arg_str* sslhcfg_ssl;
|
||||||
struct arg_str* sslhcfg_openvpn;
|
struct arg_str* sslhcfg_openvpn;
|
||||||
struct arg_str* sslhcfg_tinc;
|
struct arg_str* sslhcfg_tinc;
|
||||||
struct arg_str* sslhcfg_xmpp;
|
struct arg_str* sslhcfg_xmpp;
|
||||||
@@ -1094,6 +1095,15 @@ static struct compound_cl_target sslhcfg_openvpn_targets [] = {
|
|||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct compound_cl_target sslhcfg_ssl_targets [] = {
|
||||||
|
{ & table_sslhcfg_protocols[0], 0, .value.def_string = "tls" },
|
||||||
|
{ & table_sslhcfg_protocols[1], 1, .value.def_string = "0" },
|
||||||
|
{ & table_sslhcfg_protocols[2], 2, .value.def_string = "0" },
|
||||||
|
{ & table_sslhcfg_protocols[9], 0, .value.def_int = 1 },
|
||||||
|
{ & table_sslhcfg_protocols[7], 0, .value.def_bool = 1 },
|
||||||
|
{ 0 }
|
||||||
|
};
|
||||||
|
|
||||||
static struct compound_cl_target sslhcfg_tls_targets [] = {
|
static struct compound_cl_target sslhcfg_tls_targets [] = {
|
||||||
{ & table_sslhcfg_protocols[0], 0, .value.def_string = "tls" },
|
{ & table_sslhcfg_protocols[0], 0, .value.def_string = "tls" },
|
||||||
{ & table_sslhcfg_protocols[1], 1, .value.def_string = "0" },
|
{ & table_sslhcfg_protocols[1], 1, .value.def_string = "0" },
|
||||||
@@ -1156,6 +1166,18 @@ static struct compound_cl_arg compound_cl_args[] = {
|
|||||||
.override_const = "tls",
|
.override_const = "tls",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ /* arg: ssl */
|
||||||
|
.regex = "(.+):(\\w+)",
|
||||||
|
.arg_cl = & sslhcfg_ssl,
|
||||||
|
.base_entry = & table_sslhcfg [14],
|
||||||
|
.targets = sslhcfg_ssl_targets,
|
||||||
|
|
||||||
|
|
||||||
|
.override_desc = & table_sslhcfg_protocols [0],
|
||||||
|
.override_matchindex = 0,
|
||||||
|
.override_const = "tls",
|
||||||
|
},
|
||||||
|
|
||||||
{ /* arg: openvpn */
|
{ /* arg: openvpn */
|
||||||
.regex = "(.+):(\\w+)",
|
.regex = "(.+):(\\w+)",
|
||||||
.arg_cl = & sslhcfg_openvpn,
|
.arg_cl = & sslhcfg_openvpn,
|
||||||
@@ -1924,6 +1946,7 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg)
|
|||||||
sslhcfg_listen = arg_strn("p", "listen", "<host:port>", 0, 10, "Listen on host:port"),
|
sslhcfg_listen = arg_strn("p", "listen", "<host:port>", 0, 10, "Listen on host:port"),
|
||||||
sslhcfg_ssh = arg_strn(NULL, "ssh", "<host:port>", 0, 10, "Set up ssh target"),
|
sslhcfg_ssh = arg_strn(NULL, "ssh", "<host:port>", 0, 10, "Set up ssh target"),
|
||||||
sslhcfg_tls = arg_strn(NULL, "tls", "<host:port>", 0, 10, "Set up TLS/SSL target"),
|
sslhcfg_tls = arg_strn(NULL, "tls", "<host:port>", 0, 10, "Set up TLS/SSL target"),
|
||||||
|
sslhcfg_ssl = arg_strn(NULL, "ssl", "<host:port>", 0, 10, "Set up TLS/SSL target"),
|
||||||
sslhcfg_openvpn = arg_strn(NULL, "openvpn", "<host:port>", 0, 10, "Set up OpenVPN target"),
|
sslhcfg_openvpn = arg_strn(NULL, "openvpn", "<host:port>", 0, 10, "Set up OpenVPN target"),
|
||||||
sslhcfg_tinc = arg_strn(NULL, "tinc", "<host:port>", 0, 10, "Set up tinc target"),
|
sslhcfg_tinc = arg_strn(NULL, "tinc", "<host:port>", 0, 10, "Set up tinc target"),
|
||||||
sslhcfg_xmpp = arg_strn(NULL, "xmpp", "<host:port>", 0, 10, "Set up XMPP target"),
|
sslhcfg_xmpp = arg_strn(NULL, "xmpp", "<host:port>", 0, 10, "Set up XMPP target"),
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||||
* on Tue Aug 24 13:53:04 2021.
|
* on Tue Jan 2 21:42:30 2024.
|
||||||
|
|
||||||
# conf2struct: generate libconf parsers that read to structs
|
# conf2struct: generate libconf parsers that read to structs
|
||||||
# Copyright (C) 2018-2021 Yves Rutschle
|
# Copyright (C) 2018-2021 Yves Rutschle
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ void tcp_listener(struct listen_endpoint* endpoint, int num_endpoints, int activ
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
in_socket = accept(endpoint[active_endpoint].socketfd, 0, 0);
|
in_socket = accept(endpoint[active_endpoint].socketfd, 0, 0);
|
||||||
|
if (in_socket == -1) continue;
|
||||||
if (cfg.verbose) fprintf(stderr, "accepted fd %d\n", in_socket);
|
if (cfg.verbose) fprintf(stderr, "accepted fd %d\n", in_socket);
|
||||||
|
|
||||||
switch(fork()) {
|
switch(fork()) {
|
||||||
|
|||||||
@@ -155,6 +155,19 @@ cl_groups: (
|
|||||||
{ path: "tfo_ok"; value: 1 }
|
{ path: "tfo_ok"; value: 1 }
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
# Redundant with the --tls setting before, for backwards compatibility
|
||||||
|
{ name: "ssl"; pattern: "(.+):(\w+)"; description: "Set up TLS/SSL target";
|
||||||
|
list: "protocols";
|
||||||
|
override: "name";
|
||||||
|
argdesc: "<host:port>";
|
||||||
|
targets: (
|
||||||
|
{ path: "name"; value: "tls" },
|
||||||
|
{ path: "host"; value: "$1" },
|
||||||
|
{ path: "port"; value: "$2" },
|
||||||
|
{ path: "log_level"; value: 1 },
|
||||||
|
{ path: "tfo_ok"; value: 1 }
|
||||||
|
);
|
||||||
|
},
|
||||||
{ name: "openvpn"; pattern: "(.+):(\w+)"; description: "Set up OpenVPN target";
|
{ name: "openvpn"; pattern: "(.+):(\w+)"; description: "Set up OpenVPN target";
|
||||||
list: "protocols";
|
list: "protocols";
|
||||||
override: "name";
|
override: "name";
|
||||||
|
|||||||
Reference in new issue
Block a user