[GH-ISSUE #945] Server refused client with name "RONI-PC" #754

Closed
opened 2026-05-05 07:02:07 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Lonttu on GitHub (Nov 12, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/945

Operating systems:
Windows 10 20H2 build 19042.630 64-bit
Linux Peppermint 10 32-bit

Barrier version:
On windows machine: 2.3.3-release-3395cca9
On Linux machine: 2.3.3-release-bbd1accb

Steps to reproduce problem:

  1. Go to https://github.com/debauchee/barrier/wiki to Download and install the Windows binary.
  2. Download and install the barrier snap package.
  3. Set the machines up as a client and a server, which one is server and client seems to be irrelevant.
  4. Start barrier
  5. Observe errors in the barrier > Show Log

On the client (when on Windows):

[2020-11-12T19:23:25] INFO: starting client [2020-11-12T19:23:25] INFO: config file: C:/Users/Roni/AppData/Local/Temp/Barrier.WcEGaC [2020-11-12T19:23:25] INFO: log level: INFO [2020-11-12T19:23:25] INFO: service command updated [2020-11-12T19:23:25] INFO: starting new process as privileged user [2020-11-12T19:23:26] INFO: drag and drop enabled [2020-11-12T19:23:26] ERROR: failed to get desktop path, no drop target available, error=2 [2020-11-12T19:23:26] NOTE: started client [2020-11-12T19:23:26] NOTE: connecting to '192.168.1.10': 192.168.1.10:24800 [2020-11-12T19:23:26] INFO: OpenSSL 1.0.2l 25 May 2017 server status: active [2020-11-12T19:23:26] NOTE: server fingerprint: 63:D8:12:C7:04:1D:6D:79:6D:27:AC:62:C4:7F:22:C5:A5:5D:33:24 [2020-11-12T19:23:26] NOTE: trustedServersFilename: C:\Users\Roni\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:23:26] NOTE: Opened trustedServersFilename: C:\Users\Roni\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:23:26] NOTE: Fingerprint matches trusted fingerprint [2020-11-12T19:23:26] INFO: connected to secure socket [2020-11-12T19:23:26] INFO: server ssl certificate info: /CN=Barrier [2020-11-12T19:23:26] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:23:26] ERROR: server refused client with name "RONI-PC" [2020-11-12T19:23:26] WARNING: failed to connect to server: server refused client with our name

On the client (when on Linux):

[2020-11-12T19:29:51] INFO: starting client [2020-11-12T19:29:51] INFO: config file: /tmp/Barrier.Sm2437 [2020-11-12T19:29:51] INFO: log level: INFO [2020-11-12T19:29:52] NOTE: started client [2020-11-12T19:29:52] NOTE: connecting to '192.168.1.103': 192.168.1.103:24800 [2020-11-12T19:29:52] INFO: OpenSSL 1.1.1 11 Sep 2018 [2020-11-12T19:29:52] NOTE: server fingerprint: FD:3C:53:32:34:0A:F1:8A:06:BB:33:D0:ED:26:38:B3:79:72:98:21 [2020-11-12T19:29:52] NOTE: trustedServersFilename: /home/roni/snap/barrier/383/.local/share/barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:29:52] NOTE: Opened trustedServersFilename: /home/roni/snap/barrier/383/.local/share/barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:29:52] NOTE: Fingerprint matches trusted fingerprint [2020-11-12T19:29:52] INFO: connected to secure socket [2020-11-12T19:29:52] INFO: server ssl certificate info: /CN=Barrier [2020-11-12T19:29:52] INFO: AES256-GCM-SHA384 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:29:52] ERROR: server refused client with name "roni-laptop" [2020-11-12T19:29:52] WARNING: failed to connect to server: server refused client with our name

On the server (when on Windows):

[2020-11-12T19:29:35] INFO: starting server [2020-11-12T19:29:35] INFO: config file: C:/Users/Roni/AppData/Local/Temp/Barrier.nBBuRS [2020-11-12T19:29:35] INFO: log level: INFO [2020-11-12T19:29:35] INFO: service command updated [2020-11-12T19:29:35] INFO: starting new process as privileged user [2020-11-12T19:29:35] INFO: drag and drop enabled [2020-11-12T19:29:35] ERROR: failed to get desktop path, no drop target available, error=2 started server (IPv4/IPv6), waiting for clients server status: active [2020-11-12T19:29:52] INFO: OpenSSL 1.0.2l 25 May 2017 [2020-11-12T19:29:52] INFO: accepted secure socket [2020-11-12T19:29:52] INFO: AES256-GCM-SHA384 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:29:52] NOTE: accepted client connection [2020-11-12T19:29:52] WARNING: unrecognised client name "roni-laptop", check server config [2020-11-12T19:29:52] NOTE: disconnecting client "roni-laptop" [2020-11-12T19:29:52] NOTE: client "roni-laptop" has disconnected

