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

Support connection through SOCKS5 #531

Open
om26er opened this issue Sep 7, 2021 · 2 comments
Open

Support connection through SOCKS5 #531

om26er opened this issue Sep 7, 2021 · 2 comments

Comments

@om26er
Copy link
Contributor

om26er commented Sep 7, 2021

Autobahn Java should be able to connect to crossbar over SOCKS5. Our Java websocket implementation internally uses the Java Socket class, which supports passing a Proxy object.

I have briefly played with it and it seems I was able to connect to Crossbar using SOCKS5 proxy from autobahn-java with a few lines of code.

If you @oberstet agree, we can add initial support to our websocket implementation.

The user API would only need to provide an instance of a Proxy object (that we define), which supports 4 paramets

  • socks5 server address
  • socks5 port
  • socks5 username
  • socks5 password

The last two can be optional if a proxy supports anonymous connection.

@michedsa
Copy link

Hi, can you explain how you did?

@om26er
Copy link
Contributor Author

om26er commented Nov 11, 2021

@michedsa I haven't had the time to implement it but I did play with it at the time I reported this issue. Basically the change needs to happen at the underlying TCP socket level, mostly here

I was able to connect to a crossbar instance using SOCKS5.

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

No branches or pull requests

3 participants