---
title: "Discussion on \"WireGuard into a private LAN via CloudFlare Tunnels\" | Hashnode"
description: "Discussion on \"WireGuard into a private LAN via CloudFlare Tunnels\". TL;DR: The era of only filtering ingress traffic has come to an end. Differentiating between legitimate and non-legitimate egress traffic is challenging when the attacker uses Cloudflare, Google-drive or AWS.\nIntroduction\nIn this article, you will le..."
url: "https://hashnode.com/posts/wireguard-into-a-private-lan-via-cloudflare-tunnels/64d4c3deedf792b9afa26e38"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [WireGuard into a private LAN via CloudFlare Tunnels](https://iq.thc.org/wireguard-into-a-private-lan-via-cloudflare-tunnels?utm_source=hashnode&utm_medium=feed)

TL;DR: The era of only filtering ingress traffic has come to an end. Differentiating between legitimate and non-legitimate egress traffic is challenging when the attacker uses Cloudflare, Google-drive or AWS. Introduction In this article, you will le...

Aug 10, 2023 · 5 min read · iq.thc.org  
Read the article

-   [#wireguard](https://hashnode.com/tag/wireguard)
-   [#hacking](https://hashnode.com/tag/hacking)
-   [#security](https://hashnode.com/tag/security)
-   [#cloudflare](https://hashnode.com/tag/cloudflare)

## Written by

[root](https://hashnode.com/@hackerschoice)

@hackerschoice

  
[View profile](https://hashnode.com/@hackerschoice)

Security Research and Development.

https://infosec.exchange/@thc https://thc.org/ops

## Responses 3

Markdown supported · ⌘↵ to post

[M xyz](https://hashnode.com/@mse13337)

[May 19](https://hashnode.com/posts/wireguard-into-a-private-lan-via-cloudflare-tunnels/64d4c3deedf792b9afa26e38/comment/6a0cc2ab88372774119b56b0)

This stopped working a few months ago. Cloudflare changed something. Any new workarounds?

I have succesfully extracted with wgcf-teams the wireguard configs. The tunnel is healthy. My cloudflared is running on a proxmox ubuntu lxc container. HoWhen I start Wireguard, it shows "connected" but I can´t access either the internet, nor my localhost.

[Vũ Đức Đông](https://hashnode.com/@dongvu)

[Jun 5, 2024](https://hashnode.com/posts/wireguard-into-a-private-lan-via-cloudflare-tunnels/64d4c3deedf792b9afa26e38/comment/6660784e9edcf4606e462eab)

after step token,

Error: Request failed

Caused by: Request to Cloudflare API has failed with errors:

{ "code": 2004, "message": "bad device request", "other": null }

And messages:

Please fix it, Thanks!

[Osamuyi Obasuyi](https://hashnode.com/@maximus90)

[May 14, 2024](https://hashnode.com/posts/wireguard-into-a-private-lan-via-cloudflare-tunnels/64d4c3deedf792b9afa26e38/comment/66432be88fa46e11fa7d7d7d)

Pretty good stuff.

[Adam Osborn](https://hashnode.com/@adamvictor)

[Jan 6, 2024](https://hashnode.com/posts/wireguard-into-a-private-lan-via-cloudflare-tunnels/64d4c3deedf792b9afa26e38/comment/659955bc0fe390a9f91ab71b)

excellent
