LabsIn production
Reaching a NAS without opening ports: tunnels and short-lived tokens
Our experiment in reaching large design files on an office NAS from anywhere, without opening ports and without routing the files through the cloud, and the architecture it led to.
C-SOFT Labs
Reaching a NAS without opening ports: tunnels and short-lived tokens
File bytes flow straight from the NAS to the browser; the cloud server only grants permission.
01Problem
In print and promotional products, files are large and live on a local NAS. Opening a NAS port to the internet for remote access invites constant attacks, while carrying files through a cloud server is slow and costly.
02Needs analysis
We tried keeping the control layer (sessions, permissions, audit, sharing) in AIP One while the bytes flow directly between the NAS and the browser. The browser only gets an encrypted token valid for a few minutes and bound to one action and one path.
03Technology built
A small dependency-free Node service on the NAS, Cloudflare Tunnel, which only makes outbound connections, and tokens sealed with AES-256-GCM.
04User experience
The experiment became a product and is in use: no port is opened on the NAS, uploads are resumable in chunks of up to 64 MiB with SHA-256 verification, PSD/AI/CDR files can be previewed and supplier shares are encrypted and time-limited. There is no version history or full-text search on the NAS, and backing up the NAS is a separate decision.
05Applicability to similar businesses
Monitoring the off-site backup of the NAS archive from the admin panel.
Where this experiment led
- Local and Cloud File ManagementFiles stay on your company NAS, open securely from anywhere, design files preview in the browser, and suppliers get password-protected, time-limited links.Solution
- Technology IndependenceKnowing where your data lives, who holds the code and what you pay for. For each of our products we state the hosting, ownership and cost model plainly.Solution
- AIP OneA management system that puts quotes, orders, production, procurement, accounting, people, files and communication on one record, built inside a real production company.Product