Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

xrdp 0.9.0 fails to start on jessie with IPv6 disabled

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
hokr0000
Posts: 1
Joined: 2016-08-10 13:26

xrdp 0.9.0 fails to start on jessie with IPv6 disabled

#1 Post by hokr0000 »

Dear forum,

from jessie-backports I installed xrdp version 0.9.0~20160601+git703fedd-3~bpo8+1 on a jessie system. For reasons not related to xrdp I had IPv6 disabled in the kernel by having these lines in '/etc/sysctl.d/disableipv6.conf':

Code: Select all

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.bond0.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.eth1.disable_ipv6 = 1
Seemingly, 'xrdp-sesman' was not able to start, as I conclude from the entries in '/var/log/xrdp-sesman.log':

Code: Select all

[20160726-15:12:30] [WARN ] [init:46] libscp initialized
[20160726-15:12:30] [CORE ] starting sesman with pid 20524
[20160726-15:12:30] [INFO ] listening...
[20160726-15:12:30] [ERROR] bind error on port '3350': 22 (Invalid argument)
[20160726-15:12:30] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 7
After removing '/etc/sysctl.d/disableipv6.conf' and a reboot, xrdp starts up flawlessly. '/var/log/xrdp-sesman.log' reads:

Code: Select all

[20160802-17:42:04] [WARN ] [init:46] libscp initialized
[20160802-17:42:04] [CORE ] starting sesman with pid 1115
[20160802-17:42:04] [INFO ] listening...
But xrdp-sesman seems only to open an IPv6 socket. At least there's only one line for xrdp-sesman in `lsof -i` output:

Code: Select all

root@mersenne:~# lsof -i|grep xrdp
xrdp        944        xrdp   10u  IPv6   12088      0t0  TCP *:3389 (LISTEN)
xrdp-sesm  1115        root    7u  IPv6    8558      0t0  TCP localhost:3350 (LISTEN)
Questions:
  1. Is there a known way to have xrdp use only IPv4? (Many other daemons offer an option for this.) I could find nothing on this in the package's documentation.
  2. Is a daemon (by some debian policy) expected to work on an IPv4-only system? Is it justified to file a bug against xrdp, as it supports IPv6 only - without mentioning that as a prerequisite?
Thanks for any comments in advance!

Holger

cpc
Posts: 2
Joined: 2013-02-22 12:11

Re: xrdp 0.9.0 fails to start on jessie with IPv6 disabled

#2 Post by cpc »

..I know this is an older post but I see what you mean about this. If it can't bind to IPv6 interface it fails. If I find something I'll post it. I never realized this before...

Post Reply