Thanks for everybody for all suggestions, but today I tried to make some modifications to /etc/xrdp/xrdp.ini but with no success.
First I commented out the line which forks a new process for each incoming connection, but that seemed to have no effect on my issue.
Then, looking at the section in which listening ports are described, as it has been pointed out, in my case the line is
so I am guessing that connection should be established to that port. However, I have edited the Xorg session of the file in this way:
so that I am able to specify the port number at login prompt.
Now, the strange thing that happens is the following: if I specify 3389 the connection immediately crashes and I get this in /var/log/xrdp.log
Instead, if I specify -1 the connection is established, but again I get a new session different from the one running on the notebook and the same errors regarding wifi connection I mentioned above. In this case, here it is what /var/log/xrdp.log shows:
I will continue to investigate this issue, any further contribution will be greatly appreciated.
First I commented out the line which forks a new process for each incoming connection, but that seemed to have no effect on my issue.
Then, looking at the section in which listening ports are described, as it has been pointed out, in my case the line is
Code:
port=3389
Code:
[Xorg]name=Xorglib=libxup.sousername=askpassword=askip=127.0.0.1port=askcode=20
Now, the strange thing that happens is the following: if I specify 3389 the connection immediately crashes and I get this in /var/log/xrdp.log
Code:
[20240603-12:37:34] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.7 port 62285[20240603-12:37:34] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem[20240603-12:37:34] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem[20240603-12:37:34] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL][20240603-12:37:34] [ERROR] SSL_read: I/O error[20240603-12:37:34] [INFO ] Socket 17: AF_INET6 connection received from ::ffff:192.168.0.7 port 62286[20240603-12:37:34] [ERROR] libxrdp_force_read: header read error[20240603-12:37:34] [ERROR] Processing [ITU-T T.125] Connect-Initial failed[20240603-12:37:34] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem[20240603-12:37:34] [ERROR] [MCS Connection Sequence] receive connection request failed[20240603-12:37:34] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem[20240603-12:37:34] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed[20240603-12:37:34] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL][20240603-12:37:34] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed[20240603-12:37:34] [INFO ] Connected client computer name: RICKDELL[20240603-12:37:34] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed[20240603-12:37:35] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)[20240603-12:37:35] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)[20240603-12:37:35] [ERROR] xrdp_iso_send: trans_write_copy_s failed[20240603-12:37:35] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000410][20240603-12:37:35] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed[20240603-12:37:35] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [it] options [][20240603-12:37:35] [INFO ] TLS connection established from ::ffff:192.168.0.7 port 62286: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384[20240603-12:37:35] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor[20240603-12:37:35] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100[20240603-12:37:35] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3[20240603-12:37:35] [WARN ] xrdp_caps_process_codecs: unknown codec id 5[20240603-12:37:35] [INFO ] Loading keymap file /etc/xrdp/km-00000410.ini[20240603-12:37:35] [WARN ] local keymap file for 0x00000410 found and doesn't match built in keymap, using local keymap file[20240603-12:37:48] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4[20240603-12:37:48] [INFO ] started connecting[20240603-12:37:48] [INFO ] lib_mod_connect: connecting via TCP socket[20240603-12:37:48] [INFO ] Socket 15: AF_INET6 connection received from ::1 port 49754[20240603-12:37:48] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem[20240603-12:37:48] [INFO ] connected ok[20240603-12:37:48] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem[20240603-12:37:48] [ERROR] libxrdp_force_read: bad header length 0[20240603-12:37:48] [ERROR] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed[20240603-12:37:48] [ERROR] xrdp_sec_incoming: xrdp_iso_incoming failed[20240603-12:37:49] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed[20240603-12:37:49] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed[20240603-12:37:49] [ERROR] lib_data_in: bad size
Code:
[20240603-12:52:44] [ERROR] SSL_write: I/O error[20240603-12:52:44] [ERROR] xrdp_iso_send: trans_write_copy_s failed[20240603-12:52:44] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed[20240603-12:52:47] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.7 port 62482[20240603-12:52:47] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem[20240603-12:52:47] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem[20240603-12:52:47] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL][20240603-12:52:47] [ERROR] SSL_read: Failure in SSL library (protocol error?)[20240603-12:52:48] [INFO ] Socket 17: AF_INET6 connection received from ::ffff:192.168.0.7 port 62484[20240603-12:52:48] [ERROR] SSL: error:0A000126:SSL routines::unexpected eof while reading[20240603-12:52:48] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem[20240603-12:52:48] [ERROR] libxrdp_force_read: header read error[20240603-12:52:48] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem[20240603-12:52:48] [ERROR] Processing [ITU-T T.125] Connect-Initial failed[20240603-12:52:48] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL][20240603-12:52:48] [ERROR] [MCS Connection Sequence] receive connection request failed[20240603-12:52:48] [INFO ] Connected client computer name: RICKDELL[20240603-12:52:48] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)[20240603-12:52:48] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed[20240603-12:52:48] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)[20240603-12:52:48] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed[20240603-12:52:48] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000410][20240603-12:52:48] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed[20240603-12:52:48] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [it] options [][20240603-12:52:48] [ERROR] xrdp_iso_send: trans_write_copy_s failed[20240603-12:52:48] [INFO ] TLS connection established from ::ffff:192.168.0.7 port 62484: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384[20240603-12:52:48] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed[20240603-12:52:49] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor[20240603-12:52:49] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100[20240603-12:52:49] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3[20240603-12:52:49] [WARN ] xrdp_caps_process_codecs: unknown codec id 5[20240603-12:52:49] [INFO ] Loading keymap file /etc/xrdp/km-00000410.ini[20240603-12:52:49] [WARN ] local keymap file for 0x00000410 found and doesn't match built in keymap, using local keymap file[20240603-12:52:59] [INFO ] connecting to sesman on 127.0.0.1:3350[20240603-12:52:59] [INFO ] xrdp_wm_log_msg: sesman connect ok[20240603-12:52:59] [INFO ] sesman connect ok[20240603-12:52:59] [INFO ] sending login info to session manager. Please wait...[20240603-12:52:59] [INFO ] xrdp_wm_log_msg: login successful for user hikikomori on display 10[20240603-12:52:59] [INFO ] login successful for user hikikomori on display 10[20240603-12:52:59] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4[20240603-12:52:59] [INFO ] started connecting[20240603-12:52:59] [INFO ] lib_mod_connect: connecting via UNIX socket[20240603-12:52:59] [INFO ] lib_mod_log_peer: xrdp_pid=2456 connected to X11rdp_pid=4629 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.0.7 client_port=62484[20240603-12:52:59] [INFO ] connected ok
Statistics: Posted by hikikomori — Mon Jun 03, 2024 6:56 am