Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket Pass #74

Open
piolug93 opened this issue Jul 17, 2024 · 3 comments
Open

WebSocket Pass #74

piolug93 opened this issue Jul 17, 2024 · 3 comments

Comments

@piolug93
Copy link
Contributor

Hi it's possible to Pass websocket for selected destination host when i have rule split from * to * log * ?

@sonertari
Copy link
Owner

SSLproxy does not support websocket protocol.
You could filter based on destination IP if the dest IP serves websocket only, but I guess that's not what you want. Or if it's encrypted, perhaps you can specify those websocket connections using some SSL filter rule (such as SNI or CommonName fields). Or port number?
In short, you can perhaps try to find some other feature of those websocket connections, which you can use in a filter rule.

@piolug93
Copy link
Contributor Author

I know that SSLProxy does not support websocket, so I want to create a websocket passing rule for selected destinations.

Snippet from my config is:
ProxySpec https 0.0.0.0 3129
Block from * to * log *
Split from ip 10.200.1.* to * log *

When i add rule for pass traffic to destination servers where is traffic by websocket, that traffic wasn't passed.
Pass from * to host o2.pl log *

Do you know what i need to do for passing that traffic ?
Probably the problem is due to the order in which the rules are processed ?

@sonertari
Copy link
Owner

Can you try Pass from ip 10.200.1.1 to host o2.pl log *? Replace 10.200.1.1 with a source ip address. (Or you can perhaps try 10.200.1.*)
This makes that Pass filter rule more specific, and more specific rules have higher precedence.

And the order of rules is important, as you say. So I assume the following:

ProxySpec https 0.0.0.0 3129
Block from * to * log *
Split from ip 10.200.1.* to * log *
Pass from ip 10.200.1.1 to host o2.pl log *

Let's see what happens.

Note that you can enable the DEBUG_OPTS switch in main.mk to inspect detailed debug info on filtering rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants