diff options
| author | Oxore <oxore@protonmail.com> | 2024-10-23 22:18:19 +0300 |
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2024-10-23 22:18:44 +0300 |
| commit | 342d50fcf002be57f64e51ddd9f5cdde448925c3 (patch) | |
| tree | ab27b7c6571e8e4f46bd35d18a1b3815fd8403dd | |
| parent | 26684722afdd9ad0e055d80a8b3acafdc18eb7e2 (diff) | |
qemu: Explain TCP port forwarding
| -rw-r--r-- | source/qemu.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/qemu.rst b/source/qemu.rst index c01e7ae..8b64cb2 100644 --- a/source/qemu.rst +++ b/source/qemu.rst @@ -34,6 +34,17 @@ Basic VM command Describe the command and split it apart into sepatate sections. +TCP port forwarding +========================================================== + +If you want to forward an SSH port use the following options:: + + -net user,hostfwd=tcp::2222-:22 \ + +If you need to forward multiple TCP ports, add another ``hostfwd`` entry after a +comma like this:: + + -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::51822-:51822 \ Exchange files with the host using samba [#shared-folder]_ ========================================================== |
