Uncategorized

How can I self-host a reverse proxy like Cloudflare Tunnels?

Self-Hosting a Reverse Proxy: My Journey to Freedom from Cloudflare Tunnels

I’ve been using Cloudflare Tunnels for a while now to host my personal archive and Jellyfin, a media server. But, as it turns out, using it for Jellyfin is against their terms of service. Whoops! I recently found out and decided it’s time to take matters into my own hands. I wanted to self-host a reverse proxy, just like Cloudflare Tunnels, but on my own hardware.

Why Self-Host a Reverse Proxy?

So, why would I want to self-host a reverse proxy? Well, for starters, I don’t have to worry about violating anyone’s terms of service. Plus, I have more control over my own setup. I can configure it to my heart’s content, and I don’t have to rely on a third-party service. It’s like having my own server, but without the hassle of managing it all by myself.

My Setup

I have a server at home, which is connected to the internet via Starlink. It’s not the fastest connection, but it’s the best I can get where I live. The problem is, I couldn’t port forward on my network, even if I wanted to. And, to be honest, I’m not exactly a networking expert. I’d probably end up compromising my security if I tried to set it up myself.

But, I do have a server at my father’s shop, which I used to use for game servers. It was a bit of a headache, to be honest. I had to physically go there every time I wanted to make a change or fix something. And, let’s just say, it wasn’t the most reliable setup. I eventually stopped using it, but I still have the server, and it’s just collecting dust.

Enter Pangolin

After doing some research, I stumbled upon Pangolin, a self-hosted reverse proxy server that supports TCP/UDP and web servers. It’s exactly what I needed! I was a bit skeptical at first, but after trying it out, I was impressed. It’s easy to set up, and it just works. I can finally self-host my own reverse proxy, without relying on Cloudflare Tunnels.

How it Works

So, how does it work? Well, Pangolin acts as a reverse proxy server, which means it sits between your server and the internet. It forwards incoming requests to your server, and then sends the response back to the client. It’s like a middleman, but a good one. It helps protect your server from the outside world, and it can even handle things like SSL encryption and caching.

One of the things I like about Pangolin is that it’s highly customizable. You can configure it to fit your specific needs, whether you’re hosting a web server, a game server, or something else entirely. And, it’s open-source, which means it’s free and community-driven.

Conclusion

Self-hosting a reverse proxy has been a game-changer for me. I’m no longer reliant on Cloudflare Tunnels, and I have more control over my own setup. Pangolin has been a great solution, and I’m glad I found it. If you’re looking to self-host your own reverse proxy, I highly recommend checking it out.

Samodzielne hostowanie serwera proxy: Moja podróż ku wolności od Cloudflare Tunnels

Używałem Cloudflare Tunnels przez jakiś czas, aby hostować mój osobisty archiwum i Jellyfin, serwer multimedialny. Ale, jak się okazuje, używanie go do Jellyfin jest zabronione przez ich warunki świadczenia usług. Kto by się spodziewał? Niedawno się dowiedziałem i postanowiłem wziąć sprawy w swoje ręce. Chciałem samodzielnie hostować serwer proxy, tak jak Cloudflare Tunnels, ale na własnym sprzęcie.

Dlaczego samodzielnie hostować serwer proxy?

Więc, dlaczego chciałbym samodzielnie hostować serwer proxy? No cóż, po pierwsze, nie muszę się martwić o naruszenie warunków świadczenia usług przez kogoś innego. Poza tym, mam więcej kontroli nad własnym setupem. Mogę go konfigurować według własnego uznania, i nie muszę polegać na usłudze osób trzecich. To jak mieć własny serwer, ale bez kłopotu z zarządzaniem nim samodzielnie.

Mój setup

Mam serwer w domu, który jest podłączony do internetu za pomocą Starlink. To nie jest naj szybsze połączenie, ale jest to najlepsze, co mogę dostać, gdzie mieszkam. Problem polega na tym, że nie mogłem forwardsować portów na mojej sieci, nawet gdybym chciał. I, szczerze mówiąc, nie jestem dokładnie ekspertem od sieci. Prawdopodobnie skompromitowałbym swoje bezpieczeństwo, gdybym spróbował samodzielnie to ustawić.

Ale mam serwer w sklepie mojego ojca, który używałem niegdyś do serwerów gier. To było trochę kłopotu, szczerze mówiąc. Musiałem fizycznie iść tam każde razu, gdy chciałem coś zmienić lub naprawić. I, niech powiem, to nie był najbardziej niezawodny setup. Ostatecznie przestałem go używać, ale nadal mam serwer, i po prostu gromadzi kurze.

Wejście Pangolina

Po wykonaniu badań, natknąłem się na Pangolina, samodzielnie hostowany serwer proxy, który obsługuje TCP/UDP i serwery sieciowe. To jest dokładnie to, czego potrzebowałem! Byłem trochę sceptyczny na początku, ale po wypróbowaniu go, byłem zaskoczony. To jest łatwe w ustawieniu, i po prostu działa. Mogę wreszcie samodzielnie hostować własny serwer proxy, bez polegania na Cloudflare Tunnels.

Jak to działa

Więc, jak to działa? No cóż, Pangolin działa jako serwer proxy, co oznacza, że siedzi pomiędzy Twoim serwerem a internetem. Przekazuje przychodzące żądania do Twojego serwera, a następnie wysyła odpowiedź z powrotem do klienta. To jak pośrednik, ale dobry. Pomaga chronić Twój serwer przed światem zewnętrznym, i może nawet obsługiwać rzeczy takie jak szyfrowanie SSL i buforowanie.

Jedną z rzeczy, które lubię w Pangolinie, jest to, że jest高度nie konfigurowalny. Możesz go ustawić tak, aby pasował do Twoich konkretnych potrzeb, czy to hostujesz serwer sieciowy, serwer gier, czy coś innego. I, jest otwarty, co oznacza, że jest darmowy i prowadzony przez społeczność.

Podsumowanie

Samodzielne hostowanie serwera proxy było przełomem dla mnie. Nie jestem już zależny od Cloudflare Tunnels, i mam więcej kontroli nad własnym setupem. Pangolin był świetnym rozwiązaniem, i cieszyłem się, że go znalazłem. Jeśli szukasz samodzielnie hostowanego serwera proxy, bardzo polecam sprawdzić go.

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux