vmalep
(Pierre van Male)
April 13, 2016, 7:25pm
1
Hi,
I just spent my evening trying to understand the Doc page on Relaying, but to no avail…
I do not understand what kind of parameter is expected in the pool argument. The Doc just says:
The relay will join the global relay pool, unless a -pools=“” argument is given.
I do not understand how to configure the client to connect to the Relay server…
Looking over internet, I found this:
https://www.reddit.com/r/Syncthing/comments/3s7a70/need_a_tutorial_beginner_and_advanced_on_running/
So, I am not the only one…
And yet, looking in this forum, there are plenty of post about more advanced settings, meaning that there are plenty of genius among you who did managed to have relaysrv running…
Thanks in advance for your support then!
Pierre
If you leave it at the default value, the relay will join the public pool and anyone using syncthing will be allowed to use it.
If you don’t want that to happen, specify -pool="", in order for it not to join any pool.
vmalep
(Pierre van Male)
April 13, 2016, 7:30pm
3
ok! So I have to leave the “” empty? Just -pool=""
, not -pool="something"
!
I guess it was too simple…
Well… I get this error message: flag provided but not defined: -pool
-> It is -pools="" (with a ‘s’…).
vmalep
(Pierre van Male)
April 13, 2016, 9:01pm
4
And for the client, the settings is in “Settings/Relay Servers”… (Sorry, I was tired I guess).
I will test it tomorrow from a computer accessing the internet from a VPN…
BR
Pierre
vmalep
(Pierre van Male)
April 14, 2016, 5:04pm
5
Hi! Me again…
Still does not work.
This is the content of the init file on my relay server:
description "running Relay server for SyncThing"
start on filesystem
stop on runlevel S
env STNORESTART=yes
env HOME=/home/syncthing
setuid "syncthing"
setgid "syncthing"
exec relaysrv -global-rate 104857600 -pools="" -per-session-rate 1048576 -ping-interval 45s -keys /opt/syncthing-relay -listen 37.139.31.198:22222 -ext-address ":443" -provided-by "Viewers like you!" -debug
respawn
Output of the ufw status command, still on the server:
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
1194/udp ALLOW Anywhere
22/tcp ALLOW Anywhere
22222 ALLOW Anywhere
22070/tcp ALLOW Anywhere
655 ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)
1194/udp (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
22222 (v6) ALLOW Anywhere (v6)
22070/tcp (v6) ALLOW Anywhere (v6)
655 (v6) ALLOW Anywhere (v6)
My Syncthing node settings for the relay:
<relayServer>dynamic+https://[IP address]</relayServer>
… And Relays in This Device remains 0/1 (in red)…
Suggestions?
The all fuss about this is that I have a device inside a VPN with access to the internet limited to some ports and obviously not the ones for Syncthing
dynamic+https is used for the pool, your relay address I believe is printed as it starts, and starts with relay://