<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lobzy technologies ltd</title>
    <description>The latest articles on DEV Community by Lobzy technologies ltd (@lobzytech).</description>
    <link>https://dev.to/lobzytech</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4244747%2F2466bdb9-ec62-450c-9379-d4ede1984b6a.png</url>
      <title>DEV Community: Lobzy technologies ltd</title>
      <link>https://dev.to/lobzytech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lobzytech"/>
    <language>en</language>
    <item>
      <title>How to Route Cloudflare Workers Through a Static IP VPS (And Bypass API Whitelists)</title>
      <dc:creator>Lobzy technologies ltd</dc:creator>
      <pubDate>Sat, 14 Nov 2026 16:28:37 +0000</pubDate>
      <link>https://dev.to/lobzytech/how-to-route-cloudflare-workers-through-a-static-ip-vps-and-bypass-api-whitelists-44j7</link>
      <guid>https://dev.to/lobzytech/how-to-route-cloudflare-workers-through-a-static-ip-vps-and-bypass-api-whitelists-44j7</guid>
      <description>&lt;p&gt;If you’ve ever tried to integrate financial APIs, banking ledgers, or strict payment gateways directly inside a serverless &lt;strong&gt;Cloudflare Worker&lt;/strong&gt;, you’ve likely hit a brick wall: &lt;strong&gt;Dynamic IP Whitelists.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cloudflare uses a rotating pool of edge IPs. Traditional banking and fintech APIs that require a static IP whitelist will instantly reject your outgoing requests with a &lt;code&gt;403 Forbidden&lt;/code&gt; error. &lt;/p&gt;

&lt;p&gt;The traditional "fix" Cloudflare offers? Upgrade to &lt;strong&gt;Cloudflare Enterprise&lt;/strong&gt; at $2,000+/month. That is completely out of reach for indie hackers and growing engineering teams.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Solution: The Zero-Trust VPS Proxy Architecture
&lt;/h3&gt;

&lt;p&gt;Instead of paying enterprise fees, you can route your Cloudflare Worker requests through a dedicated $5/month VPS running a secure reverse proxy. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Data Flow:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Trigger:&lt;/strong&gt; Your Cloudflare Worker needs to make a secure API call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Encrypted Tunnel:&lt;/strong&gt; The Worker sends an authenticated payload to your dedicated VPS static IP via HTTPS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Static Gateway:&lt;/strong&gt; Your VPS (running a lightweight proxy) catches the payload, attaches your whitelisted static IP headers, and forwards it to the destination API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Response:&lt;/strong&gt; The API sees a clean, consistent static IP and returns the data successfully.&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Implementation Breakdown
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. The Caddy + HTTPS Reverse Proxy Config (&lt;code&gt;Caddyfile&lt;/code&gt;)
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
text
your-proxy-domain.com {
    reverse_proxy localhost:3000 {
        header_up X-Forwarded-For {remote_host}
    }
}

2. The Node.js Core Handler (server.js)
const express = require('express');
const axios = require('axios');
const app = express();

app.use(express.json());

app.post('/proxy-request', async (req, res) =&amp;gt; {
    const authHeader = req.headers['authorization'];
    if (authHeader !== `Bearer ${process.env.SECRET_TOKEN}`) {
        return res.status(401).json({ error: 'Unauthorized gateway access' });
    }

    try {
        const apiResponse = await axios({
            method: req.body.method,
            url: req.body.targetUrl,
            data: req.body.payload,
            headers: req.body.headers || {}
        });
        return res.status(200).json(apiResponse.data);
    } catch (err) {
        return res.status(500).json({ error: err.message });
    }
});

app.listen(3000, () =&amp;gt; console.log('Static IP Proxy active on port 3000'));

3. Systemd Auto-Restart Daemon (/etc/systemd/system/vps-proxy.service)
[Unit]
Description=Cloudflare Static IP VPS Proxy
After=network.target

[Service]
ExecStart=/usr/bin/node /opt/proxy/server.js
Restart=always
User=root
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target

Get the Complete Production Blueprint
If you want to skip hours of trial-and-error, security hardening, and edge-case debugging, I have packaged this entire architecture into a comprehensive, production-ready 16-page technical blueprint.
It includes complete copy-pasteable scripts, security hardening guides, and step-by-step zero-trust configurations.

[👉 Get the Full 16-Page Blueprint on Gumroad ($100)](https://lobzytech.gumroad.com/l/cloudflare-static-ip)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>devops</category>
      <category>cloudflare</category>
      <category>security</category>
      <category>node</category>
    </item>
  </channel>
</rss>
