Guest User

/etc/xrdp/xrdp.ini

a guest
Jun 28th, 2022
951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. [Globals]
  2. ; xrdp.ini file version number
  3. ini_version=1
  4.  
  5. ; fork a new process for each incoming connection
  6. fork=true
  7.  
  8. ; ports to listen on, number alone means listen on all interfaces
  9. ; 0.0.0.0 or :: if ipv6 is configured
  10. ; space between multiple occurrences
  11. ;
  12. ; Examples:
  13. ; port=3389
  14. ; port=unix://./tmp/xrdp.socket
  15. ; port=tcp://.:3389 127.0.0.1:3389
  16. ; port=tcp://:3389 *:3389
  17. ; port=tcp://<any ipv4 format addr>:3389 192.168.1.1:3389
  18. ; port=tcp6://.:3389 ::1:3389
  19. ; port=tcp6://:3389 *:3389
  20. ; port=tcp6://{<any ipv6 format addr>}:3389 {FC00:0:0:0:0:0:0:1}:3389
  21. ; port=vsock://<cid>:<port>
  22. port=tcp://.:3389
  23.  
  24. ; 'port' above should be connected to with vsock instead of tcp
  25. ; use this only with number alone in port above
  26. ; prefer use vsock://<cid>:<port> above
  27. use_vsock=false
  28.  
  29. ; regulate if the listening socket use socket option tcp_nodelay
  30. ; no buffering will be performed in the TCP stack
  31. tcp_nodelay=true
  32.  
  33. ; regulate if the listening socket use socket option keepalive
  34. ; if the network connection disappear without close messages the connection will be closed
  35. tcp_keepalive=true
  36.  
  37. ; set tcp send/recv buffer (for experts)
  38. #tcp_send_buffer_bytes=32768
  39. #tcp_recv_buffer_bytes=32768
  40.  
  41. ; security layer can be 'tls', 'rdp' or 'negotiate'
  42. ; for client compatible layer
  43. security_layer=tls
  44.  
  45. ; minimum security level allowed for client for classic RDP encryption
  46. ; use tls_ciphers to configure TLS encryption
  47. ; can be 'none', 'low', 'medium', 'high', 'fips'
  48. crypt_level=high
  49.  
  50. ; X.509 certificate and private key
  51. ; openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365
  52. ; note this needs the user xrdp to be a member of the ssl-cert group, do with e.g.
  53. ;$ sudo adduser xrdp ssl-cert
  54. certificate=/etc/xrdp/cert.pem
  55. key_file=/etc/xrdp/key.pem
  56.  
  57. ; set SSL protocols
  58. ; can be comma separated list of 'SSLv3', 'TLSv1', 'TLSv1.1', 'TLSv1.2', 'TLSv1.3'
  59. ssl_protocols=TLSv1.2, TLSv1.3
  60. ; set TLS cipher suites
  61. tls_ciphers=HIGH
  62.  
  63. ; Section name to use for automatic login if the client sends username
  64. ; and password. If empty, the domain name sent by the client is used.
  65. ; If empty and no domain name is given, the first suitable section in
  66. ; this file will be used.
  67. autorun=
  68.  
  69. allow_channels=true
  70. allow_multimon=true
  71. bitmap_cache=true
  72. bitmap_compression=true
  73. bulk_compression=true
  74. #hidelogwindow=true
  75. max_bpp=32
  76. new_cursors=true
  77. ; fastpath - can be 'input', 'output', 'both', 'none'
  78. use_fastpath=both
  79. ; when true, userid/password *must* be passed on cmd line
  80. #require_credentials=true
  81. ; You can set the PAM error text in a gateway setup (MAX 256 chars)
  82. #pamerrortxt=change your password according to policy at http://url
  83.  
  84. ;
  85. ; colors used by windows in RGB format
  86. ;
  87. blue=009cb5
  88. grey=dedede
  89. #black=000000
  90. #dark_grey=808080
  91. #blue=08246b
  92. #dark_blue=08246b
  93. #white=ffffff
  94. #red=ff0000
  95. #green=00ff00
  96. #background=626c72
  97.  
  98. ;
  99. ; configure login screen
  100. ;
  101.  
  102. ; Login Screen Window Title
  103. #ls_title=My Login Title
  104.  
  105. ; top level window background color in RGB format
  106. ls_top_window_bg_color=009cb5
  107.  
  108. ; width and height of login screen
  109. ls_width=350
  110. ls_height=430
  111.  
  112. ; login screen background color in RGB format
  113. ls_bg_color=dedede
  114.  
  115. ; optional background image filename (bmp format).
  116. #ls_background_image=
  117.  
  118. ; logo
  119. ; full path to bmp-file or file in shared folder
  120. ls_logo_filename=
  121. ls_logo_x_pos=55
  122. ls_logo_y_pos=50
  123.  
  124. ; for positioning labels such as username, password etc
  125. ls_label_x_pos=30
  126. ls_label_width=65
  127.  
  128. ; for positioning text and combo boxes next to above labels
  129. ls_input_x_pos=110
  130. ls_input_width=210
  131.  
  132. ; y pos for first label and combo box
  133. ls_input_y_pos=220
  134.  
  135. ; OK button
  136. ls_btn_ok_x_pos=142
  137. ls_btn_ok_y_pos=370
  138. ls_btn_ok_width=85
  139. ls_btn_ok_height=30
  140.  
  141. ; Cancel button
  142. ls_btn_cancel_x_pos=237
  143. ls_btn_cancel_y_pos=370
  144. ls_btn_cancel_width=85
  145. ls_btn_cancel_height=30
  146.  
  147. [Logging]
  148. LogFile=xrdp.log
  149. LogLevel=DEBUG
  150. EnableSyslog=true
  151. SyslogLevel=DEBUG
  152. ; LogLevel and SysLogLevel could by any of: core, error, warning, info or debug
  153.  
  154. [Channels]
  155. ; Channel names not listed here will be blocked by XRDP.
  156. ; You can block any channel by setting its value to false.
  157. ; IMPORTANT! All channels are not supported in all use
  158. ; cases even if you set all values to true.
  159. ; You can override these settings on each session type
  160. ; These settings are only used if allow_channels=true
  161. rdpdr=true
  162. rdpsnd=true
  163. drdynvc=true
  164. cliprdr=true
  165. rail=true
  166. xrdpvr=true
  167. tcutils=true
  168.  
  169. ; for debugging xrdp, in section xrdp1, change port=-1 to this:
  170. #port=/tmp/.xrdp/xrdp_display_10
  171.  
  172. ; for debugging xrdp, add following line to section xrdp1
  173. #chansrvport=/tmp/.xrdp/xrdp_chansrv_socket_7210
  174.  
  175.  
  176. ;
  177. ; Session types
  178. ;
  179.  
  180. ; Some session types such as Xorg, X11rdp and Xvnc start a display server.
  181. ; Startup command-line parameters for the display server are configured
  182. ; in sesman.ini. See and configure also sesman.ini.
  183. [Xorg]
  184. name=Xorg
  185. lib=libxup.so
  186. username=ask
  187. password=ask
  188. ip=127.0.0.1
  189. port=-1
  190. code=20
  191.  
  192. [Xvnc]
  193. name=Xvnc
  194. lib=libvnc.so
  195. username=ask
  196. password=ask
  197. ip=127.0.0.1
  198. port=-1
  199. #xserverbpp=24
  200. #delay_ms=2000
  201.  
  202. [vnc-any]
  203. name=vnc-any
  204. lib=libvnc.so
  205. ip=ask
  206. port=ask5900
  207. username=na
  208. password=ask
  209. #pamusername=asksame
  210. #pampassword=asksame
  211. #pamsessionmng=127.0.0.1
  212. #delay_ms=2000
  213.  
  214. [neutrinordp-any]
  215. name=neutrinordp-any
  216. lib=libxrdpneutrinordp.so
  217. ip=ask
  218. port=ask3389
  219. username=ask
  220. password=ask
  221.  
  222. ; You can override the common channel settings for each session type
  223. #channel.rdpdr=true
  224. #channel.rdpsnd=true
  225. #channel.drdynvc=true
  226. #channel.cliprdr=true
  227. #channel.rail=true
  228. #channel.xrdpvr=true
  229.  
Advertisement
Add Comment
Please, Sign In to add comment