Updated readme for the HTTP Proxy (#3999)

Improved the http proxy command by using %h and %p to avoid typing the host name twice
This commit is contained in:
Apflkuacha 2024-02-19 04:43:09 +01:00 committed by GitHub
parent cf025d6320
commit 2af2cf7dbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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": 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": 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 ### Accessing Internal Web Services with Custom Domains in LAN