coder / wush

simplest & fastest way to transfer files between computers via WireGuard
Creative Commons Zero v1.0 Universal
658 stars 15 forks source link

Stuck at Bringing WireGuard up #25

Open SerJaimeLannister opened 1 week ago

SerJaimeLannister commented 1 week ago

Hello I was thinking of creating a multi platform application on wush (just thinking , I liked magic wormhole but its golang library was a bit rough and I really liked golang and like your project's approach) On offtopic I was the author to (https://news.ycombinator.com/item?id=38876954) so I have had a keen interest in this space

Since wush uses wireguard and wireguard needs root access , I found that there is this wireguard compliant non root alternative called wiretap (https://github.com/sandialabs/wiretap)which could allow the server to run rootlessly and also wireproxy (https://github.com/pufferffish/wireproxy) which could connect to clients rootlessly (or maybe wiretap can do that as well)

Anyhow adding this support could be really interesting I did somewhere hear that tailscale can be configured in a non rootless device as when I was looking at wireproxy and the likes. some people said that something like this could work directly in headscale , so please look into that as well..

I hope that you could look into these matters.

coadler commented 1 week ago

Hey! wush doesn't actually require root. We use wireguard-go, which is entirely user space. The part of Taiscale requires root is the TUN device, which we don't currently implement.

SerJaimeLannister commented 1 week ago

I am not exactly sure. First of all your script requires root to run (maybe to put it in bin path on linux) but then I just went to the releases page and no worries I installed it and added to a non root vps (which is behind a nat)

and then I did ./wush serve and it gave me an auth key and when I tried to add a random file to , using wush cp if I remember correctly (Edit: edited the errors into comment below for better clarity)

SerJaimeLannister commented 1 week ago

then it just said bringing wireguard up on my device from which I was trying to send file from as a trial (it has root access)

On my non rooted device behind nat on which I ran wush serve Use this key to authenticate other wush commands to this instance. WireGuard is ready SSH server enabled File transfer server enabled 15:11:34 Received connection request over DERP from example@test

and on my device it showed (I have changed some data since I was not sure if that has personal information or not but still)

On my rooted device from which I was trying to send file it showed

wush cp random.file Auth information:

Server overlay STUN address: XYZ Server overlay DERP home: XYZ Server overlay public key: [XYZ] Server overlay auth key: [XYZ] Bringing WireGuard up..

and then it just keeps on loading (> 5 -10 minutes) and it doesn't show up any errors but its clearly not working)