What is the ports range used when RStudio sessions jobs launched via slurm

Hello,

We are using the CIS hardened RHEL8 server for our Rstudio Pro server.
So we need to add the allowed ports to be accepted in iptable.

RStudio Session Jobs when launched via slurm is using random ports (eg. 38031, 34041 etc)
so we want to know the port range which uses for rsession Jos ? or is it possible to restrict the rsession Jobs to use specific port range in any config file ?

Log info:

Session proxy listening on 42533
Listener bound to address 0.0.0.0 port 38031

Additional Details:

which R
/usr/local/bin/R

R --version
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.3 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.3 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.3:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.3"

Interesting question! It is my understanding that an ephemeral port is used. The range of this ports is typically

$ cat /proc/sys/net/ipv4/ip_local_port_range
32768   60999

I am not aware of a way to configure the used range within RStudio Server.

2 Likes

Thank you.
Will allow ephemeral port in iptable.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.