An SSH tunnel SOCKS5 listener can serve a program with native proxy support or a compatible process wrapped by proxychains-ng. The wrapper changes how that process opens supported TCP connections. It does not turn SSH into a device-wide VPN. Choose the application route, then verify DNS and destination access separately.
Jump hosts changed the transport route; the configured final SSH hostname stayed the same.
Configuration evaluated
If your application already supports SOCKS5, use its own proxy option first. curl can use socks5h directly, making the destination-name choice explicit without a wrapper. For a compatible Linux program without a proxy setting, proxychains-ng can intercept selected networking and resolver calls through a preloaded library. Its coverage depends on the process and build.
| Application route | Example | Coverage boundary |
|---|---|---|
| Native SOCKS option | curl --proxy socks5h://127.0.0.1:1080 | That invocation and its proxy options |
| proxychains-ng wrapper | proxychains4 -f CONFIG curl URL | Supported calls in the wrapped process |
| Other applications | An existing browser or background service | Not covered merely by starting the tunnel |
Dynamically linked programs using supported libc calls are the intended starting point. Static binaries, custom networking stacks and privileged execution can prevent interception or produce unexpected behavior. proxychains-ng is principally a TCP tool; do not validate it using ping, a UDP DNS lookup or a protocol that never follows the intercepted connect path.
The phrase ssh with socks proxy can also mean sending the SSH transport through an existing upstream proxy. That is a different direction. Here SSH creates the local SOCKS listener for downstream applications. The dynamic forwarding guide explains its listener and startup checks; this page focuses on consuming that listener and managing the process scope.
The bundle below targets a Linux POSIX shell with OpenSSH, proxychains-ng and curl already installed. The wrapper executable may have another name on your distribution. It creates a temporary configuration rather than editing the system file. Commands are generated locally and never executed by this page; credentials remain in your normal SSH authentication flow.
Step 1 — Open the SSH tunnel. Run the first section in terminal one. It binds only to 127.0.0.1, requests no remote command and stays in the foreground. Verify the server host key using a trusted source, authenticate, then leave that terminal open. If using a jump host, authenticate through that route to the final SSH server.
Step 2 — Wrap one request. In terminal two, create the temporary configuration and run the proxychains4 line. The file contains strict_chain, proxy_dns and one SOCKS5 listener. strict_chain requires the configured chain; proxy_dns handles supported name-resolution calls inside the wrapped process. Neither setting certifies all traffic from the machine or every DNS implementation.
Step 3 — Compare the application path. The example curl invocation removes common proxy environment variables and sets no proxy bypass list for its fixed HTTPS destination. This avoids accidentally combining native curl proxy settings with interception. Compare a native SOCKS request and the wrapped request separately, then inspect the exit address in the intended context.
The cleanup line removes only the temporary configuration after the wrapped request. It does not close SSH in terminal one. Do not paste a privileged or unrelated program in place of curl without checking compatibility. Avoid changing a global proxychains file simply to test one tunnel; a dedicated file makes the selected listener and DNS mode inspectable.
We ran six local ssh -G -F none evaluations with OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2. All retained exit.example.com as the final hostname and 127.0.0.1:1080 as the dynamic forward. Single and double jump variants added ProxyJump values. These are parsed configuration observations on Windows, not Linux proxychains measurements or completed SSH connections.
| Configuration | Observed field | What was established |
|---|---|---|
| Direct transport | hostname exit.example.com | Final SSH host retained |
| One jump | proxyjump jump.example.com | Single jump parsed |
| Two jumps | proxyjump jump1.example.com,jump2.example.com | Ordered jump list parsed |
| Keepalives | serveraliveinterval 30; countmax 3 | Transport detection options accepted |
| Startup failure | exitonforwardfailure yes | Startup option accepted |
| No multiplexing | controlmaster false; controlpath omitted | ControlPath none not emitted in dump |
With a dynamic forward attached to the final SSH connection, destination connections are opened from the final server network. ProxyJump carries the SSH transport through intermediate hosts; it is not a proxychains list of separate SOCKS exits. The actual public address may still reflect final-server NAT or another egress route, so inspect it rather than infer a country from the jump host.
The generated command disables control-path reuse for a separate foreground test. Existing SSH configuration can still influence identities, jump-host settings and policies. Our experiment used -F none for isolation, while your generated command uses normal configuration. Download the six-case CSV and full arguments and output; parsing success does not prove authentication or forwarding permission.
When a wrapped request fails, first test the listener with native SOCKS support. If native curl succeeds but the wrapper fails, inspect the selected configuration file, preload support and application resolver behavior. If both fail, inspect SSH authentication, local binding, final-server policy and destination access. A proxychains log line is useful evidence of a chosen path, not a complete privacy audit.
Keepalive settings can make an unresponsive SSH transport exit; they do not reconnect it. autossh can supervise SSH if installed and configured. With autossh -M 0, monitor forwarding is disabled, so SSH keepalives are useful for detecting a dead transport. Plan noninteractive authentication and startup behavior before introducing supervision. An application session may still need its own retry after reconnection.
Run DNS and WebRTC checks only in the relevant client context. Do not interpret proxy_dns as a system resolver change. To stop the example, press Ctrl+C in terminal one and remove any remaining temporary file from terminal two. Restore application proxy settings separately. This experiment is a static snapshot, with no automatic update process.
No usable Linux proxychains runtime was available for this page, so its configuration examples are documentation guidance. References: proxychains-ng upstream, OpenSSH client options and autossh documentation. Check your installed versions before adopting a persistent setup.
For browser work, configure the intended profile rather than assuming a shell wrapper covers it.
Download RoxyBrowserReview RoxyBrowser on its official site for a desktop profile workflow. Verify the local SOCKS endpoint in that profile; SSH and proxychains remain separate processes.
No. proxychains-ng intercepts supported networking calls in compatible processes. It does not route every application or provide general UDP coverage. Static binaries, privileged execution and applications with their own networking paths can bypass or fail outside that model.
With a dynamic forward on the final SSH connection, requested destination connections originate from the final SSH server network. The jump host carries the SSH transport toward that server. Confirm the actual exit from the application because server routing can add another egress hop.
No. proxy_dns handles supported resolver calls within the wrapped process. Separate DNS tools, other processes, custom resolvers and UDP paths are outside a universal protection claim. Test the exact program and compare its behavior with a direct baseline.
autossh can supervise and restart SSH, but its setup depends on your environment. With monitor mode disabled using -M 0, configure SSH keepalives so a dead transport can cause SSH to exit. Reconnection does not prove destination access or restore every application session.