[X2Go-Commits] [x2goserver] 02/03: x2goserver/etc/x2goserver.conf: add x2goagent.port_randomization configuration option.

git-admin at x2go.org git-admin at x2go.org
Mon Jan 1 06:12:00 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.

commit ad9056356e9000ebeb00fd3d892e25c23673bb0c
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Jan 1 06:02:37 2018 +0100

    x2goserver/etc/x2goserver.conf: add x2goagent.port_randomization configuration option.
    
    Can be set to either "host-based" or "pure-random".
---
 debian/changelog               |  3 +++
 x2goserver/etc/x2goserver.conf | 17 +++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 519e2f9..2074b7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,9 @@ x2goserver (4.0.1.23-0x2go1) UNRELEASED; urgency=medium
       problem that required this workaround has been fixed a long time ago.
     - x2goserver/lib: new wrapper script x2goqueryconfig to fetch a config
       value out of the global x2goserver.conf file.
+    - x2goserver/etc/x2goserver.conf: add x2goagent.port_randomization
+      configuration option. Can be set to either "host-based" or
+      "pure-random".
   * x2goserver.spec:
     - RPMify x2goserver-xsession description.
     - Remove qt4 stuff, we're not using the framework here.
diff --git a/x2goserver/etc/x2goserver.conf b/x2goserver/etc/x2goserver.conf
index c9fe270..fa69e79 100644
--- a/x2goserver/etc/x2goserver.conf
+++ b/x2goserver/etc/x2goserver.conf
@@ -8,6 +8,23 @@
 # SSHFS umask for client-side folder sharing. Leave uncommented to keep the server's default umask
 #umask="0117"
 
+[x2goagent]
+# Value can be either "host-based" or "pure-random".
+# This is currently a workaround for a bug in X2Go Client, that uses a 1:1
+# mapping of source to destination ports for SSH tunnels.
+# This leads to problems if opening two (or more) instances of X2Go Client
+# and connecting to two machines that use the same tunneling ports.
+# Such a scenario is easy to trigger: make sure that both machines have run
+# no active sessions, than spawn one session on each machine.
+# Connecting to both at the same time will not be possible without a means
+# of randomization.
+# The randomization can either be "host-based", in which case the port will
+# be set to 30000 + (128 * last octet of IPv4 address) and does the job if
+# the last octet of the machine's IPv4 address is known to be unique, or
+# "pure-random" which uses the (not so truly random) bash ${RANDOM}
+# variable to fully randomize the port, i.e., 30000 + random(0..32767).
+port_randomization="pure-random"
+
 [log]
 # possible levels are: emerg, alert, crit, err, warning, notice, info, debug
 loglevel=notice

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list