Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrdp only binding to ipv6 and not using port settings from ini #304855

Open
gotjoshua opened this issue Apr 17, 2024 · 4 comments
Open

xrdp only binding to ipv6 and not using port settings from ini #304855

gotjoshua opened this issue Apr 17, 2024 · 4 comments

Comments

@gotjoshua
Copy link

gotjoshua commented Apr 17, 2024

Describe the bug

xrdp only binding to ipv6 and not using port settings from ini as the default port setting is passed via cli and trumps settings from the ini

Steps To Reproduce

Steps to reproduce the behavior:

  1. use this gist https://gist.github.com/gotjoshua/3d7c51a76b3d74b213fc86e32cea3935
  2. exclude the systemd section https://gist.github.com/gotjoshua/3d7c51a76b3d74b213fc86e32cea3935#file-configuration-nix-L38-L46
  3. notice that the /etc/xrdp/ files are patched, but the port settings from xrdp.ini is not used

Expected behavior

  1. the port variable ought to be a string and be used to patch the ini (not passed to the cli)
  • then one could just use ini syntax directly like services.xrdp.port = "tcp://:3389";
  1. the service should use the /etc/xrdp ini files
  2. by default the service should bind to both ipv4 and 6

Screenshots

without the systemd ExecStart patch it only binds ipv6
image

the ini file is used, via the direct nix store path (rather than /etc/xrdp/
image

$ sudo systemctl status xrdp.service
● xrdp.service - xrdp daemon
     Loaded: loaded (/etc/systemd/system/xrdp.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-04-17 20:37:42 WEST; 3min 36s ago
    Process: 325011 ExecStartPre=/nix/store/dyf3vgbq1lhpks3qrc4i5zjvaj4xzmv8-unit-script-xrdp-pre-start/bin/xrdp-pre-start (code=exited, status=0/SUCCESS)
   Main PID: 325055 (xrdp)
         IP: 0B in, 0B out
      Tasks: 1 (limit: 76411)
     Memory: 1.0M ()
        CPU: 9ms
     CGroup: /system.slice/xrdp.service
             └─325055 /nix/store/01zd6sxkym5a3aj6miwn2ip1id57bn82-xrdp-0.9.25.1/bin/xrdp --nodaemon --port 3389 --config /nix/store/l8i6gamqjdn4h0f8n7b6jl69ks7kg0zp-xrdp.conf/xrdp.ini

Apr 17 20:37:42 gotjosh-icase systemd[1]: Starting xrdp daemon...
Apr 17 20:37:42 gotjosh-icase systemd[1]: Started xrdp daemon.

Notify maintainers

@nagy @pennae @chvp

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.25, NixOS, 24.05 (Uakari), 24.05.20240406.ff0dbd9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(gotjosh): `""`
 - nixpkgs: `/nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source`
@SuperSandro2000
Copy link
Member

I am not a xrdp maintainer

@gotjoshua
Copy link
Author

I am not a xrdp maintainer

sorry bout that, i went with the last three commits that touched the file...

found this now
https://search.nixos.org/packages?channel=23.11&show=xrdp&from=0&size=50&sort=relevance&type=packages&query=xrdp

Maintainers

Charlotte Van Petegem nixpkgs@cvpetegem.be
@chvp are you still an active maintainer?

@gotjoshua
Copy link
Author

The section that would need updating is blamed on @lucasew, who is also not a formal maintainer...

image

@chvp
Copy link
Member

chvp commented Apr 20, 2024

I maintain the package, I have not touched the NixOS module yet (and I don't actively use the package anymore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants