Using a DigitalOcean VPS to work around CGNAT while running an Ubuntu 22.04 LTS RPI from Raspberry Pi.
Using a DigitalOcean VPS to work around CGNAT while running an Ubuntu 22.04 LTS RPI from Raspberry Pi.
Hello everyone! Perhaps one of you can assist me? I’ve been using Nextcloud for a while now and have run into some really annoying issues lately. Particularly with large uploads from remote sources, through Cloudflare tunnel, I keep encountering errors whenever I try to upload multiple files or a single file larger than 100MB. I’m looking for a solid fix—not just something that works in a pinch. The idea of chunking doesn’t seem viable right now. When you check the reverse proxy documentation from Nextcloud AIO (https://github.com/nextcloud/all-in-one#...roxytunnel), they mention significant issues like the 100MB cap. I’ve found out that 100% Cloudflare is likely the root cause. I also discovered that the cloudflared tunnel app itself might be unnecessary—actually, it’s just a leftover feature. Of course, I still appreciate Cloudflare for its features, but I need alternatives for tunneling. I’ve experimented with using WireGuard to bypass CNGAT, but it’s tricky. The npm setup on my local machine is functioning properly, so I’m open to suggestions. I’d really appreciate someone who can help me build a completely self-hosted, easy-to-use solution—preferably one that isn’t tailored for containers or relying heavily on reverse proxies. Thank you all for your support!
I experienced the same issue before, if my memory is accurate there are two choices: NAT Punching (something similar would work) PS: it still needs a VPN. Complex network configuration: you'd have to set up a VPN on the VPS and link your RPI to it. The RPI must also be on the same LAN as the device you want to reach from WAN. Send the required ports on the RPI and permit connections from the VPN to those ports. Set up a reverse proxy on the VPS and access Nextcloud via VPN and RPI (may cause problems with Nextcloud). Nowadays I simply connect each server to my VPN and just follow step 3 above.
Install the VPN client on the VM where Nextcloud is running. Use Angristan’s installer for OpenVPN or WireGuard. Connect the VPN on the same device as Nextcloud. Verify that Nextcloud isn’t bound to a specific network interface or IP range—ensure you can reach it via the VPN client’s IP when connected. If successful, set up a reverse proxy on the VPS pointing to the Nextcloud server’s VPN IP. This process may seem complex but is actually straightforward with the right tools.