A few questions about send only and receive only folders

Thanks for this info. I will do that.

I’m pretty sure I can still create app passwords, although I haven’t tried in a while. I’ll try that, then oAuth.

I have a VPN subscription for my computers. I bypass all ISP servers. I don’t use their DNS. I also have my own domain registered with email. I could probably point my local server there.

Healthchecks sounds worth looking into.

Do I use this verbatim, or do I need to put in my own PING_KEY for example?

I’m going to try and make this work only if I fail it’s not that big a deal as nothing I run is critical and I typically bring my servers up and down because they’re running on laptops that aren’t on all the time.

Thanks again for the help/advice.

It used to be that app passwords were available all of the time, but more recently, if 2FA isn’t enabled the app password option is disabled (last time I checked, only ~2% of Google account holders enable 2FA).

Technically, exiting out of a VPN proxy node would work, but one wrinkle might be SPF (not in reference to sunscreen :nerd_face:).

My server has a $PING_KEY environment variable, so you’ll need to do the same, or replace ${PING_KEY} with the actual access key that Healthchecks auto-generates for you, e.g.:

curl -o /dev/null https://hc-ping.com/ABCDEFGHIJKLMNOPQRSTUVWX/ups

Healthchecks’ Pinging API page is well worth checking out for more examples and tips because there are additional variations that might be useful including using a UUID instead of a ping key + slug (a “slug” in Healthchecks refers to the service label).

Many Syncthing users switched to Syncthing because they wanted to avoid depending on a 3rd-party cloud solution, which makes Healthchecks even more appealing because the platform is also open-source: https://github.com/healthchecks/healthchecks/

I also use Healthchecks to keep tabs on my automated backups. If a backup succeeds, it pings Healthchecks. My dad doesn’t use his computer every day, so I set a grace period – I get an email alert whenever there are three consecutive days of missed daily backups.

You’re welcome. :smiley:

I have 2FA enabled in gmail, and everywhere else they offer it. The bank that represents Amazon credit cards even though they are providing Amazon credit cards for logging in and making payments they do not offer even today two factor authentication and there are huge bank.

SPF is no problem if I use my personal mail hosting company. I have already learned how to edit my domain SPF settings.

Healthchecks looks daunting to me. It’s going to be a challenge.

It would be wonderful if I could find a program that would do nothing more than notify me by mail and have it be easy for average skilled users.

My VPN gives each of my pc’s a dedicated private IP address on a private encrypted tunnel. If a software program could send a message to that IP address it would be useful.

Healthchecks seems to talk a lot about monitoring cron jobs only I don’t have any. I’d have to learn what they are and how to use them too.

Getting an error in STC that can be found and reported to the notification app would also require that I learn how to automate STC to run at regular intervals.

This is a lot to swallow & digest.

It’s appalling how many big companies spend more on advertising than on improving security (2FA Directory is a great resource).

It’s a lot easier than it appears. Healthchecks offers a lot of flexibility so it’s like a multitool where half the widgets you’ve never seen before, at the end of the day you really only need to figure out how to use one or two of them.

With Healthchecks, you’re either pushing or pulling a small amount of data. The hardest part is deciding which method to use because Healthchecks supports so many options.

In the push/pull examples I shared earlier, I use cURL for the web requests because it’s been around for long enough to be ported to Linux, macOS, Windows, DOS, Android, iOS and at least 20 other platforms.

cURL also supports SMTP, so msmtp and Apprise aren’t necessary if all that’s needed is email notifications.

The funny thing is that sending email via SMTP is actually incredibly easy (it can be done in seconds with just telnet).

Desktop and web-based email interfaces such as Mozilla Thunderbird, Microsoft Outlook, Gmail, Yahoo Mail, etc. make it point-and-click easy, but the flip side is that automation isn’t so easy.

The example I gave earlier pipes the output from STC to Apprise for emailing:

stc | apprise 'mailto://examplemailserver.com?from=me@example.com&to=you@example.com'

Not only is it straight forward, it works as-is on the command-line on Linux, macOS and Windows, and it can also be used as-is in a variety of launcher apps. A program with a GUI often gets in the way of automation.

Now that is actually more complicated than it sounds. :smirk:

Assuming it’s a mesh VPN, or otherwise all of the devices are visible to each other on a private LAN, then the first tool that comes to mind is netcat.

Also of course, if any devices have a host-based firewall, the necessary adjustments will need to be made.

