[elbe-devel] [RFC PATCH 1/5] init default-init.xml: Add ssh and rsync forwarding

Olivier Dion dion at linutronix.de
Tue May 5 22:02:47 CEST 2020


rsync uses the port 873 on the guest side.  We forward that to port
8730 on the host side.

The same goes for ssh with port 22 forwarded to port 5022.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/init/default-init.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/elbepack/init/default-init.xml b/elbepack/init/default-init.xml
index f6b306db..cedfc30f 100644
--- a/elbepack/init/default-init.xml
+++ b/elbepack/init/default-init.xml
@@ -51,6 +51,16 @@
 		<swap-size>10GiB</swap-size>
 		<img>qcow2</img>
 		<portforwarding>
+			<forward>
+				<proto>tcp</proto>
+				<buildenv>22</buildenv>
+				<host>5022</host>
+			</forward>
+			<forward>
+				<proto>tcp</proto>
+				<buildenv>873</buildenv>
+				<host>8730</host>
+			</forward>
 		</portforwarding>
 	</initvm>
 </ns0:RootFileSystem>
-- 
2.26.2




More information about the elbe-devel mailing list