Syncthing on Qubes

My question is simple, I want to sync files between a qube and my Android device. How can I set up Syncthing securely? I just want Local Discovery. NAT Traversal, Global Discovery and Relaying will be disabled. Can someone help? Thank you.

1 Like

This can be achieved by setting the IP address of your android phone in the device on the qube, there won’t be any need for discovery as the remote address is known.

The android device will be able to connect back then.

Works fine for me © :slight_smile:

1 Like

Have you looked at the community guides @helplease ?

1 Like

Unfortunately first guide is… more like leaflet that don’t give you answer. At least for LAN/Internet syncthing.
It’s “you install syncthing on phone, install syncthing in qube and it works” - no it’s not.
For now “global discovery” only works.
My network is router->switch->lan qube os laptop and router->wifi phone.
Local discovery works on macbook, works on win pc but not on qube os laptop.
On some older topics floats some scripts to open ports but they don’t work - makes errors.
If I set static IP to phone and without internet connection then local discovery don’t work. Don’t have WAN connection to router now to test with internet.

1 Like

if you don’t want local discovery and faster speed, you need the non qubes os client to have a static ip, and set that static ip into the remote within syncthing running in qubes

1 Like

Oh, but I want local discovery only which doesn’t work.

1 Like

this does not work as the local network of a qube is by default sys-firewall

You may want to run a local relay on your LAN, it would work.

1 Like

Is sharing files through local network is more secure (not talking about privacy) than through internet?

I use OpenWrt router and I checked box about isolating clients/preventing client-to-client communication, because my LAN may have some not so secure devices.

I believe I wouldn’t be able to use Syncthing with such setup. Is it actually dangerous to allow devices to communicate through LAN? Maybe there is some measures available to limit potential risks? I need only to be able to share files and nothing more.