Command-line client for file transfer through Galene

Hi,

If you’re using Galene, you might be interested in galene-file-transfer, a command-line client for file transfer through Galene. I’ve put some binaries in my download directory.

In short, this replicates Galene’s file transfer functionality (click on a user, then choose “send file”) in a command-line client. This is useful in order to transfer large files (more than a couple GB) or where a web browser is not available.

The transfer is peer-to-peer and encrypted end-to-end (the server is only used for NAT traversal and exchanging cryptographic keys), but the server may trivially mount an MiTM attack; therefore, you should preferably use a server that you host yourself.

2 Likes

I am testing galene-file-transfer and I get
Connect to server: websocket: bad handshake.

The transfer seems to work when I send it to the demo server:
./galene-file-transfer -to jch https://galene.org:8443/group/public/ /path/to/some/file

@ericg I’ve just added support for older versions of Galene. Could you please update (git pull) and try again?

After updating the binary, I still have the same error.

Can you give me access to your server? A 24-hour token will be fine. I’m jch@irif.fr.

Here we go, this is a 2 days token
https://visio.ericandmarie.fr/group/public/?token=XWynnAXRvb8

Please add

    "proxyURL": "https://visio.ericandmarie.fr"

to your data/config.json file.

Explanation: you’re running Galene behind a reverse proxy that terminates TLS. Galene is not aware that its actually being accessed over TLS, so it announces the WebSocket endpoint as not using TLS. The command-line client (correctly) attempts to connect using an insecure connection, which of course fails. I have no idea why the browser succeeds, probably magic. (Browsers do a lot of magic.)

You can check Galene’s idea of the WebSocket endpoint at https://visio.ericandmarie.fr/group/public/.status.json. The "endpoint" entry should specify a URL in wss:, not ws:.

(Feel free to revoke the token, by the way.)

@jch thanks for taking the time to look after my issue. galene-file-transfer is now working properly.

1 Like