How to setup a private relaysrv?

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:

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… :wink:

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.

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’…).

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

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://