Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Firewall or router, which comes first

Posted on 2010-09-03
Medium Priority
Last Modified: 2012-06-27
I have a very general question. Consider the following network layout examples:

Internet<-->Router<-->Firewall<-->Private Network


Internet<-->Firewall<--->Router<--->Private Network

Which of this setups is the best reccommended setup?

I am thinking that the second setup will easily allow you to connect another router and add another subnet onto the network without interefering with the server configurations. You can also comfortably point the gateway of all machines to be the router.

I use the first setup at my organization and becaue of this the router has no private IP address, so cannot use it as a GW on the clients.

Maybe slightly related to an earlier question but just asking. All answers earn points.

Question by:JMarewa
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

aaronblum earned 500 total points
ID: 33598539
I would recommend the second configuration since that should provide the most protection for your network.  This configuration will help shield your router from external attacks and decrease the size of your attack surface.

Expert Comment

ID: 33598751
Agreed also turn off external pings so no one even knows you are there.

Assisted Solution

jimmyray7 earned 500 total points
ID: 33598760
The second setup will allow you to have a Gateway on the private network.  If you have more questions, post what type of devices these are and we can dig a little deeper.
Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!


Author Comment

ID: 33598824
Great. I forgot to add one device, the satellite modem. See below and let me know if it makes a difference in your reccomendations.

Internet<-->Satellite Modem<-->Router<-->Firewall<-->Private Network


Internet<-->Satellite Modem<-->Firewall<--->Router<--->Private Network


Expert Comment

ID: 33598836
No major difference here, though I would advise making sure that you keep the firmware on the modem updated if that is within your technical capabilities as it must be outside the firewall.
LVL 26

Assisted Solution

pony10us earned 500 total points
ID: 33599148
Our set up at work:

Internet provider <---> edge router <---> firewall  <---> IPS <---> layer 3 switch <---> router <---> internal network

I think the method pretty much is dependent on the abilities (brands) of the equipment and the configurations.

Expert Comment

ID: 33600252
The preferred setup may depend on what exactly your router does. Your doubts about whether to put it in front of the firewall or after it makes be think you may not need it at all.

Assisted Solution

fs40490 earned 500 total points
ID: 33602146
Well as you know either will work.  As for the best depends on what you are looking for.  So does your firewall have more than just 2 interfaces?  If so you may be able to support a second interface to stand up an additional internal network.  This helps to alleviate the need of a router internal to the network.

I personnally like to have a router in front of the firewall.  This way I can actually support basic layer 3 filtering to help offload some of the unnecessary processing from the firewall.  

Ideally you would have an additional router in this scenario.  With that configuration it would be:

ISP --> router --> FW --> router --> Internal LAN

Of course as pony outlines it would be nice to have additional security gear available also, mainly IPS.  Again the thought being that not only it will help to prevent attacks, these devices also help to alleviate some of the processing other devices need to do.
LVL 26

Expert Comment

by:Fred Marshall
ID: 33602171
Some common devices just combine the two functions into one box.  
Juniper Networks implements what they call "virtual routers" on each "zone" with the firewall in between the trusted and untrusted zones.

So, you could take a hint from their architecture.

In fact, if there were a reason, you could have routers in front of and behind the firewall with separate roles.  But, I can't think of much of a role between the modem and the firewall actually.

Author Comment

ID: 33602241
Thank you all guys. Much appreciatted.

Author Comment

ID: 33602253

I meant to award point equally and then close the question. I am not meant to close the question. Please let me know. I am a bit new at this.


Expert Comment

ID: 33603266
Cancel auto-close.

- thermoduric -
EE Community Support Moderator

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question