Skip to Content
JUNOS High Availability
book

JUNOS High Availability

by James Sonderegger, Orin Blomberg, Kieran Milne, Senad Palislamovic
August 2009
Intermediate to advanced
690 pages
20h 14m
English
O'Reilly Media, Inc.
Content preview from JUNOS High Availability

Taking Action When a DoS Attack Occurs

When you determine that a DoS attack is occurring, there is very little chance that you can do much to stop the attack itself. But there are a few ways you can block the traffic from getting to the target device.

Using Filtering to Block DoS Attacks

The most obvious step you can take to block the attack is to use firewall filters. The exact solution will depend on the type and scope of the attack, but a good general approach is to use filters similar to the ones you used to detect the attack in the first place.

Here is a filter similar to the ICMP filter shown earlier, but with a slight variation:

[edit]
lab@r1# show firewall family inet filter discard-icmp
term A {
    from {
        destination-address {
            192.168.28.1/32;
        }
        protocol icmp;
    }
    then {
        count icmp-counter;
        log;
        discard;
    }
}
term B {
    then accept;
}

In the preceding example, a filter called discard-icmp has many of the same parameters as the check-for-icmp filter, but with a key difference: ICMP traffic destined for the server is now dropped. Once you apply this filter outbound on the server-facing interface, the attack will be blocked.

Note

Do not deny traffic with the reject command. Rejecting traffic causes the JUNOS device to respond with an ICMP message of its own for each packet that matches the filter. This means the device generates as much traffic as it receives during the attack, which doesn’t help the situation!

You can implement the same solution for TCP SYN attacks, using a variation of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JUNOS Enterprise Switching

JUNOS Enterprise Switching

Harry Reynolds, Doug Marschke
Junos Security

Junos Security

Rob Cameron, Brad Woodberg, Patricio Giecco, Timothy Eberhard, James Quinn
Juniper QFX5100 Series

Juniper QFX5100 Series

Douglas Richard Hanks
Juniper QFX10000 Series

Juniper QFX10000 Series

Douglas Richard Hanks

Publisher Resources

ISBN: 9780596805449Errata Page