October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Nextcloud Lockouts: How to Fix a Reverse-Proxy IP Mismatch

If Nextcloud sees every visitor as the reverse proxy, its IP-based brute-force protection can affect legitimate users. Check the logs, then align trusted_proxies and forwarded_for_headers with your actual proxy setup.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Nextcloud is throttling or blocking legitimate logins while your server sits behind a reverse proxy, check which client IP Nextcloud sees. When every request appears to come from the proxy, configure that proxy in trusted_proxies and set forwarded_for_headers to the header it actually sends. Keep brute-force protection enabled; first verify the cause in the logs.

Why a reverse proxy can trigger a Nextcloud lockout

A reverse proxy may terminate TLS or forward requests to your Nextcloud server. At the network level, Nextcloud then sees the proxy as the immediate peer. To identify the original visitor, Nextcloud must trust the proxy and read the client address from a forwarded header supplied by that proxy.

As an Amazon Associate I earn from qualifying purchases.

Nextcloud’s brute-force protection is IP-based. If users’ requests all appear to come from one proxy address, legitimate activity can be associated with that shared IP and throttled or blocked. This is a plausible cause of a lockout, not proof that every denied login has the same cause; confirm the detected address and relevant log entries first.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to confirm whether proxy handling is the problem

  1. Map the connection path. Identify whether Nextcloud is behind a reverse proxy or load balancer, and determine the address Nextcloud sees as the connecting peer. Include every proxy that actually connects to Nextcloud.
  2. Review the Nextcloud log. Look for brute-force, throttling, or blocked-IP entries and note the IP address recorded. If more detail is needed, the administration manual recommends temporarily setting the log level to 1 for troubleshooting; restore the previous level when finished.
  3. Compare the logged IP with the topology. If requests from different visitors are all recorded under the proxy’s address, inspect both the trusted-proxy list and the forwarded client-IP header setting. If the logged address is the visitor’s expected IP, investigate other causes rather than assuming a proxy mismatch.

The administration manual describes requests being slowed for up to 24 hours after brute-force protection is triggered and, in extreme cases, access being prevented for up to 30 minutes from a problematic IP. These are documented upper limits, not a prediction of how long a particular login denial will last. The manual also notes that attempts-history entries expire after 48 hours.

#1 Best Overall
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
  • Dual band router upgrades to 1200 Mbps high speed internet (300mbps for 2.4GHz plus 900Mbps for 5GHz), reducing buffering and ideal for 4K stream
  • Full Gigabit Ports - Gigabit Router with 4 Gigabit LAN ports, ideal for any internet plan and allow you to directly connect your wired devices
  • Boosted Coverage - Four external antennas equipped with Beamforming technology extend and concentrate the Wi-Fi signals
  • MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home

Configure the proxy trust boundary

Nextcloud requires administrators to explicitly define which proxy servers it trusts. Its reverse-proxy documentation explains that when the connecting address matches a configured proxy, Nextcloud uses the header named in forwarded_for_headers to determine the client IP. The configuration sample is available in the server configuration parameters reference.

  1. Set trusted_proxies to the real proxy addresses. Nextcloud accepts individual IPv4 and IPv6 addresses and CIDR ranges. Use only the addresses or ranges that genuinely connect to your Nextcloud server; do not copy an illustrative address from a documentation example as if it applied to your network.
  2. Match forwarded_for_headers to your proxy. Identify the header your trusted proxy actually uses to pass the original client IP, then configure Nextcloud to read that header. A header-name mismatch can leave Nextcloud with the proxy’s address instead of the visitor’s.
  3. Verify the result in the logs. After changing the configuration, confirm that requests are attributed to the expected client IPs and that the relevant brute-force entries no longer collapse different visitors into the proxy’s address.

Trust is a security boundary: Nextcloud relies on data supplied by trusted proxies to recover the original client IP. Trusting an address too broadly, or trusting a proxy that is not under your control, can undermine that identification. Secure the proxies and keep the trusted list limited to the actual network path.

Rank #2
Sale
TP-Link ER605, Wired Gigabit VPN Router
  • 【Five Gigabit Ports】1 Gigabit WAN Port plus 2 Gigabit WAN/LAN Ports plus 2 Gigabit LAN Port. Up to 3 WAN ports optimize bandwidth usage through one device.
  • 【One USB WAN Port】Mobile broadband via 4G/3G modem is supported for WAN backup by connecting to the USB port. For complete list of compatible 4G/3G modems, please visit TP-Link website.
  • 【Abundant Security Features】Advanced firewall policies, DoS defense, IP/MAC/URL filtering, speed test and more security functions protect your network and data.
  • 【Highly Secure VPN】Supports up to 20× LAN-to-LAN IPsec, 16× OpenVPN, 16× L2TP, and 16× PPTP VPN connections.
  • Security - SPI Firewall, VPN Pass through, FTP/H.323/PPTP/SIP/IPsec ALG, DoS Defence, Ping of Death and Local Management. Standards and Protocols IEEE 802.3, 802.3u, 802.3ab, IEEE 802.3x, IEEE 802.1q

