SSLproxy: SSLProxy fails on some sites on modern browsers

Hi @sonertari, I’m trying to utilize SSLProxy in a malware analysis environment and I’ve notice some strange and inconsistent behavior during testing, sslproxy when executed with root via this command sslproxy -f /etc/SSLProxy/sslproxy.conf yields the following results.

SSLProxy Terminal Log (Testmynids.org)

Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=30
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=29
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=31
--Snip--
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=30
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773200:1040:sslv3 alert handshake failure:20:SSL routines:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49700, 13.35.147.112:443, -, -, -, -
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL srvdst connection failed; falling back to passthrough
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000000c = 000c = SSLERR (error) [connect socket]
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=31
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected from [172.28.16.2]:49700
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=31
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=30
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=31
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=29
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=31
--Snip--
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773200:1040:sslv3 alert handshake failure:20:SSL routines:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49701, 13.35.147.112:443, -, -, -, -
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL srvdst connection failed; falling back to passthrough
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000000c = 000c = SSLERR (error) [connect socket]
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773200:1040:sslv3 alert handshake failure:20:SSL routines:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49702, 13.35.147.112:443, -, -, -, -
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL srvdst connection failed; falling back to passthrough
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000000c = 000c = SSLERR (error) [connect socket]
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected from [172.28.16.2]:49701
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected from [172.28.16.2]:49702
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773200:1040:sslv3 alert handshake failure:20:SSL routines:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49703, 13.35.147.112:443, -, -, -, -
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL srvdst connection failed; falling back to passthrough
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000000c = 000c = SSLERR (error) [connect socket]
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected from [172.28.16.2]:49703
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected to [13.35.147.112]:443, fd=30
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected from [172.28.16.2]:49702, fd=30
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773200:1040:sslv3 alert handshake failure:20:SSL routines:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49704, 13.35.147.112:443, -, -, -, -
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL srvdst connection failed; falling back to passthrough
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000000c = 000c = SSLERR (error) [connect socket]
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: Connecting to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected to [13.35.147.112]:443, fd=29
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected from [172.28.16.2]:49701, fd=29
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected to [13.35.147.112]:443
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH connected from [172.28.16.2]:49704
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected to [13.35.147.112]:443, fd=31
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected from [172.28.16.2]:49703, fd=31
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected to [13.35.147.112]:443, fd=32
Apr 25 00:26:27 X-17-Arkime-Tester sslproxy[1246]: PASSTHROUGH disconnected from [172.28.16.2]:49704, fd=32
Apr 25 00:26:33 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=29
Apr 25 00:26:33 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=29
--Snip--

This results in the https from the website https://testmynids.org/ failing to decrypt on a modern browser (Firefox v137.0.2) and is passthrough as per the written rules.

I’ve also notice a strange and different behavior when also visiting eicar.org whilst routed through the sslproxy (refer to the images below and logs below)

SSLProxy Terminal Log (eicar.org)

