The Number One Way of Mitigating DoS Attacks

#

Authentication and Provisioning

The system is redundant, scalable and automates control of subscribers’ access, speeds and usage.

Automated Suspension and Reactivation

Train your subscribers to pay on time and make payments easy to get back online.

Activation Servers Fuel Growth

Speed up on-boarding for point-to-point or point to multi-point connections and Wi-Fi at RV parks, campgrounds or marinas.

Use a black hole router to protect your WISP from DoS service interruptions

By Jeremy Davis, WISP Engineer and Consultant at Visp.net

Sporadic degradation of your network?  Customers calling with no obvious problems?  Core or edge routers suddenly overloaded?  These are symptoms that indicate you may be under a denial-of-service (DoS) attack. Rest assured, this article examines the number one way of mitigating DoS attacks.

How did I acquire this knowledge? I’ve worked for more than 17 years in the WISP industry. One of my critical responsibilities is to secure networks, which include extinguishing DoS attacks. Now, as an engineer at Visp.net, I have a responsibility to support our clients’ success, which is why I’m sharing this effective technique. But, before we explore the solution, let’s review the basics…

What are DoS attacks?

DoS attacks have plagued wide area networks since the dawn of the internet. Bots, botnets, zombies or other mechanisms described as compromised devices are used in coordination to attack a single location. They overwhelm the network and the intended target.  

Once an attack starts, they are tough to stop unless you know the steps to mitigate the threat. 

In most cases, firewalling does not help; it only adds to the problem because processing millions of small packets does not make the CPU of your border/core routers happy. Even when your router can drop all of the bad traffic, your incoming connection can be filled to the max allowing very little bandwidth for the good traffic. In many cases, you may be at the mercy of your upstream as you file a ticket to block the attack before it hits your network. 

