Black Friday and Cyber Monday  are two of the biggest shopping days of the year. But in November 2012, the staff at Pittsburgh-based e-commerce hosting provider MageMojo  learned the hard way that they needed to focus more on security.
That Thanksgiving weekend, a series of distributed denial-of-service (DDoS) attacks flooded MageMojo’s network, crippling the company’s ability to effectively service its customer base of online-store owners, who rely on that network to complete customer-generated e-commerce transactions.
“The largest of these attacks hit us on Cyber Monday — the worst possible time,” recalls Eric Hileman, the company’s cofounder. “They didn’t just degrade performance; they took our network completely offline for a couple of hours. Our customers lost business — and we lost customers.”
MageMojo’s once stellar reputation as a provider and manager of Magento Commerce online stores had been tarnished. To restore customers’ faith in its abilities, Hileman says, the company needed a dedicated solution that would mitigate future DDoS attacks.
MageMojo maintains its own network because page load times are an important factor in conversion rates and SEO rankings. Keeping that function in-house allows the company to control all aspects of site performance for its customers.
But the 2012 attacks revealed some weaknesses in the company’s core networking equipment, which had been configured for intelligent routing through best path selection and low latency, rather than attack mitigation. Given the packet loss and high latency that resulted, Hileman, his partner and their five-person staff dedicated themselves to researching DDoS mitigation and application-level protection. They ultimately uncovered several potentially helpful approaches:
Clean pipes, through which a dedicated team of IT security professionals in a company or service carrier such as Verizon or AT&T works exclusively on diminishing and eliminating DDoS attacks
Third-party mitigation, a solution in which all traffic passes through a “scrubbing center,” where a third-party provider checks it for malware and potential attacks
Most DDoS protection best practices recommend eliminating firewalls because they are typically a choke point. But as an e-commerce provider, MageMojo must comply with the Payment Card Industry Data Security Standard (PCI DSS), which requires companies to put hardware firewalls in front of public-facing servers. Consequently, removing firewalls wasn’t an option.
From their research, the MageMojo team learned that there are basically two types of DDoS mitigation strategies.
In the first, which includes clean pipes and third-party mitigation, a company can keep its existing core network in place and rely on other companies to filter the traffic before it hits the network. Dedicated DDoS appliances and next-generation firewalls fit the second category, requiring adequate upstream bandwidth, plus packet processing in routers and switches to handle the size of the attacks.
The PCI Security Standards Council specifies 12 requirements for complying with the Payment Card Industry Data Security Standard (PCI DSS), which applies to any business that stores, processes or transmits cardholder data:
Install and maintain a firewall configuration to protect cardholder data.
Do not use vendor-supplied defaults for system passwords and other security parameters.
Protect stored cardholder data.
Encrypt transmission of cardholder data across open, public networks.
Use and regularly update anti-virus software.
Develop and maintain secure systems and applications.
Restrict access to cardholder data by business need-to-know.
Assign a unique ID to each person with computer access.
Restrict physical access to cardholder data.
Track and monitor all access to network resources and cardholder data.
Regularly test security systems and processes.
Maintain a policy that addresses information security.
“We first looked at clean pipes and third-party mitigation providers,” Hileman explains. “They were attractive to us because we could implement them fairly quickly without an immediate substantial investment in our network.”
But clean pipes can be prone to false positives, are expensive and use the same dedicated appliances that MageMojo planned to consider anyway, he continues.
Hileman and his team decided that a third-party mitigation provider would be a cost-effective, short-term solution. However, the provider they selected made repeated mistakes. Soon, they realized that using yet another third-party solution would introduce too many additional potential points of failure into MageMojo’s network.
“The easy solutions proved to be wrong for us,” says Hileman, who adds that the company was prepared to invest in larger upstream connections and new core routers to handle large incoming attacks. “We liked investing in a larger core because it solved the problem of needing more throughput as we grew,” he says. “But we needed extremely large firewalls and attack protection for the clients’ servers beyond what traditional firewalls alone could provide.”
The team next considered dedicated DDoS appliances. Yet, they soon found that the same specialized hardware they were using also was in the next-gen firewall segment, and had fewer features and higher costs. The logical step, then, was to consider next-gen firewalls, but they didn’t scale well for speeds faster than 10 gigabits per second. Worse, the DDoS protection they offered would prove useful only for the most common attacks, and their session state tables, though large, were still vulnerable.
What MageMojo needed was a true data center firewall, Hileman explains — a solution that would scale easily and seamlessly beyond 10 gigabits per second; offer high availability with an active/passive standby unit; include Layer 7 inspection and manipulation; come certified by ICSA Labs; and wouldn’t allow its session state table to be filled. An examination of traditional firewalls from Cisco Systems and Juniper Networks revealed that even the largest options couldn’t scale seamlessly beyond 10Gbps without swapping entire chassis or line cards.
“At this point, we weren’t feeling too good about the options,” Hileman adds. But then he found CDW Account Manager Jake Jansen through a member of Web Hosting Talk’s Colocation and Data Centers forum.
“After speaking with Jake, I felt comfortable working with him on such a large purchase,” Hileman says. Although the team had identified the Cisco gear they wanted, they weren’t sure what to do about the DDoS equipment they knew they needed. Jansen listened to their needs and tapped CDW’s engineers to suggest a few options that MageMojo hadn’t previously been aware of or considered.
Hileman wanted to make sure that the $450,000 they ultimately invested in Cisco and F5 Networks equipment was worth every penny, so he put the CDW team through its paces.
“We wanted multiple calls with all the vendors,” he remembers. “We wanted as much engineering assistance as we could get. To top it all off, our financing fell through at the last minute. But none of this fazed Jake. He always returned emails and calls right away.”
Because CDW works with more than a dozen leasing companies, Jansen says he was confident that one of them would come through for MageMojo. “We finally found them a leasing arrangement with Cisco Capital,” he explains. “We started the process in November 2012, and the order was placed in March.”
That order included F5’s VIPRION hardware, BIG-IP Local Traffic Manager  (LTM), BIG-IP Advanced Firewall Manager (AFM) and BIG-IP Application Security Manager (ASM). Hileman says the combined solutions have both “surprised and relieved” him. “All of our requirements for scalability, performance, redundancy and attack protection have been met,” he confirms.
According to Hileman, the F5 VIPRION platform lets MageMojo start small with a single blade, then scale quickly and seamlessly by inserting more blades into the chassis. When the company reaches the maximum vertical scaling by filling a chassis with blades, they can add more chassis and begin scaling horizontally. Multiple chassis can use an active/passive configuration for redundancy.
The VIPRION hardware also offers additional DDoS protection through synchronized (SYN) cookies, a Transmission Control Protocol sequence that offsets a SYN flood, and application acceleration using Secure Sockets Layer offloading. The SYN cookies stop SYN flood attacks — perhaps the most common form of DDoS attack, in which phony packets flood a network and launch an attack. The SSL offloading, meanwhile, significantly improves application performance by using specialized features in the VIPRION hardware to handle the SSL encryption.
The BIG-IP base software contains a connection reaper to ensure that even under the highest attacks, its session state table (the part of the device that keeps track of network connections) is never overwhelmed. The connection reaper also ensures that F5’s state table never fills by purging the oldest connections from the state table once it reaches its high-water mark, preventing new connections from being accepted.
The BIG-IP LTM module was selected to provide the load balancing and Network Address Translation features — which route packets from network to network — that MageMojo needed. LTM also includes F5’s iRules scripting all the way up to Layer 7, which mitigates many common attacks.
“The results have been excellent,” CDW’s Jansen says. “F5 was the perfect solution for MageMojo’s needs.”Hileman couldn’t agree more, calling the combination of VIPRION and BIG-IP software modules “the ultimate data center firewall.”
Together, they offer “all the features of dedicated DDoS protection appliances, with better performance and redundancy,” he continues. “It’s like a Swiss Army Knife: It can meet any requirement because it’s a full Layer 7 proxy, enabling us to maintain PCI DSS compliance while also providing DDoS and application-level protection for our customers.”