Apr 25 00:37:38 X-17-Arkime-Tester sslproxy[1246]: Connecting to [89.238.73.97]:443
Apr 25 00:37:38 X-17-Arkime-Tester sslproxy[1246]: SNI peek: [n/a] [incomplete], fd=34
Apr 25 00:37:38 X-17-Arkime-Tester sslproxy[1246]: Connecting to [89.238.73.97]:443
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: ===> Original server certificate:
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Subject DN: /CN=*.manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Common Names: *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Fingerprint: B4:FB:A0:59:63:35:BB:A1:15:DCD1:58:A9:5B:D0:BC:84:A6:53:5A
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Certificate cache: MISS
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: ===> Forged server certificate:
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Subject DN: /CN=*.manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Common Names: *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Fingerprint: 61:C4:D2:5E:5A:77:BE:53:C3:B854:C9:0A:01:8D:A5:99:22:A6:59
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Warning: SNI parser yielded no hostname, copying OpenSSL one: [NULL] != [eicar.org]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Certificate cache: KEEP (SNI match or target mode)
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773202:1042:sslv3 alert bad certificate:20:SSL routines:0:-
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49766, 89.238.73.97:443, -, -, eicar.org, *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 00000001 = 0001 = SSLOK (SSL negotiation finished successfully) [connect socket]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000002e = 002e = SSLERR (error) [accept socket]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: HTTPS disconnected to [89.238.73.97]:443, fd=32
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: HTTPS disconnected from [172.28.16.2]:49766, fd=32
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: ===> Original server certificate:
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Subject DN: /CN=*.manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Common Names: *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Fingerprint: B4:FB:A0:59:63:35:BB:A1:15:DCD1:58:A9:5B:D0:BC:84:A6:53:5A
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Certificate cache: HIT
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: ===> Forged server certificate:
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Subject DN: /CN=*.manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Common Names: *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Fingerprint: 61:C4:D2:5E:5A:77:BE:53:C3:B854:C9:0A:01:8D:A5:99:22:A6:59
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Warning: SNI parser yielded no hostname, copying OpenSSL one: [NULL] != [eicar.org]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Certificate cache: KEEP (SNI match or target mode)
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773202:1042:sslv3 alert bad certificate:20:SSL routines:0:-
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49768, 89.238.73.97:443, -, -, eicar.org, *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 00000001 = 0001 = SSLOK (SSL negotiation finished successfully) [connect socket]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000002e = 002e = SSLERR (error) [accept socket]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: HTTPS disconnected to [89.238.73.97]:443, fd=36
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: HTTPS disconnected from [172.28.16.2]:49768, fd=36
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: ===> Original server certificate:
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Subject DN: /CN=*.manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Common Names: *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Fingerprint: B4:FB:A0:59:63:35:BB:A1:15:DCD1:58:A9:5B:D0:BC:84:A6:53:5A
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Certificate cache: HIT
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: ===> Forged server certificate:
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Subject DN: /CN=*.manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Common Names: *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Fingerprint: 61:C4:D2:5E:5A:77:BE:53:C3:B854:C9:0A:01:8D:A5:99:22:A6:59
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Warning: SNI parser yielded no hostname, copying OpenSSL one: [NULL] != [eicar.org]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Certificate cache: KEEP (SNI match or target mode)
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Client-side BEV_EVENT_ERROR
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Error from bufferevent: 0:- 167773202:1042:sslv3 alert bad certificate:20:SSL routines:0:-
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Additional SSL error: 1:1:-:0:-:0:-
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: Closing on ssl error without filter match: 172.28.16.2:49767, 89.238.73.97:443, -, -, eicar.org, *.manitu.net/*.manitu.net/manitu.net
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 00000001 = 0001 = SSLOK (SSL negotiation finished successfully) [connect socket]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: SSL_free() in state 0000002e = 002e = SSLERR (error) [accept socket]
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: HTTPS disconnected to [89.238.73.97]:443, fd=34
Apr 25 00:37:39 X-17-Arkime-Tester sslproxy[1246]: HTTPS disconnected from [172.28.16.2]:49767, fd=34

What the Client Sees when visiting eicar.org Image

Image

Here is the contents of my sslproxy.conf located at /etc/SSLProxy/sslproxy.conf

# Sample configuration for sslproxy v0.9.4
#
# Use the -f command line option to start sslproxy with a config file.
# See sslproxy.conf(5) and sslproxy(1) for documentation.
#
# Note that the ordering of options, rules, and proxyspecs in configuration 
# files (and on the command line) is important. For example, rules and 
# proxyspecs can only make use of the options defined earlier.

# Use CA cert (and key) to sign forged certs.
# Equivalent to -c command line option.
#CACert CA/CA.crt
CACert /Certificates/SSL_Inspection.crt

# Use CA key (and cert) to sign forged certs.
# Equivalent to -k command line option.
#CAKey CA/CA.key
CAKey /Certificates/SSL_Inspection.key

# Daemon mode: run in background, log error messages to syslog.
# Equivalent to -d command line option.
Daemon no

# Debug mode: run in foreground, log debug messages on stderr.
# Equivalent to -D command line option.
# Enabled as this prevented it from crashing when running as a service
# in version v0.9.4
Debug yes

# Mirror packets to interface.
# Equivalent to -I command line option.
MirrorIf ssl0

# Mirror packets to target address (used with MirrorIf).
# Equivalent to -T command line option. Leave commented if the target is
# irrelevant (e.g. mirror to dummy device)
#MirrorTarget 127.0.0.1

# Connect log: log one line summary per connection to logfile.
# Equivalent to -l command line option.
#ConnectLog /var/run/ips/sslproxy/connect.log
#ConnectLog connect.log

# Content log: full data to file or named pipe
# (excludes ContentLogDir/ContentLogPathSpec).
# Equivalent to -L command line option.
#ContentLog content.log

# Write pid to file.
# Equivalent to -p command line option.
# (default: no pid file)
PidFile /var/run/sslproxy.pid

# Use the given OpenSSL ciphers spec.
# Equivalent to -s command line option.
# (default: ALL:-aNULL)
#Ciphers ALL:-aNULL

# Leaf key RSA keysize in bits, use 1024|2048|3072|4096.
# (default: 2048)
LeafKeyRSABits 4096

# Close connections after this many seconds of idle time
ConnIdleTimeout 120

# Check for expired connections every this many seconds
ExpiredConnCheckPeriod 10

# Set open files limit, use 50-10000
OpenFilesLimit 8192

# Set divert or split mode of operation
# Not equivalent to the command line -n option.
# Applied to the proxyspecs defined after it, and structured proxyspecs can override it.
# Note that if the arg is not yes|no, it is assumed to be a Divert filter rule.
# (default: yes)
Divert no

ProxySpec {
	# Https Inspection proxy
	Proto https
	Addr 0.0.0.0
	Port 8443

	# Passthrough SSL connections if they cannot be split because of client cert
	# auth or no matching cert and no CA.
	# Equivalent to -P command line option.
	# (default: drop)
	Passthrough yes

	#Ciphers MEDIUM:HIGH
	#CipherSuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256

	# Remove HTTP header line for Accept-Encoding
	RemoveHTTPAcceptEncoding no

	# Remove HTTP header line for Referer
	RemoveHTTPReferer yes

	# When disabled, never add the SNI to forged certificates, even if the SNI
	# provided by the client does not match the server certificate's CN/SAN.
	# Helps pass the wrong.host test at https://badssl.com.
	AllowWrongHost no
	
	# Require authentication for users to use SSLproxy
	UserAuth no

	# Validate proxy spec protocols
	ValidateProto yes

	# Max HTTP header size in bytes for protocol validation
	MaxHTTPHeaderSize 8192

	#Match * log mirror

	# Filter Rules
	# Send all decrypted packets to interface
	FilterRule {
		Action Match
		SrcIp *
		Log mirror
	}
}

ProxySpec {
	# Pop3s Inspection proxy
	Proto pop3s
	Addr 0.0.0.0
	Port 8995
	
	# Passthrough SSL connections if they cannot be split because of client cert
	# auth or no matching cert and no CA.
	# Equivalent to -P command line option.
	# (default: drop)
	Passthrough yes
	
	#Ciphers MEDIUM:HIGH
	#CipherSuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
	
	# Remove HTTP header line for Accept-Encoding
	RemoveHTTPAcceptEncoding no
	
	# Remove HTTP header line for Referer
	RemoveHTTPReferer yes
	
	# When disabled, never add the SNI to forged certificates, even if the SNI
	# provided by the client does not match the server certificate's CN/SAN.
	# Helps pass the wrong.host test at https://badssl.com.
	AllowWrongHost no
	
	# Require authentication for users to use SSLproxy
	UserAuth no
	
	# Validate proxy spec protocols
	ValidateProto yes
	
	# Max HTTP header size in bytes for protocol validation
	MaxHTTPHeaderSize 8192
	
	# Filter Rules
	# Send all decrypted packets to interface
	FilterRule {
		Action Match
		SrcIp *
		Log mirror
	}
}

ProxySpec {
	# smtps Inspection proxy
	Proto smtps
	Addr 0.0.0.0
	Port 8465
	
	# Passthrough SSL connections if they cannot be split because of client cert
	# auth or no matching cert and no CA.
	# Equivalent to -P command line option.
	# (default: drop)
	Passthrough yes
	
	#Ciphers MEDIUM:HIGH
	#CipherSuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
	
	# Remove HTTP header line for Accept-Encoding
	RemoveHTTPAcceptEncoding no
	
	# Remove HTTP header line for Referer
	RemoveHTTPReferer yes
	
	# When disabled, never add the SNI to forged certificates, even if the SNI
	# provided by the client does not match the server certificate's CN/SAN.
	# Helps pass the wrong.host test at https://badssl.com.
	AllowWrongHost no
	
	# Require authentication for users to use SSLproxy
	UserAuth no
	
	# Validate proxy spec protocols
	ValidateProto yes
	
	# Max HTTP header size in bytes for protocol validation
	MaxHTTPHeaderSize 8192
	
	# Filter Rules
	# Send all decrypted packets to interface
	FilterRule {
		Action Match
		SrcIp *
		Log mirror
	}
	# Allow Ubiquiti based services through
	FilterRule {
		Action Pass
		SrcIp *
		SNI .ui.com*
		CN .ui.com*
	}
}
# Unknown What this does disable for now
#ProxySpec {
#	# Autossl Inspection proxy
#	Proto autossl
#	Addr 0.0.0.0
#	Port 8466

#	# Passthrough SSL connections if they cannot be split because of client cert
#	# auth or no matching cert and no CA.
#	# Equivalent to -P command line option.
#	# (default: drop)
#	Passthrough yes

#	#Ciphers MEDIUM:HIGH
#	#CipherSuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256

#	# Remove HTTP header line for Accept-Encoding
#	RemoveHTTPAcceptEncoding no

#	# Remove HTTP header line for Referer
#	RemoveHTTPReferer yes

#	# When disabled, never add the SNI to forged certificates, even if the SNI
#	# provided by the client does not match the server certificate's CN/SAN.
#	# Helps pass the wrong.host test at https://badssl.com.
#	AllowWrongHost no
#	
#	# Require authentication for users to use SSLproxy
#	UserAuth no#

#	# Validate proxy spec protocols
#	ValidateProto yes

#	# Max HTTP header size in bytes for protocol validation
#	MaxHTTPHeaderSize 8192
#	# Filter Rules
#	# Allow Ubiquiti based services through
#	FilterRule {
#		Action Pass
#		SrcIp *
#		SNI .ui.com*
#		CN .ui.com*
#	}
#}

All tests were conducted with the following parameters Client OS: Windows 11 Browser: Firefox 137.0.2 (Latest at the time of writing this.)

Server OS: Linux 6.12.12bpo+amd64 Distro: Debian SSlProxy info:

SSLproxy v0.9.7 (built 2025-04-23)
Copyright (c) 2017-2024, Soner Tari <sonertari@gmail.com>
https://github.com/sonertari/SSLproxy
Copyright (c) 2009-2019, Daniel Roethlisberger <daniel@roe.ch>
https://www.roe.ch/SSLsplit
Build info: V:GIT
Features: -DHAVE_NETFILTER
NAT engines: netfilter* tproxy
netfilter: IP_TRANSPARENT IP6T_SO_ORIGINAL_DST
Local process info support: no
compiled against OpenSSL 3.0.15 3 Sep 2024 (300000f0)
rtlinked against OpenSSL 3.0.15 3 Sep 2024 (300000f0)
OpenSSL has support for TLS extensions
TLS Server Name Indication (SNI) supported
OpenSSL is thread-safe with THREADID
OpenSSL has engine support
Using SSL_MODE_RELEASE_BUFFERS
SSL/TLS protocol availability: tls10 tls11 tls12 tls13
SSL/TLS algorithm availability: !SHA0 RSA DSA ECDSA DH ECDH EC
OpenSSL option availability: SSL_OP_NO_COMPRESSION SSL_OP_NO_TICKET SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION SSL_OP_TLS_ROLLBACK_BUG
compiled against libevent 2.1.12-stable
rtlinked against libevent 2.1.12-stable
compiled against libnet 1.1.6
rtlinked against libnet 1.1.6
compiled against libpcap n/a
rtlinked against libpcap 1.10.3 (with TPACKET_V3)
compiled against sqlite 3.40.1
rtlinked against sqlite 3.40.1
2 CPU cores detected

Interestingly reddit.com is able to be decrypted completely fine leading me to believe that this inconsistency is a possible bug.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

No, I don’t have the Passthrough option enabled.