From 2af2cf7dbd7482906c0d78efb243a47b7670c773 Mon Sep 17 00:00:00 2001 From: Apflkuacha Date: Mon, 19 Feb 2024 04:43:09 +0100 Subject: [PATCH] Updated readme for the HTTP Proxy (#3999) Improved the http proxy command by using %h and %p to avoid typing the host name twice --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index adf4e12..b2d3916 100644 --- a/README.md +++ b/README.md @@ -201,11 +201,11 @@ This example implements multiple SSH services exposed through the same port usin 4. To access internal machine A using SSH ProxyCommand, assuming the username is "test": - `ssh -o 'proxycommand socat - PROXY:x.x.x.x:machine-a.example.com:22,proxyport=5002' test@machine-a` + `ssh -o 'proxycommand socat - PROXY:x.x.x.x:%h:%p,proxyport=5002' test@machine-a.example.com` 5. To access internal machine B, the only difference is the domain name, assuming the username is "test": - `ssh -o 'proxycommand socat - PROXY:x.x.x.x:machine-b.example.com:22,proxyport=5002' test@machine-b` + `ssh -o 'proxycommand socat - PROXY:x.x.x.x:%h:%p,proxyport=5002' test@machine-b.example.com` ### Accessing Internal Web Services with Custom Domains in LAN