Question

DMZ Setup Advise

Asked by: ejaramillo

Dear Experts,

I'm in the process of brain storming how I want to set up a DMZ on my ASA 5510. We'll be doing some network changes and I want all my web servers to sit on the DMZ. I posted my config for your review.

I need advice/suggestions on how the best way to set up the folling:

DMZ subnet will be: 172.16.1.0/24

Public addresses for DMZ server will be: 205.154.x.12, 205.154.x.13 etc.

Web server private IP's: 172.16.1.1, 172.16.1.2 etc.


I would need people to be able to access the DMZ servers from the outside but I will also need some of my private lan subnets to be able to talk to some of the servers on the DMZ. I may also want to add some acls so only certain ports are open from my local lan to the DMZ.

I appreciate your help and suggestions!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-04 at 07:34:11ID24871146
Tags

Cisco ASA

,

Firewall

Topics

Cisco PIX Firewall

,

Network Design & Methodology

Participating Experts
1
Points
500
Comments
37

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Cisco ASA DMZ question
    We are using the CIsco ASA 5505 IOS version 7.1(1) We have created a DMZ however are unable access the DMZ from the inside? So for example our DMZ is 10.1.3.X and our internal network is 10.1.4.X. I am able to ping a computer 10.1.3.9, however I can not reach it via http://1...
  2. dmz
    i ve server in dmz zone next to asa ....but i m unable to ping and to ve remote connection with them, i m connecting to ASA through vpn and upto vpn connectivity everything is ok.... but i m not proceeding ahead...to dmz servers. dmz sec level is 50 .... and remote option is ...
  3. DMZ in ASA 5520
    Dear Sir we have ASA 5520 firewall and 1) inside 192.168.1.0/24 2) dmz 192.168.10.0/24 3) outside 220.225.73.179 we configure firewall for dmz. From dmz network we access internet successfully but from inside network we are not able to ping or access dmz server and vice ...
  4. ASA 5510 DMZ
    I have an ASA 5510 with a DMZ question. DMZ is set up and works for outbound any to any less secure and also inbound https to a dmz host. I need to allow a host in the DMZ to access our internal mail server (smtp) on the inside. When I add the access list to allow the host...
  5. DMZ connectivity !
    Hi, I just have a few questions about DMZ connectivity with Public and Inside interfaces... If i give command static (dmz,out) out I.P dmz I.P then would my DMZ host be able to talk to internet and internet would be able to talk to DMZ .. or do i need to add anythign extra ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ejaramilloPosted on 2009-11-04 at 11:08:25ID: 25742713

So if I wanted to restrict access from one of my local LANs to the DMZ would I use an ACL like:

access-list dmz_in extended permit ip 10.229.24.0 255.255.255.0 host 172.16.1.1

access-group dmz_in in

Or would I do a static trans like:

static (inside, dmz) 10.229.24.0 172.16.1.1


 

by: MedassurantPosted on 2009-11-04 at 12:20:29ID: 25743498

to restrict access the best way would be to use the ACL

 

by: ejaramilloPosted on 2009-11-04 at 13:53:59ID: 25744373

Medassurant,

Could you give me an example with the config I attached earlier. I want to create an ACL that will allow only 10.229.24.0 subnet to talk to the DMZ servers but no one else on my local LAN. I'm a little confused as to what interfaces I would apply the acls to. If I apply it to my inside "in" interface, I don't want it interferring with my other users going out to the internet , etc.

Thanks for your help!

 

by: MedassurantPosted on 2009-11-04 at 17:54:13ID: 25746102

sure here is a quick example config let me know if the acls are off but its pretty straight forward

you have to set up four thing

nat
routes
acls
and apply the acls

access-list outside_int extended permit tcp any host 209.165.200.227 eq 80


 
access-list dmz_int permit tcp host 172.16.1.12 eq 80

