Reolink Cams not working with FTP Server in Scale

To clarify a bit further, the ftp client used by reolink apparently breaks if the FTP login banner contains a newline character. I know I shouldn’t be surprised at bugs in that particular space, but :grimacing:

2 Likes

Jon Postel, rolling in his grave. If only we could harvest the energy from his spinning.

To clarify: this is a rather egregious bug in reolink software and should be reported to the vendor.

1 Like

Oh I wasn’t disagreeing. They should be liberal in what they accept. If a newline trips them it’s hard not to be worried about the software in other ways.

Userauth banner?

DisplayLogin in proftpd.conf file.

http://www.proftpd.org/docs/howto/DisplayFiles.html

1 Like

Wow, never could have guessed.

As a workaround, I’ve put in an init script that removes the MOTD banner until the update hits:

sed -i 's/\/etc\/proftpd\/proftpd.motd/off/g' /etc/proftpd/proftpd.conf

Reolink cams now authenticate successfully. Thanks so much.

2 Likes

Why not this instead?
echo “Welcome to TrueNAS FTP Server” > /etc/proftpd/proftpd.motd

Worked for me!

2 Likes

Has anyone reported this to Reolink?

Yes, I did. They acknowledged it and reported it to “Senior Engineering”.

I tried this but still have problems with the cameras. Any other ideas you can think to try? I see the “Welcome to TrueNAS FTP” message when logging in via FileZilla for example, so I know that the banner has been updated.

So there are really really no new lines in the message?
Did you restart your cameras? Some of my Cams needed a reboot because the ftp client was broken beyond repair.
If this does not help you could try to reset the config and start from scratch.

I was on an old version of the Reolink client. It’s working now on iOS v4.51.1. However, my macOS app is still not working (v8.17.8). That’s ok for now, my FTP settings are working and my videos are recording again.