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

Add support for ssh -D / DynamicForward #657

Open
devnoname120 opened this issue Sep 11, 2024 · 0 comments
Open

Add support for ssh -D / DynamicForward #657

devnoname120 opened this issue Sep 11, 2024 · 0 comments

Comments

@devnoname120
Copy link

devnoname120 commented Sep 11, 2024

The -D option is an amazing feature of SSH that seamlessly creates a dynamic SOCKS proxy over SSH. It allows you to proxy your network traffic through an SSH connection, forwarding requests like a local proxy server. This is commonly used for securely routing network traffic through a remote machine, making it appear as though the traffic originates from that machine.

Here is an example:

ssh -D 1080 myvps

or the equivalent:

ssh -o DynamicForward=1080 myvps

And then you can easily configure your browser or your operating system to use this as a proxy:

image

This is extremely simple and doesn't require to install any VPN or firewall rules because everything it's a standard SSH feature and everything is tunneled through SSH like normally.

Why eternalterminal?

ssh -D is used for long-lived connections: you configure the proxy in e.g. your browser and you want it to run reliably even when you switch networks, or have internet hiccups, etc. Adding support in eternalterminal would perfectly complement this use case because long-lived resilient connections is where et shines the best!

I tried to run et --ssh-option DynamicForward=1080 myvps but unfortunately it doesn't work (connections to localhost:1080 are refused so I don't think that it actually listens to the port).

@devnoname120 devnoname120 changed the title Add support for ssh -D Add support for ssh -D / DynamicForward Sep 11, 2024
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

1 participant