access-list inside extended line 1 deny tcp any host 172.16.1.10 eq 1433
access-list inside extended line 2 permit ip any any log

static (inside,dmz) 10.1.1.0 10.1.1.0 netmask 255.255.255.0


static (dmz,outside) 205.154.x.12 172.16.1.12 netmask 255.255.255.255 0 0

access-group outside_int in interface outside
access-group dmz_int in interface dmz
access-group inside in interface inside


route outside 0.0.0.0 0.0.0.0 209.165.200.226 1

 

by: ejaramilloPosted on 2009-11-04 at 19:47:24ID: 25746598

If I'm reading this right you're applying this ACL to block all traffic going to a host on my DMZ from the local LAN:
access-list inside extended line 1 deny tcp any host 172.16.1.10 eq 1433
access-list inside extended line 2 permit ip any any log


And... this rule (static (inside,dmz) 10.1.1.0 10.1.1.0 netmask 255.255.255.0) is  allowing the 10.1.1.0 subnet to talk to all host on the DMZ while still restricting access on the other acl?


 




 

by: MedassurantPosted on 2009-11-05 at 05:09:17ID: 25748983

(static (inside,dmz) 10.1.1.0 10.1.1.0 netmask 255.255.255.0) is not a rule is a nat statement which says to keep 10.1.1.0 network addresses the same when they are going to the dmz interface. The config I gave is a nice example of what is required, my inside acl only denies access to 172.16.1.12  over port 1433 but it could read

access-list inside extended line 1 deny ip any host 172.16.1.10 log

which would deny all  traffic from behind the inside interface to that dmz host.

 

by: MedassurantPosted on 2009-11-05 at 05:20:06ID: 25749081

Sorry wrote that to quickly I meant the acl denies port 1433 access to 172.16.1.10

to deny all access to that host

use access-list inside extended line 1 deny ip any host 172.16.1.10 log

or all host on the dmz

access-list inside extended line 1 deny ip any 172.16.1.0 255.255.255.0 log

 

by: ejaramilloPosted on 2009-11-05 at 06:49:17ID: 25749984

Okay,

So for my current situation I would do this:


static (dmz,outside) 205.154.1.1 171.16.1.10 netmask 255.255.255.255
static (inside,dmz) 10.229.24.0 10.229.24.0 netmask 255.255.255.0
static (inside,dmz) 10.101.30.0 10.101.30.0 netmask 255.255.255.0

access-list out_in extended permit tcp any host 205.154.1.1 eq 80
access-list dmz_in extended permit tcp host 172.16.1.10 any eq 80

access-group out_in in outside
access-group dmz_in in dmz

Now would I need an acl for my inside interface since I have the nat statements in place? From a security stand point - would this be an effective way of doing it to protect my inside LAN?
 

 

by: MedassurantPosted on 2009-11-05 at 07:11:01ID: 25750249

you have to have an acl on the inside interface even if its an any any, the outside and dmz acls and a inside acl work togather to protect the inside networks.

 

by: ejaramilloPosted on 2009-11-05 at 07:29:21ID: 25750476

So the example config I posted looks good other than the inside interface acl?

 

by: MedassurantPosted on 2009-11-05 at 07:43:36ID: 25750673

yep, use the inside acl to restrict access to the dmz, and any other access to the outside that you require.

 

by: ejaramilloPosted on 2009-11-05 at 07:55:37ID: 25750787

I kind of had one setup for certain ports outbound already but disabled it. Check out this acl and let me know what you think for my inside in acl:

