cannot connect to XRDP

ts1000 ts1000 at rad2know.net
Sat Aug 24 15:36:11 PDT 2019


Sorry, I had lost a portion of my subject line. Now corrected.


On 2019-08-24 21:25, ts1000 wrote:
> Hello
> I am a new user, apologies if this question should go somewhere else.
> 
> --
> I had installed DFBSD 5.6.2 on a virtual box vm, it is Natted
> with ports 22 and 3389 forwarded, such that I can login to FBSD from
> SSH and from RDP clients
> 
> --
> I had installed XRDP and added it to rc.conf, so that it starts on 
> startup.
> 
> 
> # cat /etc/rc.conf
> # Basic rc.conf, adjust according to your needs
> #
> nfs_reserved_port_only="YES"
> sshd_enable="YES"
> nfs_client_enable="YES"
> rpc_umntall_enable="NO"
> dumpdev="/dev/serno/VB363b1113-01a188d7.s1b"    # via installer 
> configuration
> hostname="dfbsd-vb-01.mydomain.com"     # via installer configuration
> ifconfig_em0="DHCP"     # via installer configuration
> 
> #manually added start
> xrdp_enable="YES"
> #manually added end
> dfbsd-vb-01#
> 
> ---
> 
> When trying to connect  to dfbsd from Windows and Linux RDP client
> (remmina), I am getting connection errors (windows client just exits
> immediately)
> 
> I had also noticed when XRDP starts up on DFBSD, there is an error 
> message
> 
> 
> dfbsd-vb-01# cat xrdp.log
> [20190824-16:09:04] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 
> 3389.
> [20190824-16:09:04] [ERROR] g_tcp_socket: setsockopt() failed
> [20190824-16:09:04] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
> [20190824-16:09:06] [INFO ] starting xrdp with pid 708
> [20190824-16:09:06] [ERROR] g_tcp_socket: setsockopt() failed
> [20190824-16:09:06] [INFO ] listening to port 3389 on 0.0.0.0
> dfbsd-vb-01#
> 
> 
> --
> 
> Sockstat does not reveal anything strange :
> 
> dfbsd-vb-01# sockstat
> USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN 
> ADDRESS
> root     sshd       820   4  tcp4   10.0.2.15:22          
> 10.0.2.2:62257
> root     sshd       820   5  stream -> ??
> root     sshd       820   6  stream (not connected)
> usr1     sshd       822   3  stream -> ??
> usr1     sshd       822   4  tcp4   10.0.2.15:22          
> 10.0.2.2:62257
> usr1     sshd       822   6  stream (not connected)
> root     devd       314   4  stream /var/run/devd.pipe
> root     devd       314   7  dgram  -> /var/run/logpriv
> root     sshd       632   3  tcp6   *:22                  *:*
> root     sshd       632   4  tcp4   *:22                  *:*
> root     syslogd    383   4  dgram  /var/run/log
> root     syslogd    383   5  dgram  /var/run/logpriv
> root     xrdp       708   6  dgram  -> /var/run/logpriv
> root     xrdp       708   11 tcp6   *:3389                *:*
> 
> -----------------------------------------------------------------
> 
> 
> 
> 
> Wanted to ask what steps I should take to troubleshoot the problem 
> further.
> 
> 
> I tried to look at xrdp source, but not sure if the error message in
> the log is misleading, or I am mis-interpreting it
> 
> https://github.com/neutrinolabs/xrdp/blob/e7c0b11336bce95fbd2c8a5624bb476f038536de/tests/gtcp_proxy/gtcp.c
> 
> seems to be a g_tcp test directory.
> 
> 
> Or may be somebody can confirm that they can successfully run XRDP on
> their 5.6.2 install, if that's the case, then this is would be a
> problem on my side
> 
> 
> Thank you in advance
> 
> 
> 
> 
> -------------------------
> --dfbsd-vb-01# pkg info xrdp
> xrdp-0.9.10_2,1
> Name           : xrdp
> Version        : 0.9.10_2,1
> Installed on   : Sat Aug 24 02:12:05 2019 EDT
> Origin         : net/xrdp
> Architecture   : dragonfly:5.6:x86:64
> Prefix         : /usr/local
> Categories     : net
> Licenses       : APACHE20
> Maintainer     : meta at FreeBSD.org
> WWW            : http://www.xrdp.org/
> Comment        : Open source Remote Desktop Protocol (RDP) server
> Options        :
>         DEBUG          : off
>         FDKAAC         : on
>         FUSE           : off
>         IPV6           : on
>         MP3LAME        : off
>         OPUS           : on
> Shared Libs required:
>         libfdk-aac.so.2
>         libX11.so.6
>         libSM.so.6
>         libXrandr.so.2
>         libjpeg.so.8
>         libpixman-1.so.0
>         libopus.so.0
>         libcrypto.so.45
>         libICE.so.6
>         libssl.so.47
>         libXfixes.so.3
> Shared Libs provided:
>         libxrdp.so.0
>         libscp.so.0
>         libvnc.so
>         libpainter.so.0
>         librfxencode.so.0
>         libcommon.so.0
>         libxup.so
>         libxrdpapi.so.0
>         libmc.so
> Annotations    :
>         repo_type      : binary
>         repository     : Avalon
> Flat size      : 2.59MiB



More information about the Users mailing list