Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I run several Ubuntu Servers (virtualized) and have fail2ban installed for DDOS mitigation. For a firewall, each server has iptables.

I'm evaluating my security options and was wondering how well fail2ban protects you from DDOS attacks vs. a dedicated hardware appliance? And, is a hardware firewall going to provide you better/more protection than iptables (or is it just higher up in the stack)?

share|improve this question

marked as duplicate by Tom O'Connor Aug 25 '13 at 21:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Depends - what's the DDoS exhausting? – Shane Madden Dec 8 '11 at 2:23
Almost for sure Fail2Ban will help you not at all with any DDoS issue. – sjas Jul 24 '15 at 9:13
up vote 3 down vote accepted

I think you've been listening to too much marketing guff.

There is no real difference between what you call a hardware firewall and a software one. Both are driven by software.

The so called hardware firewall is also a computer but without some of the peripheral interfaces like USB or SATA. A number of them even run Linux and IPTables under the hood but have provided a nice web interface. Others provide their own operating system that in my opinion may have less features and be no more tested than iptables.

So is there any good reason to buy a "hardware firewall"? well perhaps. Generally they are well supported and provide a very polished user interface and good support. They also look very sleek in your rack. However, there are now really polished linux/freebsd distributions that provide the same thing and you can run it on a normal computer or custom hardware. e.g. Untangle, Astaro, Monowall, pfSense etc, I don't see such a big advantage.

Now when it comes down to a DDoS attach, there is absolutely no way to protect against it. If you could prevent those packets being sent at source then that would be the answer but you can't.

A few years back I recall a case where a big company caused a stir in the IT world and within days their website was flooded in a DDoS attack. In the end they had to abandon their primary domain name and change it to another name. Even they couldn't do much about it with their big IT budget.

share|improve this answer

If it's a real DDoS attack, nothing on your local network will stop it. You'll need the cooperation of your upstream provider. By the time the packets are being discarded at your end, they'll still be clogging your pipe.

There are many reasons to use a hardware firewall vs software ones (features, ease of management, central point of logging, etc) but as far as DDoS goes, neither are adequate for a real attack of any size.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.