Legacy Archive (2014): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

Ops Log: DedeCMS and Anquanbao CDN Issue

Original Chinese title: dedecms和安全宝运维的记录

The Problem

  • On a DedeCMS system, everything worked fine without Anquanbao CDN, but once I put both @ and www behind Anquanbao for acceleration, the site stopped loading. Without a CDN, however, our bandwidth couldn’t keep up with demand. Meanwhile, several Discuz! sites running alongside it had no issues with the CDN at all.

Troubleshooting Without Clear Visibility

  • First, I ruled out an iptables issue.

    centos 6.5
    》/etc/init.d/iptables status 
    打印 防火墙,全空配置。
  • After turning off Anquanbao, aside from maxing out bandwidth, site access and online user sessions were completely normal.

  • Another Discuz! site also used Anquanbao with basically the same node allocation and ran fine.

  • Switching to another CDN, Baidu Cloud Acceleration (Yunjiasu), worked without any problems. Gotta give credit to Baidu Cloud here—currently in public beta with no restrictions, rock-solid speed, and a free CC firewall that blocks massive traffic spikes from eating up bandwidth.

A Breakthrough

  • I noticed that after enabling the service, the online user count slowly dropped, and traffic on other sites assigned to the same nodes also started dropping. Support reported that for the first ten minutes after connecting Anquanbao, nodes could reach the origin IP, and then it gradually stopped working.
  • Connecting that with the CC attacks detected by Baidu Cloud Acceleration, the high request volume must have triggered the server’s hardware firewall, causing it to block the CDN nodes. Notifying the data center to whitelist the IPs solved the problem.
  • Hats off to Baidu once again—their technology has really advanced by leaps and bounds over the past few years.

Tools Used

  • Used 360’s speed testing tool for site checks: Qiyunce
  • Baidu Cloud Acceleration
  • The Pro tier of Anquanbao actually performed quite impressively overall—probably has some built-in protections Anquanbao