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

Please consider implementing dynamic port forward with socks as in ssh. #88

Open
sjmunizsantex opened this issue Jan 16, 2024 · 4 comments

Comments

@sjmunizsantex
Copy link

sjmunizsantex commented Jan 16, 2024

While the portforward over aws ssm is useful, it would incredibly useful to have a socks proxy instead a port forward.

What I'd like to have is something similar to:
ssh -D <port> where port starts listening as a http socks proxy you can configure in your browser to tunnel any and all traffic over it.

This allows for http to https redirects and more in general reach internal servers without needing to create a new portforward for each one.

¡Thanks!

@sjmunizsantex sjmunizsantex changed the title please consider implementing dynamic port forward with socks as in ssh. Please consider implementing dynamic port forward with socks as in ssh. Jan 16, 2024
@joy13975
Copy link

With the setup according to this I was able to do ssh -ND <port> <host> and use it as a socks proxy.

What's not working for you?

@basigabri
Copy link

Needs to be through SSM agent, without any Public IPs assigned to the Instance. You were able to do this through ssm connection ?

@joy13975
Copy link

joy13975 commented Jul 9, 2024

@basigabri Yes. No public IPs, just SSH over SSM.
The test was done on Max apple silicon, and server is Amazon Linux. I was able to see private subnet web server on browser when going through the SOCK5 port.

@yuting-fan
Copy link
Contributor

Thanks @joy13975 for sharing. @basigabri @sjmunizsantex please let us know if you run into issues following @joy13975 's suggestion.

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

4 participants