Healthchecks doesn’t actually monitor cron jobs. Instead, cron jobs are used to automate contacting Healthchecks on a schedule.

In Un*x, cron jobs are the counterpart to Windows Task Scheduler on Windows and Launcher on macOS.

Although you might not have any cron jobs for your user account on your PCs, a typical Linux system has a dozen or more that handle various scheduled tasks including updating a software catalog, clearing temp files, rotating logs, etc.

Although it’s easy to create a crontab by hand, there are plenty of GUI tools available. A couple of pointers:

That’s where cron fits in. :wink:

In the following example crontab, the output from stc is piped to apprise for emailing at 15-minute intervals (relative to midnight):

*/15	*	*	*	*	stc | apprise 'mailto://examplemailserver.com?from=me@example.com&to=you@example.com'

There’s no error checking so it’ll send emails 4 times per hour, all day long, and every day until the cron job is stopped. If you turn off your laptop, it’ll fire at the next scheduled time.

Fortunately there are a lot of great resources online. In keeping with the analogy, break it up into bite size pieces, go snack size first, then follow with an entire meal. :grinning:

Un*x/Linux tools tend to be small and single purpose rather than kitchen sink apps. It’s like combining Lego pieces to build any contraption one can think of.

Correct. Take small bites of new tech.

I will definitely try this.

Yes, it’s actually called “Meshnet” in the software. It’s free to use the Meshnet without the VPN. Each computer is assigned a private name and ip address only accessible by my other computers. say for example you work from home and so does one of your coworkers and you need access to a server that’s running at their house because your both working remotely from home. that person from their account can grant you access to one specific computer on their mesh net network. I’ve actually tested this with a friend of mine who uses the same software and it works well.

I can actually be away from home and synchronize with sync thing between my cell phone and my computers at home because they’re all on the same meshnet network. No need to use Global Discovery, or relay servers.

Getting back on topic.

netcat says it can transfer files from PC1 to PC2. Perhaps I can do it that way. Save the output to a file, and send it to my primary computer. Right now running STC manually with a batch file.

Turns out netcat is installed by default on my windows computer in the Linux subsystem for Windows. (Ubuntu Linux) And Linux Mint. So I might give that a try.

OK, now I’m beginning to understand. Considering I have access to both the ability to run Windows software and Linux software on my windows 11 computer I will consider that my primary machine which it really is that I will use to monitor the others.

Is this really part of the Linux command?

stc-amd64-windows.exe -homedir C:\Users\leo\AppData\Local\Syncthing

This gives me the status output for the server.

Perhaps that’s all I really need. A batch file that runs the above, and then perhaps use the Linux side of Windows to do the rest.

This is more of a learning exercise than a critical need.

Ubuntu linux runs well on Windows 11. it has its limitations in that I doubt I can use the Windows task scheduler to automate a Linux command for example. Cron is included with Windows Ubuntu so that’s where my journey takes me.

stc-amd64-windows.exe -homedir C:\Users\leow\AppData\Local\Syncthing errors

This command outputs only errors.

I have learning to do, but that’s life, right?

No, it’s just a sample crontab input that runs a job every 15 minutes.

Just need to decide what to do with the output. As the saying goes, sky’s the limit:

  • Email it using msmtp, Apprise, or even netcat. (If your wireless carrier offers an email-to-SMS gateway, it’s a simple way to get a text alert.)
  • Upload it to Healthchecks for redistribution.
  • Upload it to a private web server as part of a web-based dashboard.
  • Use netcat to relay it to netcat listening on another computer.
  • If your main system is reachable via SSH, could use Apprise to send a notification to Windows which would result in system tray popup.

If the SSH service is enabled in Ubuntu Linux, Windows Task Scheduler could issue remote commands.

Yes, unless there’s actually a valid Syncthing configuration at the path above, I’m not surprised it spits out an error.

Is the user leow a typo?

At least until we can simply upload directly into our brains, :grinning:

Thanks for this comment. After doing some checking this is exactly the behavior. We see the device as out of sync when we look at all devices on the UI of the master. We don’t know which folders are out of sync but we know SOMETHING is out of sync. If that persists we can either detect it automatically and alert or if browsing the UI we can note it and check the remote machine.

As I said before I think this is going to work well for us.

Thanks again.

Yup. This is next on my learning to-do list.

Thanks. It is, now. I will give it a try.

Actually, it’s supposed to say leow in the previous post. “leo” is the typo.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.