diff options
author | William Carroll <wpcarro@gmail.com> | 2022-11-17T18·59-0800 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-11-17T19·04+0000 |
commit | 44076fbd42e50ef09bf6815e70a9125e0a6f3c64 (patch) | |
tree | d67f442e761066c86656ac6443ab50a1e1d5b52d /users/wpcarro/website/blog/posts/tcp-tunneling-note.md | |
parent | 8c3d87cd14355f95e547db696db76863d5727a44 (diff) |
chore(wpcarro/blog): Edit "TCP Tunneling (note to self)" r/5288
Proof-reading much easier when Markdown is rendered in the browser. Change-Id: Ia173dea817866d214547546bc3428ac6fe6782bf Reviewed-on: https://cl.tvl.fyi/c/depot/+/7305 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/website/blog/posts/tcp-tunneling-note.md')
-rw-r--r-- | users/wpcarro/website/blog/posts/tcp-tunneling-note.md | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/users/wpcarro/website/blog/posts/tcp-tunneling-note.md b/users/wpcarro/website/blog/posts/tcp-tunneling-note.md index 4597405fae43..06f6469aff3d 100644 --- a/users/wpcarro/website/blog/posts/tcp-tunneling-note.md +++ b/users/wpcarro/website/blog/posts/tcp-tunneling-note.md @@ -16,7 +16,7 @@ on the remote. It's quite cool! Run the following on your local machine to forward your remote's traffic: ```shell -$ ssh -R 4317:127.0.0.1:4317 -N -f user@remote +λ ssh -R 4317:127.0.0.1:4317 -N -f user@remote ``` Here is an abridged explanation of the flags we're passing from `man ssh`: @@ -34,19 +34,14 @@ ssh: Could not resolve hostname 4317:127.0.0.1:4317: Name or service not known ``` The remote should now be forwarding traffic from port `4317` to our -machine. We can verify with the following: - -```shell -$ nc -l 4317 -k -``` +machine. ## Testing -Let's generate some traffic on the remote. **Note:** you should see the output -in the shell in which you're running `nc -l 4317 -k`. +Let's generate some traffic on the remote: ```shell -$ telnet localhost 4317 +λ telnet localhost 4317 Trying ::1... Connected to localhost. Escape character is '^]'. @@ -57,7 +52,7 @@ world Locally you should see: ```shell -λ nc -l 4317 -k +λ nc -l 4317 -k # run this *before* running the above command hello world ``` |