SSLproxy icon indicating copy to clipboard operation
SSLproxy copied to clipboard

dynamically apply

Open alisaosipova opened this issue 1 year ago • 8 comments

Can I dynamically apply a decision to problematic traffic about what to do with it (accept/drop)? Possibly using Pass rules from sslproxy.conf Let’s say an error occurred with some traffic while the program was running, I want to decide what to do with the problematic traffic, let it pass without decrypting it or drop it It is worth clarifying that it is not known in advance what kind of traffic it will be, and also that I do not want to let ALL traffic through without decryption, etc.

thx

alisaosipova avatar Jul 16 '24 13:07 alisaosipova

You can try the Passthrough option (the -P option), globally, per proxyspec, or per filter rule. But it may or may not cover all the error conditions you want.

sonertari avatar Jul 16 '24 14:07 sonertari

You can try the Passthrough option (the -P option), globally, per proxyspec, or per filter rule. But it may or may not cover all the error conditions you want.

That is, there is no dynamic decision-making? Is it possible to implement the following: dynamically add a rule to sslproxy.conf and update it without restarting the service itself (in this case the rule will appear)

alisaosipova avatar Jul 16 '24 14:07 alisaosipova

On certain ssl errors, the passthrough mode passes those connections through, which can be considered dynamic. But sslproxy does not have the config reload that you describe. And here as well.

sonertari avatar Jul 16 '24 14:07 sonertari

On certain ssl errors, the passthrough mode passes those connections through, which can be considered dynamic. But sslproxy does not have the config reload that you describe. And here as well.

I don't think this is quite what I'm looking for. I don't need SSLproxy to work only in Passthrough mode, because then it passes ALL traffic, I need to pass specific traffic, but which is UNKNOWN until that traffic itself is received. I hope you could understand me

Do you think restarting the config is possible without turning off the service? It’s logical that I’ll do this function myself.

alisaosipova avatar Jul 16 '24 14:07 alisaosipova

and I want to process the rest of the traffic as before, via the SSL protocol.

alisaosipova avatar Jul 16 '24 14:07 alisaosipova

No, Passthrough mode does not work like that, it passes the connection through on error (something like fail-open). Filter rules and proxyspecs are hard to reload without restarting sslproxy.

sonertari avatar Jul 16 '24 18:07 sonertari

On certain ssl errors, the passthrough mode passes those connections through, which can be considered dynamic. But sslproxy does not have the config reload that you describe. And here as well.

I don’t understand what kind of errors this happens. could you describe the list to me?

alisaosipova avatar Jul 24 '24 07:07 alisaosipova

For example, it happens on SSL errors while connecting to server. Or on errors creating SSL context, e.g. while forging server cert. You can follow the links to sources for details.

sonertari avatar Jul 25 '24 09:07 sonertari