Hi, after many tries I have run out of ideas of how to set up the relay server. My target is to use my raspberry pi which is currently not doing much to help the community.
So my problem is, that every time I start I get this output (both raspberry and my laptop looks the same although versions differ considerably). Here is output from my laptop:
[kajman@kajman-pc ~]$ syncthing-relaysrv -debug
2018/11/17 10:03:09 main.go:149: strelaysrv v0.14.52 (go1.11.2 linux-amd64) builduser@svetlemodry 2018-11-07 19:56:56 UTC
2018/11/17 10:03:09 main.go:155: Connection limit 838860
2018/11/17 10:03:09 main.go:194: ID: JTV3Z45-PMF5KW2-DRV4GXI-AFW3E55-YIVJWJR-ANSIXJG-7CT33TD-72NAMQT
2018/11/17 10:03:09 main.go:244: URI: relay://0.0.0.0:22067/?id=JTV3Z45-PMF5KW2-DRV4GXI-AFW3E55-YIVJWJR-ANSIXJG-7CT33TD-72NAMQT&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=0&statusAddr=:22070&providedBy=
2018/11/17 10:03:09 main.go:247: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2018/11/17 10:03:09 main.go:248: !! Joining default relay pools, this relay will be available for public use. !!
2018/11/17 10:03:09 main.go:249: !! Use the -pools="" command line option to make the relay private. !!
2018/11/17 10:03:09 main.go:250: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2018/11/17 10:03:09 pool.go:16: Joining https://relays.syncthing.net/endpoint
2018/11/17 10:03:10 pool.go:61: https://relays.syncthing.net/endpoint unknown response type from server 400
The problems I see are the adress being 0.0.0.0 and the response from server is always unknown error 400. I looked my ID up on https://relays.syncthing.net/endpoint but it’s not there.
Ok, I figured it out. I had some additional rules (open ports and some iptable custom rules) from my last try to make it work when the port forwarding was wrong.
I deleted all of them and now it connects right away and seems to work - I can see my relay on the https://relays.syncthing.net/ although no transfer yet.