From 342d50fcf002be57f64e51ddd9f5cdde448925c3 Mon Sep 17 00:00:00 2001 From: Oxore Date: Wed, 23 Oct 2024 22:18:19 +0300 Subject: qemu: Explain TCP port forwarding --- source/qemu.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) 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]_ ========================================================== -- cgit v1.2.3