<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Tunnel on Smart Home? Sure — But Secure!</title>
        <link>https://smarthome-aber-sicher.de/en/tags/tunnel/</link>
        <description>Recent content in Tunnel on Smart Home? Sure — But Secure!</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Fri, 18 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://smarthome-aber-sicher.de/en/tags/tunnel/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>Remote Access with Cloudflare – Done Right!</title>
        <link>https://smarthome-aber-sicher.de/en/blog/2025/04/18/remote-access-with-cloudflare-done-right/</link>
        <pubDate>Fri, 18 Apr 2025 00:00:00 +0000</pubDate>
        
        <guid>https://smarthome-aber-sicher.de/en/blog/2025/04/18/remote-access-with-cloudflare-done-right/</guid>
        <description>&lt;img src="https://smarthome-aber-sicher.de/blog/2025/04/18/fernzugriff-mit-cloudflare-richtig-sicher/cover.jpg" alt="Featured image of post Remote Access with Cloudflare – Done Right!" /&gt;&lt;p&gt;Many people set up a Cloudflare Tunnel, see that Home Assistant is reachable from anywhere — and stop right there. The problem: the tunnel is encrypted, but anyone can access it. No login, no access control, nothing. It&amp;rsquo;s like locking your apartment door while the building&amp;rsquo;s front door is wide open.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll show you how to do this properly: set up the tunnel, secure access — and at the end, make an honest assessment of what you&amp;rsquo;re trusting Cloudflare with.&lt;/p&gt;