DoS attacks are increasing in frequency and duration. The proof is in the stats [1[], according to Neustar, a global IT company:

  • 168% increase in attacks from Q4 2018 to Q4 2019
  • 180% increase in attacks from 2018 to 2019
  • 31% increase in the largest measured attack from 2018 to 2019 

The problem has increased over the past few years because we have more devices designed to connect to the internet [2], which offers a larger potential pool of devices to compromise. 

Be prepared before the next DoS attack hits. VISP - ISP Billing System

Be prepared before the next DoS attack hits.

Gaming DoS strike

While working at a WISP, we experienced an attack related to gaming. A customer got into a fight with someone during an online gaming session, incurring the wrath of the party on the other end of the game. During the attack, approximately 5-million packets from thousands of sources overwhelmed our customer’s connection and our core infrastructure. 

This specific attack was interesting — the DoS attack only lasted 10 to15 seconds, took a break, then reared its ugly head again. It was just enough to cause problems for the ISP customer and intermittent issues for everyone on that segment of the network, but not enough for anyone to call in. It was pretty much a worst-case scenario for the network administrator and the ISP.

Mitigate DoS attacks

We were able to mitigate the DoS attack by using a BGP blackhole. RFC799 specifies a transitive BGP community of “BLACKHOLE” which routed the attacked address via a null route. The overhead of routing is significantly less than inspecting a packet with a firewall. 

In our case, we used a separate router to inject the BGP Blackhole addresses into our edge router. The size of the device is not of any consequence. We currently use a Mikrotik RB750GL as it will not be receiving a feed, just pushing the attacked addresses to our Edge routing running the complete BGP feed. 

Using a separate router is essential when the edge router is unable to be logged into from degradation of performance due to the attack.  We set up route filters to make sure we do not pass any IPs we do not own. 

In an imaginable worst-case scenario, an ISP once added YouTube to their blackhole and, without proper filtering, effectively removed half of the world’s access to this popular video service.

Here is an example configuration for a Mikrotik where 77777 is your ASN, 192.168.88.5 is a valid IP on the black hole, 10.0.0.0/20 is a subnet range of your network address, and 10.0.0.5/32 is the address you are trying to block.

Configurations

#Sets up the BGP communication between the blackhole router and the main BGP router

/routing BGP instances name=”default” as=77777 router-id=192.168.88.5 redistribute-connected=no 

      redistribute-static=yes redistribute-rip=no redistribute-ospf=no 

      redistribute-other-bgp=no out-filter=”” client-to-client-reflection=yes 

      ignore-as-path-len=no routing-table=””

# Route filters lessen the chance of us blocking addresses we do not own

/routing filter chain=blackhole_out prefix=10.0.0.0/20 prefix-length=32 distance=66 

     invert-match=no action=accept set-bgp-prepend-path=”” 

     set-bgp-communities=77777:666 

/routing bgp network add network 10.0.0.5//32

Conclusion

Like most things in life, preparation is the key to success.  Your BGP blackhole router will be sitting there doing nothing on most days.  However, when you need it, there is no better way to defend against and mitigate a DoS attack. It’s a resource that you can rely on to preserve the quality and integrity of the services you offer your customers. 

There are many resources that you can rely on. Just like the BGP blackhole router, you may not know how important a resource is until a challenge comes up that you’ve never faced before. Visp.net’s Success Team is available to answer questions in real-time from a dedicated and secure channel. Their job is to ensure Visp’s billing and automation system is working as it should, but they also lend a hand with solutions and resources to help you maintain long-term success. How important is your success? 

Author’s Note, June 13, 2020: While this technique can work as-is via IBGP, establishing a relationship with your upstream bandwidth provider to support this technique via eBGP will increase the effectiveness and stop all DDoS traffic before it hits your edge router.

About the Author

Jeremy Davis - WISP Engineer and Consultant at Visp.netJeremy Davis – WISP Engineer and Consultant at Visp.netA wireless/network/software engineer with 17 years of experience in the WISP industry, Jeremy has a deep respect for WISP owners and operators as today’s explorers. They use their drive and ingenuity to connect rural citizens with internet service; and they always get the last mile deployed. Jeremy’s adult life has been spent in this industry, forging a strong emotional bond and commitment to WISP client success.

References

  1. Cisco Magazine – DDoS attacks rose 180% from 2019 compared to 2018:

https://www.cisomag.com/ddos-attacks-rose-180-in-2019-compared-to-2018/#:~:text=DDoS%20Attacks%20Rose%20180%25%20in%202019%20Compared%20to%202018,-By&text=Neustar%2C%20a%20global%20information%20and,in%202019%20compared%20to%202018

2. Weagle, S.; DDoS Attacks Rise in Size, Sophistication, and Frequency; Corero Blog online: https://www.corero.com/blog/ddos-attacks-rise-in-size-sophistication-and-frequency/

 

 

Other resources: 

https://www.comparitech.com/blog/information-security/ddos-statistics-facts/

https://www.corero.com/blog/new-report-points-to-alarming-ddos-attack-statistics-and-projections/

https://tools.ietf.org/html/rfc7999

“It does what I need and more, the support is top notch.“

~Tristan Livingston (NTX Fiberwave)

“Congratulations on having such fine staffing quality on your front lines.“

~Ned Schuman (Founder, Olympus)

“Amazing how quick you guys get things done!“

~Renaldo Coakley (Coakster Wireless)

“Always works, always getting improved. Thanks VISP Team!“

~Louis Uttaro (Oso Internet)

Related Articles

5 Top Reasons to Attend WISPAmerica – Your Industry Event 

5 Top Reasons to Attend WISPAmerica – Your Industry Event 

The ISP’s industry event of the season is the perfect place to be this March. Discover the top 5 reasons you should attend WISPAmerica 2022 and join your colleagues, industry experts and icons to celebrate our industry and plot a future that’s beneficial to all of us.

ISP Marketing Strategy: The 5 Tactics to Measure Success

ISP Marketing Strategy: The 5 Tactics to Measure Success

To succeed, marketing campaigns must deliver. Knowing how to measure ISP marketing strategy success is essential to know if the investment is worth it. Read on to discover how to include tracking measures and metrics to ensure your current and future campaigns pay off.

A Sales Incentive Plan to Retain and Motivate ISP Salespeople

A Sales Incentive Plan to Retain and Motivate ISP Salespeople

ISP salespeople are essential to keep a steady stream of new subscribers coming into your organization. But, hiring and keeping good professionals requires more than just a base salary and vacation. Discover how well-structured sales incentive plans can help you to attract the best and brightest.

?