I'll soon travel to Australia for weeks, and I want to continue publishing content. How do I access it securely from there without exposing my home network and compromising my privacy?I'll soon travel to Australia for weeks, and I want to continue publishing content. How do I access it securely from there without exposing my home network and compromising my privacy?

How I Access My Home NAS from Anywhere (Without Doxxing My IP) Using Cloudflare Tunnel

2025/12/04 14:03

I decided to stop using Twitter, but for my own content and supporting Ukraine against its barbarian invaders, I understood the contemporary media landscape was quite fragmented. I bet on Mastodon, Bluesky, and LinkedIn. My flow is the following: when I read a piece I find interesting, I schedule it for publication. The problem is that every social media platform has a different scheduler: Mastodon has the Mastodon scheduler, LinkedIn has an in-built feature, and Bluesky has… nothing. I had enough.

Hence, I started building an application to schedule posts across multiple social media platforms. Details are irrelevant to this post. Suffice to say, modules are running in a Docker container on my Synology NAS at home. It's a .local name to access when I'm at home. However, I'll soon travel to Australia for weeks, and I want to continue publishing content. The question then arose: how do I access it securely from there without exposing my home network and compromising my privacy?

The problem

I have already written a full-fledged post on the privacy problems caused by subdomains. Here's a summary:

  • Port forwarding exposes your home IP address
  • Dynamic DNS requires constant updates
  • Opening ports is a security risk
  • SSL certificates are a hassle to manage

I wanted a solution that would:

  • Keep my home network secure
  • Provide HTTPS automatically
  • Add authentication
  • Be simple to maintain

Enter Cloudflare Tunnel

Cloudflare Tunnel creates a secure outbound connection from your network to Cloudflare's infrastructure. Requests to your domain are routed through this tunnel to your application. No inbound ports are needed!

The flow is straightforward:

InternetCloudflare EdgeTunnelNASApplication

All connections are outbound from your NAS, so your firewall stays untouched.

Setting up the Tunnel

The documentation is pretty good, but here are the steps.

Prerequisites

I already had:

  • A domain managed by Cloudflare
  • The Docker service running on my NAS
  • My application running as a Docker container

Create a Named tunnel

In the Cloudflare Zero Trust dashboard:

  1. Navigate to Access > Tunnels
  2. Click Create a tunnel
  3. Choose Cloudflared
  4. Name it however you want, e.g., nas
  5. Copy the tunnel token - you'll need it shortly

This token authenticates your tunnel to Cloudflare.

Run cloudflared on the NAS

Pull the official Docker image: \n

docker pull cloudflare/cloudflared:2025.9.1

Then, create a container via the Synology Docker UI with these settings:

  • Container name: cloudflared
  • Command: tunnel --no-autoupdate run
  • Environment variable: TUNNEL_TOKEN=<your-token-here>
  • Network: the same network as the one your application is bound to, e.g., bridge

The critical part here is the network. The cloudflared container and the application must be on the same network.

Create a link from the cloudflared container to the application container:

  • Link container: name of the container you want to link to, e.g., myapp
  • Alias: name under which you will access it from cloudflared. Do yourself a favour, use the same name.

It allows cloudflared to reach the application at http://myapp:<PORT> without needing to expose any ports.

Configure the public hostname

Back in the Cloudflare dashboard, in the tunnel configuration:

  1. Go to the Public Hostname tab
  2. Click Add a public hostname
  3. Configure your subdomain, the domain, and the service path, e.g., http://myapp:<PORT>

Note that the hostname here must match exactly what you configured in the Docker link. If you misconfigured (I did), look at the logs: \n

dial tcp: lookup wrongname on 192.168.1.254:53: no such host

Adding Authentication

At this point, anyone with the URL can access the application. It might be an option, but it's not in my context.

I considered creating my own authentication mechanism, but ultimately decided against it. Cloudflare provides everything needed with only configuration - no code changes required.

Cloudflare Access supports multiple identity providers:

  • One-time PIN via email
  • GitHub
  • Google
  • Azure AD
  • Okta
  • etc.

