Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Are there any security benefits to having a dedicated firewall rather than having a firewall established on a router? Thanks.

share|improve this question

6 Answers 6

up vote 5 down vote accepted

I think you mean here by firewall a hardware-based firewall as opposed to software-based firewall like netfilter in Linux.

Most if not all routers support some type of access control list (ACL) which can act as a firewall. Dedicated hardware firewalls are better because they are more powerful (can process more traffic) and support stateful inspection and can have more advanced features like attack detection (IDS/IPS). At the end, this depends on your requirements and the chosen hardware.

share|improve this answer
    
Also, if you experience an attack (eg. DDoS) from the outside, and flood protection is handled by a dedicated firewall, your router can continue to operate normally –  Mathias R. Jessen Mar 3 '12 at 12:04
    
@MathiasR.Jessen: Yes, this is because the border firewall should block the traffic before reaching the internal router. –  Khaled Mar 3 '12 at 12:09

A lot of that depends on the router in question. For instance, an ASA Services Module in a Cisco Catalyst switch has a lot more functionality than some low end dedicated firewalls. But then, the argument here is, "is a blade a dedicated firewall?"

Dedicated hardware generally gives you better functionality for the Firewall role, and includes other perimeter services like:

  • IDS / IPS
  • More robust application-level gateways (make sure TCP/80 is really HTTP and not SSH, that kind of thing)
  • VPNs, IPSec and SSL.
  • Integration with authentication systems
  • Ability to proxy certain application traffic

There is also a strong argument to make about having a dedicated device handle your perimeter connection: Should an external attack take out your border device the only thing affected on your network is the connection to the outside world.

share|improve this answer

One of the key advantages of a dedicated firewall box, especially if you firewall-setup-in-a-router is a set of hand-made iptables rules (as mine is) is easy management and maintainability. This isn't a security benefit directly, but anything that makes keeping secure less hassle is an indirect but quantifiable benefit in that area.

Also dedicated firewall boxes tend to do far more than just packet filtering, good ones tend to offer certain types of DoS protection, more advanced packet inspection options (is connection via TCP port 80 really a HTTP stream?), and so forth.

While some routers also offer this sort of feature set too you will usually find they are not as good at it as a dedicated firewall designed for that job - for instance you might be surprised how much CPU time complex packet inspection rules can take and dedicated firewall boxes will have the processing power (via faster CPUs and/or some logic acceleration in dedicated special-purpose chips) to keep a 100Mbit or even Gbit line saturated where a router that has firewall features tacked on with software only (especially "consumer grade" routers) might not.

share|improve this answer

There aren't really security benefits to it if you can specify roles in the router. However don't confuse ACL with a firewall.

A separate firewall is better because then your router only needs to use its resources to route, while your firewall does his bit with his own resources. If you put those two on one machine, they will share resources and one could start dominating the resources when things go bad (DDoS).

Also a separate firewall sometimes comes with neater features like IDS, deep packet inspection, etc... .

Another tip when buying a firewall, don't look at the bandwidth, but ask them how many packets a second it can process. Often they advertise high bandwidths of 1 Ggit, but this is calculated on 64 KB packets. So if someone wants to attack you they just need to send tons of 4 KB packets, which will make your throughput come to a screaming halt.

share|improve this answer

Think about router and FW as about separate lines of defense against attacker. Two is better than one

share|improve this answer

Think of a firewall as a sheep dip where everything is "cleansed' before information (because thats what data is) moves to the next stage of transmission.

If you can deal with the slight degradation of speed, base your network security on old fashioned store and forward philosophy. Everything, including email, are temporarily stored on the firewall, AV checked before forwarding to the destination (internal or external)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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