Feature request: optional trusted-network policy for automatic SMB mounting
First, thanks for SMBMounter! It is a useful, lightweight way to keep a NAS share mounted.
Would you consider an optional per-share Trusted networks setting for auto-mount and reconnect? With a private-IP SMB host, a different network can reuse the same address and have something answering on port 445. Reachability alone does not establish that it is the intended NAS. An automatic authentication attempt could disclose a username and expose authentication material to an impersonating server; this is not a claim that SMB normally sends a plaintext password over the network.
A possible design is an explicit IPv4 CIDR allowlist, checking the connection's local source/interface against the host-matching CIDR and rechecking just before mounting. Missing or invalid configured policy could pause auto-mount with a clear status message. An opt-in setting could preserve existing behavior for users who do not configure it.
I have tried a small local adaptation against V.1.6 using a pure policy evaluator and a final pre-mount check. CIDR/interface checks are only an additional guard: another LAN can mimic the same subnet, so this would not replace server authentication or provide a cryptographic home-network identity.
This is a feature suggestion, not a request for a new background service. Thanks for considering it!
Hi ispaydeu Thank you for your request. I will implement a IPv4 CIDR allowlist in the next update. :-) Kevin