To add the One-time PIN login method:

  1. Navigate to Access > Applications
  2. Click Add an application > Self-hosted
  3. Configure the application with the application name, domain, and subdomain
  4. Click Next
  5. Create a policy:
  • Policy name: "Allow myself"
  • Action: Allow
  1. Configure rules:
  • Click + Add include
  • Selector: Emails
  • Value: john@doe.it
  1. Click Next, then Add application

Do not forget to add the policy to the tunnel. I initially hadn't linked it properly, and wondered why Cloudflare wasn't sending me an email.

Cloudflare policies are extremely powerful. Have a look.

Result

Now, when I visit my application from the outside:

  1. Cloudflare displays an authentication page
  2. I fill in my email
  3. Cloudflare sends a one-time code
  4. I authenticate
  5. Cloudflare proxies requests through the tunnel
  6. The application receives the request.

I can schedule posts from anywhere!

Conclusion

Cloudflare Tunnel is an elegant solution for self-hosting. The setup took about 30 minutes, most of which I spent troubleshooting my own mistakes with container names and policy assignments.

For personal projects running from home, it's hard to beat: no cost, automatic HTTPS, built-in authentication, and zero network exposure. I hope the above setup proves useful to others who encounter the same problem.

To go further:

  • Cloudflare Tunnel for Home Assistant
  • Cloudflare Access controls
  • Cloudflare Policies
  • I finally understand Cloudflare Zero Trust tunnels

\

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Shocking OpenVPP Partnership Claim Draws Urgent Scrutiny

Shocking OpenVPP Partnership Claim Draws Urgent Scrutiny

The post Shocking OpenVPP Partnership Claim Draws Urgent Scrutiny appeared on BitcoinEthereumNews.com. The cryptocurrency world is buzzing with a recent controversy surrounding a bold OpenVPP partnership claim. This week, OpenVPP (OVPP) announced what it presented as a significant collaboration with the U.S. government in the innovative field of energy tokenization. However, this claim quickly drew the sharp eye of on-chain analyst ZachXBT, who highlighted a swift and official rebuttal that has sent ripples through the digital asset community. What Sparked the OpenVPP Partnership Claim Controversy? The core of the issue revolves around OpenVPP’s assertion of a U.S. government partnership. This kind of collaboration would typically be a monumental endorsement for any private cryptocurrency project, especially given the current regulatory climate. Such a partnership could signify a new era of mainstream adoption and legitimacy for energy tokenization initiatives. OpenVPP initially claimed cooperation with the U.S. government. This alleged partnership was said to be in the domain of energy tokenization. The announcement generated considerable interest and discussion online. ZachXBT, known for his diligent on-chain investigations, was quick to flag the development. He brought attention to the fact that U.S. Securities and Exchange Commission (SEC) Commissioner Hester Peirce had directly addressed the OpenVPP partnership claim. Her response, delivered within hours, was unequivocal and starkly contradicted OpenVPP’s narrative. How Did Regulatory Authorities Respond to the OpenVPP Partnership Claim? Commissioner Hester Peirce’s statement was a crucial turning point in this unfolding story. She clearly stated that the SEC, as an agency, does not engage in partnerships with private cryptocurrency projects. This response effectively dismantled the credibility of OpenVPP’s initial announcement regarding their supposed government collaboration. Peirce’s swift clarification underscores a fundamental principle of regulatory bodies: maintaining impartiality and avoiding endorsements of private entities. Her statement serves as a vital reminder to the crypto community about the official stance of government agencies concerning private ventures. Moreover, ZachXBT’s analysis…
Share
BitcoinEthereumNews2025/09/18 02:13
Tom Lee Predicts Major Bitcoin Adoption Surge

Tom Lee Predicts Major Bitcoin Adoption Surge

