mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
tlspr (SNI proxy) implemented
Options -cN - level of TLS check default - allow non-TLS traffic 1 - require TLS, only check client HELLO packet 2 - require TLS, check both client and server HELLO 3 - require TLS, check server send certificate (not compatible with TLS 1.3) 4 - require mutual TLS, check server send certificate request and client sends certificate (not compatible with TLS 1.3) -P - default port examples: 1. tlspr -p1443 -P443 -c1 (port 1443 may be used to redirect traffic to destination port 143). SNI is used to find destination host 2. allow * * * 80 parent 1000 http 0.0.0.0 0 allow * * * * CONNECT parent 1000 tls 0.0.0.0 0 deny * * some.not.allowed.host allow * socks attempts to take destination hostname from SNI in SOCKS
This commit is contained in:
1 parent
29ef226b3c
commit
013d4bc333
10 files changed
+343
-16
No files matched your search
+7
-4
@@ -168,10 +168,10 @@ typedef enum {
|
||||
|
||||
|
||||
typedef enum {
|
||||
S_NOSERVICE,
|
||||
S_NOSERVICE = 0,
|
||||
S_PROXY,
|
||||
S_TCPPM,
|
||||
S_POP3P,
|
||||
S_POP3P = 3,
|
||||
S_SOCKS4 = 4, /* =4 */
|
||||
S_SOCKS5 = 5, /* =5 */
|
||||
S_UDPPM,
|
||||
@@ -184,7 +184,8 @@ typedef enum {
|
||||
S_REVLI,
|
||||
S_REVCO,
|
||||
S_ZOMBIE,
|
||||
S_AUTO
|
||||
S_AUTO,
|
||||
S_TLSPR
|
||||
}PROXYSERVICE;
|
||||
|
||||
struct clientparam;
|
||||
@@ -279,7 +280,8 @@ typedef enum {
|
||||
R_SOCKS4B,
|
||||
R_SOCKS5B,
|
||||
R_ADMIN,
|
||||
R_EXTIP
|
||||
R_EXTIP,
|
||||
R_TLS
|
||||
} REDIRTYPE;
|
||||
|
||||
struct chain {
|
||||
@@ -487,6 +489,7 @@ struct srvparam {
|
||||
int anonymous;
|
||||
int clisockopts, srvsockopts, lissockopts, cbcsockopts, cbssockopts;
|
||||
int gracetraf, gracenum, gracedelay;
|
||||
int requirecert;
|
||||
#ifdef WITHSPLICE
|
||||
int usesplice;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user