&lt;div class=&#34;video-wrapper&#34;&gt;
    &lt;div class=&#34;video-placeholder&#34; onclick=&#34;loadIframe(this)&#34;&gt;
        &lt;img src=&#34;https://smarthome-aber-sicher.de/img/sas_youtube.png&#34; alt=&#34;YouTube Video&#34;&gt;
        &lt;div class=&#34;play-button&#34;&gt;&lt;/div&gt;
        &lt;div class=&#34;privacy-notice&#34;  style=&#34;color: var(--card-text-color-main);&#34;&gt;
            To load the video, please click the image. Please note that by doing so, data will be transmitted to YouTube.
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
    function loadIframe(element) {
        var iframe = document.createElement(&#39;iframe&#39;);
        iframe.setAttribute(&#39;loading&#39;, &#39;lazy&#39;);
        iframe.setAttribute(&#39;src&#39;, &#39;https://www.youtube-nocookie.com/embed/-5ekUIhSIaM&#39;);
        iframe.setAttribute(&#39;allowfullscreen&#39;, &#39;&#39;);
        iframe.setAttribute(&#39;title&#39;, &#39;YouTube Video&#39;);
        element.parentNode.replaceChild(iframe, element);
    }
&lt;/script&gt;
&lt;style&gt;
    .video-placeholder {
        position: relative;
        cursor: pointer;
    }
    .video-placeholder img {
        width: 100%;
        height: auto;
    }
    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: url(&#39;/img/youtube_button.svg&#39;) no-repeat center center;
        background-size: contain;
    }
    .video-placeholder:hover .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: url(&#39;/img/youtube_button_hover.svg&#39;) no-repeat center center;
        background-size: contain;
    }
    .privacy-notice {
        position: absolute;
        bottom: 50px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        text-align: center;
    }
&lt;/style&gt;

&lt;h2 id=&#34;the-false-sense-of-security-through-https&#34;&gt;The False Sense of Security Through HTTPS
&lt;/h2&gt;&lt;p&gt;Many people think: &amp;ldquo;If I use HTTPS, I&amp;rsquo;m safe.&amp;rdquo; But that&amp;rsquo;s a misconception. SSL encrypts the connection — it does not prevent your Home Assistant from being visible and vulnerable on the internet. That&amp;rsquo;s exactly what happens when you only set up a tunnel and do nothing else.&lt;/p&gt;
&lt;p&gt;Today we go one crucial step further: Cloudflare Tunnel plus access control. If you&amp;rsquo;ve already set up the tunnel, you can skip ahead to the next section.&lt;/p&gt;
&lt;p&gt;Info: The hands-on step-by-step walkthrough is in the video above. You&amp;rsquo;ll need your own domain to follow along. If you don&amp;rsquo;t have one yet, I recommend Netcup based in Karlsruhe:&lt;/p&gt;









&lt;blockquote&gt;
    &lt;p&gt;&lt;figure&gt;&lt;img src=&#34;https://smarthome-aber-sicher.de/img/netcup_logo.png&#34; width=&#34;20%&#34;&gt;
&lt;/figure&gt;
&lt;p&gt;Netcup is a German hosting provider I&amp;rsquo;ve been a customer of since &lt;strong&gt;2011&lt;/strong&gt; — now with &lt;strong&gt;nine products&lt;/strong&gt; (domains, web hosting, vServers and root servers). I&amp;rsquo;ve been consistently satisfied over all those years. I particularly want to highlight the &lt;strong&gt;reliable infrastructure&lt;/strong&gt;, &lt;strong&gt;excellent support&lt;/strong&gt;, and &lt;strong&gt;transparent pricing&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;A real standout feature: &lt;strong&gt;special offers at Netcup are often permanent&lt;/strong&gt;. That sets Netcup clearly apart from other providers where the price typically rises after the first year.&lt;/p&gt;
&lt;p&gt;If you want to support me and my content, I&amp;rsquo;d be happy if you book through my referral link:
👉 &lt;a class=&#34;link&#34; href=&#34;https://www.netcup.com/de/?ref=21226&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;https://www.netcup.com/de/?ref=21226&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also have &lt;strong&gt;vouchers for new customers&lt;/strong&gt; for various Netcup products. Just reach out — I&amp;rsquo;m happy to help!&lt;/p&gt;
&lt;p&gt;Thank you for your support! It helps me keep creating content for you.&lt;/p&gt;
&lt;/p&gt;&lt;span class=&#34;cite&#34;&gt;&lt;span&gt;― &lt;/span&gt;&lt;span&gt;Joachim&lt;/span&gt;&lt;cite&gt;&lt;/cite&gt;&lt;/span&gt;&lt;/blockquote&gt;


&lt;h2 id=&#34;the-weak-spot-in-many-cloudflare-setups&#34;&gt;The Weak Spot in Many Cloudflare Setups
&lt;/h2&gt;&lt;p&gt;Your smart home is now reachable from the internet — and many people stop there, satisfied. But there is one critical problem with this setup: while the tunnel connection is encrypted, &lt;em&gt;anyone&lt;/em&gt; can access it.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s like locking your apartment door while the front door of the building stands wide open. Today we do better and add an additional layer of protection.&lt;/p&gt;
&lt;p&gt;Info: The hands-on step-by-step walkthrough is in the video above.&lt;/p&gt;
&lt;h2 id=&#34;how-trustworthy-is-cloudflare&#34;&gt;How Trustworthy Is Cloudflare?
&lt;/h2&gt;&lt;p&gt;So now, to stay with the analogy, the front door is also securely locked and only someone with keys to both doors can get through. Right? Unfortunately, no. Because there&amp;rsquo;s one player you may not have on your radar — and that&amp;rsquo;s Cloudflare itself.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ve set up two layers of protection: the authentication in Home Assistant and Cloudflare Access. For a hacker to access your smart home now, they&amp;rsquo;d need to successfully bypass both security mechanisms — Cloudflare&amp;rsquo;s and Home Assistant&amp;rsquo;s. The odds of that are orders of magnitude lower than if the system were just sitting open on the internet. Sounds like a perfect setup? Almost — because there&amp;rsquo;s one small but important catch.&lt;/p&gt;
&lt;p&gt;Cloudflare itself has unencrypted access to everything passing through the connection in this setup. And Cloudflare is a US company, which means it is not subject to the strict data protection regulations that apply here in Europe. You therefore have to place a certain degree of trust in the company behind Cloudflare. If that makes you uncomfortable — what are the alternatives? You could set up your own VPN access with WireGuard or Tailscale — technically a bit more demanding, but privacy-friendly. Or you use Home Assistant Cloud — it&amp;rsquo;s a paid service, but offers a straightforward and secure solution with considerably more concrete privacy rules than Cloudflare. However, you still have to extend some trust here too, because Nabu Casa — the company behind Home Assistant Cloud — is also a US company and is not bound by EU rules. That said, they do advertise that they don&amp;rsquo;t log user activity or analyze it for advertising purposes. That may matter to some of you.&lt;/p&gt;
&lt;h2 id=&#34;my-take&#34;&gt;My Take
&lt;/h2&gt;&lt;p&gt;If you use Cloudflare correctly — with Tunnel &lt;em&gt;and&lt;/em&gt; Access — you have a free, highly secure solution for remote access to Home Assistant, without opening a single port.&lt;/p&gt;
&lt;p&gt;Cloudflare is, however, a US company with unencrypted access to your connection. If that&amp;rsquo;s not acceptable to you, consider WireGuard, Tailscale, or Home Assistant Cloud instead. More on those coming soon here on &amp;ldquo;Smart Home? But Secure!&amp;rdquo;&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