The post Tom Lee Predicts Major Bitcoin Adoption Surge appeared on BitcoinEthereumNews.com. Key Points: Tom Lee suggests significant future Bitcoin adoption. Potential 200x increase in Bitcoin adoption forecast. Ethereum positioned as key settlement layer for tokenization. Tom Lee, co-founder of Fundstrat Global Advisors, predicted at Binance Blockchain Week that Bitcoin adoption could surge 200-fold amid shifts in institutional and retirement capital allocations. This outlook suggests a potential major restructuring of financial ecosystems, boosting Bitcoin and Ethereum as core assets, with tokenization poised to reshape markets significantly. Tom Lee Projects 200x Bitcoin Adoption Increase Tom Lee, known for his bullish stance on digital assets, suggested that Bitcoin might experience a 200 times adoption growth as more traditional retirement accounts transition to Bitcoin holdings. He predicts a break from Bitcoin’s traditional four-year cycle. Despite a market slowdown, Lee sees tokenization as a key trend with Wall Street eyeing on-chain financial products. The immediate implications suggest significant structural changes in digital finance. Lee highlighted that the adoption of a Bitcoin ETF by BlackRock exemplifies potential shifts in finance. If retirement funds begin reallocating to Bitcoin, it could catalyze substantial growth. Community reactions appear positive, with some experts agreeing that the tokenization of traditional finance is inevitable. Statements from Lee argue that Ethereum’s role in this transformation is crucial, resonating with broader positive sentiment from institutional and retail investors. As Lee explained, “2025 is the year of tokenization,” highlighting U.S. policy shifts and stablecoin volumes as key components of a bullish outlook. source Bitcoin, Ethereum, and the Future of Finance Did you know? Tom Lee suggests Bitcoin might deviate from its historical four-year cycle, driven by massive institutional interest and tokenization trends, potentially marking a new era in cryptocurrency adoption. Bitcoin (BTC) trades at $92,567.31, dominating 58.67% of the market. Its market cap stands at $1.85 trillion with a fully diluted market cap of $1.94 trillion.…
Share
BitcoinEthereumNews2025/12/05 10:42
‘Real product market fit’ – Can Chainlink’s ETF moment finally unlock $20?

‘Real product market fit’ – Can Chainlink’s ETF moment finally unlock $20?

The post ‘Real product market fit’ – Can Chainlink’s ETF moment finally unlock $20? appeared on BitcoinEthereumNews.com. Chainlink has officially joined the U.S. Spot ETF club, following Grayscale’s successful debut on the 3rd of December.  The product achieved $13 million in day-one trading volume, significantly lower than the Solana [SOL] and Ripple [XRP], which saw $56 million and $33 million during their respective launches.  However, the Grayscale spot Chainlink [LINK] ETF saw $42 million in inflows during the launch. Reacting to the performance, Bloomberg ETF analyst Eric Balchunas called it “another insta-hit.” “Also $41m in first day flows. Another insta-hit from the crypto world, only dud so far was Doge, but it’s still early.” Source: Bloomberg For his part, James Seyffart, another Bloomberg ETF analyst, said the debut volume was “strong” and “impressive.” He added,  “Chainlink showing that longer tail assets can find success in the ETF wrapper too.” The performance also meant broader market demand for LINK exposure, noted Peter Mintzberg, Grayscale CEO.  Impact on LINK markets Bitwise has also applied for a Spot LINK ETF and could receive the green light to trade soon. That said, LINK’s Open Interest (OI) surged from $194 million to nearly $240 million after the launch.  The surge indicated a surge in speculative interest for the token on the Futures market.  Source: Velo By extension, it also showed bullish sentiment following the debut. On the price charts, LINK rallied 8.6%, extending its weekly recovery to over 20% from around $12 to $15 before easing to $14.4 as of press time. It was still 47% down from the recent peak of $27.  The immediate overheads for bulls were $15 and $16, and clearing them could raise the odds for tagging $20. Especially if the ETF inflows extend.  Source: LINK/USDT, TradingView Assessing Chainlink’s growth Chainlink has grown over the years and has become the top decentralized oracle provider, offering numerous blockchain projects…
Share
BitcoinEthereumNews2025/12/05 10:26