F5F Stay Refreshed Hardware Desktop 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.

Using a DigitalOcean VPS to work around CGNAT while running an Ubuntu 22.04 LTS RPI from Raspberry Pi.

B
BreakingBlue88
Junior Member
22
12-25-2022, 08:14 PM
#1
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!
B
BreakingBlue88
12-25-2022, 08:14 PM #1

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!

G
Gurra34XX
Member
207
12-26-2022, 01:13 AM
#2
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.
G
Gurra34XX
12-26-2022, 01:13 AM #2

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.

K
Krome8283
Junior Member
8
01-15-2023, 09:29 AM
#3
You're welcome! I can explain the solution in simpler terms. The documentation clearly outlines how to set up an Nginx reverse proxy with an aio behind Nextcloud.
K
Krome8283
01-15-2023, 09:29 AM #3

You're welcome! I can explain the solution in simpler terms. The documentation clearly outlines how to set up an Nginx reverse proxy with an aio behind Nextcloud.

F
flyer78
Senior Member
425
01-28-2023, 02:32 AM
#4
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.
F
flyer78
01-28-2023, 02:32 AM #4

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.

R
Rumbelz
Junior Member
11
01-28-2023, 03:16 AM
#5
Imagine I can later get assistance from Google... The terms you're asking about refer to something unlinked and without an IP address. It's surprising how this could work. When trying to reach Nextcloud locally, how does data move through such a setup?
R
Rumbelz
01-28-2023, 03:16 AM #5

Imagine I can later get assistance from Google... The terms you're asking about refer to something unlinked and without an IP address. It's surprising how this could work. When trying to reach Nextcloud locally, how does data move through such a setup?