access-list inside_out extended permit tcp host 10.229.24.110 any
access-list inside_out extended permit tcp host 10.229.26.19 any
access-list inside_out extended permit tcp 10.229.24.0 255.255.0.0  172.16.1.10 eq 80
access-list inside_out extended permit tcp 10.101.30.0 255.255.0.0  172.16.1.10 eq 80
access-list inside_out extended permit tcp 10.101.0.0 255.255.0.0 any object-group tcp-inside-out-ports
access-list inside_out extended permit tcp 10.229.0.0 255.255.0.0 any object-group tcp-inside-out-ports
access-list inside_out extended permit tcp 192.168.100.0 255.255.255.0 any object-group tcp-inside-out-ports
access-list inside_out extended permit udp 10.101.0.0 255.255.0.0 any object-group udp-inside-out-ports
access-list inside_out extended permit udp 10.229.0.0 255.255.0.0 any object-group udp-inside-out-ports
access-list inside_out extended permit udp 192.168.100.0 255.255.255.0 any object-group udp-inside-out-ports
access-list inside_out extended permit tcp host 10.229.24.62 any eq smtp
access-list inside_out extended permit icmp any any echo
access-list inside_out extended permit ip 10.101.0.0 255.255.0.0 192.168.105.0 255.255.255.0
access-list inside_out extended permit ip 10.229.0.0 255.255.0.0 192.168.105.0 255.255.255.0
access-list inside_out extended deny ip any any log

 

by: ejaramilloPosted on 2009-11-05 at 07:56:26ID: 25750791

object-group service tcp-inside-out-ports tcp
 port-object eq https
 port-object eq www
 port-object eq domain
 port-object eq ftp
 port-object eq pop3
 port-object eq 123
 port-object eq 3389
 port-object eq 4443
 port-object eq 8080
 port-object eq 8250
 port-object eq 33
port-object eq 7880
object-group service udp-inside-out-ports udp
 port-object eq domain
 port-object eq ntp
 port-object eq tftp
 port-object range 33434 33535

 

by: MedassurantPosted on 2009-11-05 at 10:07:47ID: 25752169

The rules look fine, What I would do is implement the acl with a ip any any log rule at the bottom which will catch any mistakes that you have made with your permits, let it sit there for a day and look at the log for any issues.

 

by: MedassurantPosted on 2009-11-05 at 10:08:09ID: 25752174

Then make your changes to the acl and remove the ip any any

 

by: ejaramilloPosted on 2009-11-05 at 14:35:59ID: 25754857

This is what I tried on my ASA and I can't ping it from my workstation on the 10.229.24.0 LAN. Here is what I applied for testing purposes:

access-list inside_in extended permit ip any any log
access-group inside_in in interface inside

access-list dmz_in extended permit ip any any log
access-group dmz_in in interface dmz

static (inside,dmz) 10.229.24.0 10.229.24.0 netmask 255.255.255.0
static (dmz,inside) 172.16.1.0 172.16.1.0 netmask 255.255.255.0

I can ping 172.16.1.253 ( the switch connected to the DMZ interface) from the ASA but that's about it.


 

by: MedassurantPosted on 2009-11-05 at 15:15:37ID: 25755155

You cant ping your asa or a host in the dmz ? By the default you cant ping the ASA's interfaces

 

by: ejaramilloPosted on 2009-11-05 at 15:19:33ID: 25755186

A host on the dmz. From the Asa I can ping 172.16.1.253 but I can't from a host on the 10.229.24.0 LAN.

 

by: ejaramilloPosted on 2009-11-05 at 16:39:16ID: 25755725

Think I figured it out, I added:

global (dmz) 1 interface

nat (dmz) 1 172.16.1.0 255.255.255.0

Now I can ping the host inside the dmz :)

 

by: MedassurantPosted on 2009-11-05 at 17:58:23ID: 25756077

excellant

 

by: ejaramilloPosted on 2009-11-05 at 18:12:57ID: 25756114

Quick question though, I originally added:
global (outside) 1 interface
nat (dmz) 1 172.16.1.0 255.255.255.0

why wouldn't this work since I want the dmz to be able to go out to the Internet? Why did I have to add the global (dmz) 1 interface statement in order for it to work?

 

by: MedassurantPosted on 2009-11-05 at 18:19:16ID: 25756146