Choose a durable fix or a narrow temporary exclusion

Option When it fits Security and accuracy trade-off
Correct trusted_proxies and forwarded_for_headers The logs show that Nextcloud sees the proxy address for multiple clients, or the configured header does not match the proxy’s behavior. Restores client-IP identification while keeping brute-force protection enabled. The trusted addresses and header must match the real topology.
Use a narrowly scoped IP exclusion A known shared connection is causing a false positive, or you need a limited diagnostic measure while investigating. Users behind the excluded address are exempt from this protection. Keep the exclusion tightly scoped and treat it as a deliberate exception, not a substitute for correcting a proxy mismatch.

Nextcloud’s administration manual strongly discourages disabling brute-force protection, especially on publicly reachable servers. For a proxy-related nuisance trigger, fix client-IP handling rather than turning the protection off.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to do if the logs do not show a proxy-IP mismatch

A denied login alone does not establish that brute-force protection caused the problem. Check the recorded IP and the surrounding log entries before changing proxy trust or adding an exclusion. If the IP is already the expected client address, the evidence here does not identify the reason for the denial; continue troubleshooting the applicable authentication or server issue instead of broadly trusting additional addresses.

Quick Recap

Bestseller No. 1
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
$44.99
SaleBestseller No. 2
SaleBestseller No. 3
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
$29.99
SaleBestseller No. 4
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
VPN SERVER: Archer AX21 Supports both Open VPN Server and PPTP VPN Server
$69.99
Best Value
TP-Link Dual-Band AX3000 Wi-Fi 6 Wireless Gigabit Internet Router for Home
  • Next-Gen Gigabit Wi-Fi 6 Speeds: 2402 Mbps on 5 GHz and 574 Mbps on 2.4 GHz bands ensure smoother streaming and faster downloads; support VPN server and VPN client¹
  • A More Responsive Experience: Enjoy smooth gaming, video streaming, and live feeds simultaneously. OFDMA makes your Wi-Fi stronger by allowing multiple clients to share one band at the same time, cutting latency and jitter.²
  • Expanded Wi-Fi Coverage: 4 high-gain external antennas and Beamforming technology combine to extend strong, reliable, Wi-Fi throughout your home.
  • Improved Battery Life: Target Wake Time helps your devices to communicate efficiently while consuming less power.
  • Improved Cooling Design: No heat ups, no throttles. A larger heat sink and redefined case design cools the WiFi 6 system and enables your network to stay at top speeds in more versatile environments.
Rank #4
Sale
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
  • DUAL-BAND WIFI 6 ROUTER: Wi-Fi 6(802.11ax) technology achieves faster speeds, greater capacity and reduced network congestion compared to the previous gen. All WiFi routers require a separate modem. Dual-Band WiFi routers do not support the 6 GHz band.
  • AX1800: Enjoy smoother and more stable streaming, gaming, downloading with 1.8 Gbps total bandwidth (up to 1200 Mbps on 5 GHz and up to 574 Mbps on 2.4 GHz). Performance varies by conditions, distance to devices, and obstacles such as walls.
  • CONNECT MORE DEVICES: Wi-Fi 6 technology communicates more data to more devices simultaneously using revolutionary OFDMA technology
  • EXTENSIVE COVERAGE: Achieve the strong, reliable WiFi coverage with Archer AX1800 as it focuses signal strength to your devices far away using Beamforming technology, 4 high-gain antennas and an advanced front-end module (FEM) chipset
  • OUR CYBERSECURITY COMMITMENT: TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.
Rank #3
Sale
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
  • Dual-band Wi-Fi with 5 GHz speeds up to 867 Mbps and 2.4 GHz speeds up to 300 Mbps, delivering 1200 Mbps of total bandwidth¹. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance to devices, and obstacles such as walls.
  • Covers up to 1,000 sq. ft. with four external antennas for stable wireless connections and optimal coverage.
  • Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home
  • Advanced Security with WPA3 - The latest Wi-Fi security protocol, WPA3, brings new capabilities to improve cybersecurity in personal networks

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.