On the server (when on Linux):

[2020-11-12T19:23:21] INFO: starting server [2020-11-12T19:23:21] INFO: config file: /tmp/Barrier.nt2437 [2020-11-12T19:23:21] INFO: log level: INFO started server (IPv4/IPv6), waiting for clients [2020-11-12T19:23:26] INFO: OpenSSL 1.1.1 11 Sep 2018 [2020-11-12T19:23:26] INFO: accepted secure socket [2020-11-12T19:23:26] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:23:26] NOTE: accepted client connection [2020-11-12T19:23:26] NOTE: disconnecting client "RONI-PC" [2020-11-12T19:23:26] NOTE: client "RONI-PC" has disconnected [2020-11-12T19:23:26] WARNING: unrecognised client name "RONI-PC", check server config

Other info

  • The problem started after a fresh install on both machines.
  • So far i've found no workaround, only that the same happens when both machines use windows.
  • The bug prevents me from using the software.
  • I tried running with firewall off and SSL turned off, problem persisted.
Originally created by @Lonttu on GitHub (Nov 12, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/945 **Operating systems:** Windows 10 20H2 build 19042.630 64-bit Linux Peppermint 10 32-bit **Barrier version:** On windows machine: 2.3.3-release-3395cca9 On Linux machine: 2.3.3-release-bbd1accb **Steps to reproduce problem:** 1. Go to https://github.com/debauchee/barrier/wiki to Download and install the Windows binary. 2. Download and install the barrier snap package. 3. Set the machines up as a client and a server, which one is server and client seems to be irrelevant. 4. Start barrier 5. Observe errors in the barrier > Show Log On the client (when on Windows): `[2020-11-12T19:23:25] INFO: starting client [2020-11-12T19:23:25] INFO: config file: C:/Users/Roni/AppData/Local/Temp/Barrier.WcEGaC [2020-11-12T19:23:25] INFO: log level: INFO [2020-11-12T19:23:25] INFO: service command updated [2020-11-12T19:23:25] INFO: starting new process as privileged user [2020-11-12T19:23:26] INFO: drag and drop enabled [2020-11-12T19:23:26] ERROR: failed to get desktop path, no drop target available, error=2 [2020-11-12T19:23:26] NOTE: started client [2020-11-12T19:23:26] NOTE: connecting to '192.168.1.10': 192.168.1.10:24800 [2020-11-12T19:23:26] INFO: OpenSSL 1.0.2l 25 May 2017 server status: active [2020-11-12T19:23:26] NOTE: server fingerprint: 63:D8:12:C7:04:1D:6D:79:6D:27:AC:62:C4:7F:22:C5:A5:5D:33:24 [2020-11-12T19:23:26] NOTE: trustedServersFilename: C:\Users\Roni\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:23:26] NOTE: Opened trustedServersFilename: C:\Users\Roni\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:23:26] NOTE: Fingerprint matches trusted fingerprint [2020-11-12T19:23:26] INFO: connected to secure socket [2020-11-12T19:23:26] INFO: server ssl certificate info: /CN=Barrier [2020-11-12T19:23:26] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:23:26] ERROR: server refused client with name "RONI-PC" [2020-11-12T19:23:26] WARNING: failed to connect to server: server refused client with our name` On the client (when on Linux): `[2020-11-12T19:29:51] INFO: starting client [2020-11-12T19:29:51] INFO: config file: /tmp/Barrier.Sm2437 [2020-11-12T19:29:51] INFO: log level: INFO [2020-11-12T19:29:52] NOTE: started client [2020-11-12T19:29:52] NOTE: connecting to '192.168.1.103': 192.168.1.103:24800 [2020-11-12T19:29:52] INFO: OpenSSL 1.1.1 11 Sep 2018 [2020-11-12T19:29:52] NOTE: server fingerprint: FD:3C:53:32:34:0A:F1:8A:06:BB:33:D0:ED:26:38:B3:79:72:98:21 [2020-11-12T19:29:52] NOTE: trustedServersFilename: /home/roni/snap/barrier/383/.local/share/barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:29:52] NOTE: Opened trustedServersFilename: /home/roni/snap/barrier/383/.local/share/barrier/SSL/Fingerprints/TrustedServers.txt [2020-11-12T19:29:52] NOTE: Fingerprint matches trusted fingerprint [2020-11-12T19:29:52] INFO: connected to secure socket [2020-11-12T19:29:52] INFO: server ssl certificate info: /CN=Barrier [2020-11-12T19:29:52] INFO: AES256-GCM-SHA384 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:29:52] ERROR: server refused client with name "roni-laptop" [2020-11-12T19:29:52] WARNING: failed to connect to server: server refused client with our name ` On the server (when on Windows): `[2020-11-12T19:29:35] INFO: starting server [2020-11-12T19:29:35] INFO: config file: C:/Users/Roni/AppData/Local/Temp/Barrier.nBBuRS [2020-11-12T19:29:35] INFO: log level: INFO [2020-11-12T19:29:35] INFO: service command updated [2020-11-12T19:29:35] INFO: starting new process as privileged user [2020-11-12T19:29:35] INFO: drag and drop enabled [2020-11-12T19:29:35] ERROR: failed to get desktop path, no drop target available, error=2 started server (IPv4/IPv6), waiting for clients server status: active [2020-11-12T19:29:52] INFO: OpenSSL 1.0.2l 25 May 2017 [2020-11-12T19:29:52] INFO: accepted secure socket [2020-11-12T19:29:52] INFO: AES256-GCM-SHA384 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:29:52] NOTE: accepted client connection [2020-11-12T19:29:52] WARNING: unrecognised client name "roni-laptop", check server config [2020-11-12T19:29:52] NOTE: disconnecting client "roni-laptop" [2020-11-12T19:29:52] NOTE: client "roni-laptop" has disconnected` On the server (when on Linux): `[2020-11-12T19:23:21] INFO: starting server [2020-11-12T19:23:21] INFO: config file: /tmp/Barrier.nt2437 [2020-11-12T19:23:21] INFO: log level: INFO started server (IPv4/IPv6), waiting for clients [2020-11-12T19:23:26] INFO: OpenSSL 1.1.1 11 Sep 2018 [2020-11-12T19:23:26] INFO: accepted secure socket [2020-11-12T19:23:26] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD [2020-11-12T19:23:26] NOTE: accepted client connection [2020-11-12T19:23:26] NOTE: disconnecting client "RONI-PC" [2020-11-12T19:23:26] NOTE: client "RONI-PC" has disconnected [2020-11-12T19:23:26] WARNING: unrecognised client name "RONI-PC", check server config ` **Other info** - The problem started after a fresh install on both machines. - So far i've found no workaround, only that the same happens when both machines use windows. - The bug prevents me from using the software. - I tried running with firewall off and SSL turned off, problem persisted.
Author
Owner

@Ds886 commented on GitHub (Nov 12, 2020):

Make sure the alias is properly fitting what the client tell

for example on the server as linux it says
WARNING: unrecognised client name "roni-laptop", check server config [2020-11-12T19:29:52] NOTE: disconnecting client "roni-laptop"

so adding an alias on the server to the client "roni-laptop" should remove this limitation

Check connectivty.
you can easily check it on windows using the powershell command
tnc -port

or on Linux using:
telnet , (not sure about the syntax)

check ports are forwarded properly.
On windows Windows Firewall will block by default most ports from outside to inside.

<!-- gh-comment-id:726309679 --> @Ds886 commented on GitHub (Nov 12, 2020): Make sure the alias is properly fitting what the client tell for example on the server as linux it says WARNING: unrecognised client name "roni-laptop", check server config [2020-11-12T19:29:52] NOTE: disconnecting client "roni-laptop" so adding an alias on the server to the client "roni-laptop" should remove this limitation Check connectivty. you can easily check it on windows using the powershell command tnc <IP> -port <portnumber> or on Linux using: telnet <IP>, <port>(not sure about the syntax) check ports are forwarded properly. On windows Windows Firewall will block by default most ports from outside to inside.
Author
Owner

@Lonttu commented on GitHub (Nov 12, 2020):

Well, this is embarrassing and awkward and everything horrible, because i just realized it was not a bug. Turns out there was a menu i wasn't aware of existing, terribly sorry for wasting your time.

Annotation 2020-11-12 222728

<!-- gh-comment-id:726323671 --> @Lonttu commented on GitHub (Nov 12, 2020): Well, this is embarrassing and awkward and everything horrible, because i just realized it was not a bug. Turns out there was a menu i wasn't aware of existing, terribly sorry for wasting your time. ![Annotation 2020-11-12 222728](https://user-images.githubusercontent.com/69455665/98992786-43bf3c00-2536-11eb-850d-49edce711e5b.png)
Author
Owner

@alexyao2015 commented on GitHub (Nov 20, 2020):

Should mention that after adding the screen name, you must reload Barrier if it has already been started.

<!-- gh-comment-id:731443926 --> @alexyao2015 commented on GitHub (Nov 20, 2020): Should mention that after adding the screen name, you must reload Barrier if it has already been started.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#754
No description provided.