the global nat, just give the  dmz a nat ip address when they are not going to the inside, if you ping from the asa you still required a nat statement to reach everything else. in your first config you only defined the nate statement for reaching from the dmz to the inside

 

by: MedassurantPosted on 2009-11-05 at 18:20:34ID: 25756154

The asa by default require nat whenever traversing from one interface to another,  it is  nat-control feature.

 

by: ejaramilloPosted on 2009-11-05 at 18:21:51ID: 25756160

Should I do global (dmz) 2 interface or leave it as is?

 

by: MedassurantPosted on 2009-11-05 at 18:24:31ID: 25756167

You will also need a global for the inside network  to the outside

 

by: ejaramilloPosted on 2009-11-05 at 18:31:11ID: 25756190

Sorry, I meant to do this:
global (inside) 1 interface
global (dmz) 2 interface

does it matter that I have (1) for both like this:
global (inside) 1 interface
global (dmz) 1 interface

 

by: MedassurantPosted on 2009-11-05 at 18:42:22ID: 25756232

they can both use the same global

ex.

global (OUTSIDE) 1 interface
nat (CORPORATE_SERVERS) 1 192.168.99.0 255.255.255.0
nat (inside) 1 192.168.98.11 255.255.255.255

 

by: ejaramilloPosted on 2009-11-05 at 19:05:50ID: 25756307

Cool. Thanks for all your help. One last question:

Instead of doing acls to restrict access can I do something like this:

static (inside,dmz) tcp 10.229.24.0 80 172.16.1.10 80
static (dmz,inside) tcp 172.16.1.10 80 10.229.24.0 80

I'm just worried about applying an acl to my inside interface. I applied it a few weeks back and I got tons of calls about people not being to get to certain websites, databases etc. What do you recommend in this situation? It was pretty much that acl example I posted earlier.

 

by: MedassurantPosted on 2009-11-05 at 19:08:49ID: 25756316

Use the acl  make it an ip any any  at first then add more statements to it as you get better at determining what traffic you dont want people to reach on your dmz.  When you have time setup a syslog server and send the logs from the asa to it and you can see all of your traffic hitting the acls, this will give you a good picture of what is going throug your firewall and let you set up the appropriate rules.

 

by: MedassurantPosted on 2009-11-05 at 19:18:39ID: 25756350

But a rule that logs the inside traffic will at least give you the ability to track traffic that goes through the firewall but do what you can do.

 

by: ejaramilloPosted on 2009-11-05 at 19:20:32ID: 25756358

I was referring to my users going out to my internet. When I applied the acl in my inside interface I had many complaints about not being able to hit certain websites and databases. So you're saying to still add permit ip any any log and monitor the traffic for a few days and create a list of appropriate port to allow?

 

by: MedassurantPosted on 2009-11-05 at 19:22:39ID: 25756365

yep

 

by: ejaramilloPosted on 2009-11-05 at 19:32:53ID: 25756405

I tried blocking myself from being able to ping the host in the dmz by doing this:

access-list dmz_in extended deny tcp host 172.16.1.253 any

and I also tried

access-list dmz_in extended deny tcp any host 172.16.1.253

access-group dmz_in in interface dmz

and I can still ping 172.16.1.253  -  what am I doing wrong?

 

by: MedassurantPosted on 2009-11-05 at 19:35:41ID: 25756419

you have to put the deny on the inside interface

access-list inside_in extended deny ip any host 172.16.1.253

 

by: ejaramilloPosted on 2009-11-05 at 19:41:31ID: 25756441

Thanks for all your help on this. I think I'm going to close it so I can stop bugging you. :)

Have a good night and thanks again for your help!

 

by: ejaramilloPosted on 2009-11-06 at 19:00:10ID: 25764790

Medassurant

I requested to have this question opened so I can ask one last question but I haven't heard anything back from EE. Do you know if I can go ahead and ask you a question relating to my original question?

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...