summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-10-23 22:18:19 +0300
committerOxore <oxore@protonmail.com>2024-10-23 22:18:44 +0300
commit342d50fcf002be57f64e51ddd9f5cdde448925c3 (patch)
treeab27b7c6571e8e4f46bd35d18a1b3815fd8403dd
parent26684722afdd9ad0e055d80a8b3acafdc18eb7e2 (diff)
qemu: Explain TCP port forwarding
-rw-r--r--source/qemu.rst11
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]_
==========================================================