Skip to content

Instantly share code, notes, and snippets.

@rhiroyuki
Last active July 3, 2022 20:26
Show Gist options
  • Save rhiroyuki/8eaa6c3ed9804cdbeb2bf51f5d5e07dd to your computer and use it in GitHub Desktop.
Save rhiroyuki/8eaa6c3ed9804cdbeb2bf51f5d5e07dd to your computer and use it in GitHub Desktop.
Barrier 2.4 setup

Barrier 2.4 setup

Must generate certificates for both server and client.

Generating the certificate

debauchee/barrier#231 (comment)

Generating the fingerprint

https://wiki.archlinux.org/title/Barrier#Set_up_encryption_on_server

The fingerprint will be placed at Local.txt. It needs to have the format as specified in the wiki "v2:sha256:#{fingerprint}"

When setting up the client, the client's fingerprint needs to be copied over to the server "TrustedClients.txt". When setting up the server, the server's fingerprint needs to be copied over to the client "TrustedServers.txt".

Windows

X:/Users/#{USER}/AppData/Local/Barrier/SSL/Fingerprints/TrustedClients.txt X:/Users/#{USER}/AppData/Local/Barrier/SSL/Fingerprints/TrustedServers.txt X:/Users/#{USER}/AppData/Local/Barrier/SSL/Fingerprints/Local.txt

Linux

~/.local/share/barrier/SSL/Fingerprints/TrustedClients.txt ~/.local/share/barrier/SSL/Fingerprints/TrustedServers.txt ~/.local/share/barrier/SSL/Fingerprints/Local.txt

Screen name must be the same as the client's hostname

Firewall should allow connections in Windows

https://github.com/debauchee/barrier/wiki/Adding-Barrier-to-the-Windows-Firewall

Connecting client to server

barrierc -f #{ip_or_server_hostname}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment