Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Equipment Support » Hardware By Brand » Cisco » [HELP] Multi-Interface Firewall Config Help
Search Topic:
Uniqs:
589
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
[HELP] NAT Overload (PAT) Help »
« [HELP] 877W VPN Setup  
AuthorAll Replies

acherman

join:2005-06-06
Hinton, AB


1 edit
[HELP] Multi-Interface Firewall Config Help

Hi everyone, this is a problem I have been working at off and on for a long time. Before I waste anyone's time posting my config I'll ask if what I want to do is even possible.

I have a 2811 router running IOS 12.4(22)T. I have Fa0/1 connected to the Internet, and Fa0/0 with VLAN sub-interfaces on it (2 for now). I want one of the VLAN's (say Fa0/0.1) to be our private network. I want the other (say Fa0/0.2) to be a public network used for a WiSP service. Currently we use m0n0wall in a similar config but it's nearing the end of it's practicality and we want to upgrade.

Anyway, my problem is with traffic flow.
-I want all traffic originating from the Private side to be permitted everywhere (to all other interfaces), and returning traffic to be permitted back (Internet access and management access to the WiSP side).
-I want traffic originating on the WiSP side to be permitted to the Internet (return traffic permitted of course), and traffic not permitted to the Private side.
-I want only specified Internet-originating traffic permitted in to certain hosts.

I have tried just using ACL's, I tried with CBAC (got confused) and just tried using Zone Based Firewall. I can get the Private-to-Internet and WiSP-to-Internet stuff working fine. But each time I try to restrict traffic between the Private network and the WiSP network I either get full traffic flow both ways, or no traffic flow either way. I just want WiSP customer to reach the Internet only, and the private network to reach the Internet and manage the WiSP side.

Is this even possible? Any help is appreciated. I am not good with Cisco configs - slowly getting better. I just played around with ZBF in SDM today and hit the same wall - as soon as I create a zone-pair to block originating traffic in the WiSP zone to the private zone I lose connectivity the other way.

Help? Thanks in advance for anyone willing to help. I am at the point in trying this long enough that I want to pay someone else to do the config to my specs. haha :-|

deepblackmag

join:2004-12-27
00000

That should be completely possible, the correct technology is the zone based firewall approach.
I have used a PIX or ASA in the past to accomplish this, never tried ZBF in IOS before.
Ill lab this up thursday when I have time and reply with any config / suggestions / discoverys.

Bink

join:2006-05-14
Denver, CO
·Qwest.net

reply to acherman
I have not yet configured CBAC on VLAN interfaces, but can’t see why this would be an issue—it should just work with the right configuration. At the same token though, I do something similar at home with VLAN interfaces, but, kind of like you and m0n0wall, I have an OpenBSD box handling this task with nary an issue (and I’m EXTREMELY pleased).

acherman

join:2005-06-06
Hinton, AB

reply to acherman
That's great news!! Thanks for the info. I did try ZBF today, but like I said, as soon as I added a policy to block traffic generated from the WiSP side to the Private side I lost connection both ways. Got me discouraged and I asked for help. haha

I love m0n0wall - so easy to configure, and have been running it for a few hundred users for a few years now. But there are afew "quirks" that I think the 2811 can solve for us - just have to duplicate my current install first.

Any info you need to make helping me easier just ket me know. The true install is a little more grand than my diagram, but only in scale (more VLANs on the WiSP side, etc). I can post a true picture if it helps.

Thanks again to both of you for having a look.

deepblackmag

join:2004-12-27
00000


1 edit
reply to acherman
Alrighty sorry for the delay, my week has been hectic (but i managed to do my taxes, yay!)

As promised, i have the configuration labbed up right now for a 3 legged zone based firewall, with a subinterface for INSIDE, DMZ-WIFI, and OUTSIDE.
The configuration provided will permit outbound traffic in the following directions:
Inside->DMZ
Inside->Outside
DMZ->Outside
All other traffic flows should get dropped by the zone based firewall.

Im assuming you have a basic configuration with subinterfaces configured, in this case i used .1 .2 and .3
Here we created the zones and join the given interfaces to them:

Next i created a generic class-map. You might want multiple class maps with specific inspection entries to only permit or drop certain types of traffic.

Then we create a policy-map for inspecting INSIDE to OUTSIDE traffic and create a zone pairing between the inside and outside with that policy map.

At this point inside traffic should be able to reach the outside but not the DMZ. To permit traffic from the inside to the DMZ we need to create another policy map and zone pair.

Now the inside should be able to initiate a connection to anywhere, however the DMZ is still isolated from initiating any connections. We need to create one final policy map and zone pairing to let the DMZ goto the internet via the outside interface:

And that does it. We can validate with some show commands:

I telnet'd from my inside router through the zone based firewall router to the outside router to demonstrate the session tracking of the zbf.

Anyways I hope you can find some value in this info and adapt it to your environment. To permit inbound traffic the opposite direction, you will want to just create a very restrictive class-map, apply it in a policy-map and then finally stick the policy-map in a zonepair from out to in or out to dmz whatever is applicable. Im not an expert in this stuff, so let me know if there are any glaring errors here guys.

acherman

join:2005-06-06
Hinton, AB

No worries on the delay - I know how a week can get busy very quickly. Anyway, I'm just happy you're willing to help. I will work through this again in the morning and let you know how I make out. I may have some questions about adding ACL's to the class map for inbound stuff. For the most part I am fine passing all traffic types (not blocking anything), just restricting the hosts it goes to.

Thanks again. I REALLY appreciate your time and help.

acherman

join:2005-06-06
Hinton, AB

reply to deepblackmag
Hey deepblackmag,

Just wanted to say once again thank you for your help. I was able to adapt your info into my setup and get things working quite well - at least in this test environment.

When adding the zone-pair between the Inside and WiSP zones it did allow pings to be generated from the WiSP zone to the Inside zone - didn't seem right to me, but I created and ACL to block host generated ICMP messges (echo), put it in it's own class-map, then added that under the policy map for the outgoing traffic from the WiSP zone (to the Internet zone, but it works).

I am going to set up a few more devices and work with more ACL's embedded inside the policies to test with. I am having a problem with NAT Overload right now that will affect me in the future. Do you know much about that stuff as well?

Anyway, thanks again for your help. Your infor added to all of my reading has cleared up a lot of questions I have been stumbling with for a long time (I could even that good of help from Cisco with our Smarnet contract haha).

Thanks very much!!!

Aaron

cooldude9919

join:2000-05-29
Cape Girardeau, MO
clubs:

said by acherman See Profile :

Hey deepblackmag,

Just wanted to say once again thank you for your help. I was able to adapt your info into my setup and get things working quite well - at least in this test environment.

When adding the zone-pair between the Inside and WiSP zones it did allow pings to be generated from the WiSP zone to the Inside zone - didn't seem right to me, but I created and ACL to block host generated ICMP messges (echo), put it in it's own class-map, then added that under the policy map for the outgoing traffic from the WiSP zone (to the Internet zone, but it works).

I am going to set up a few more devices and work with more ACL's embedded inside the policies to test with. I am having a problem with NAT Overload right now that will affect me in the future. Do you know much about that stuff as well?

Anyway, thanks again for your help. Your infor added to all of my reading has cleared up a lot of questions I have been stumbling with for a long time (I could even that good of help from Cisco with our Smarnet contract haha).

Thanks very much!!!

Aaron
We use zbfw in all of our sites. It is really much easier to mess with then people think. Basically you just define your zones then define the zone-pairs to which you apply a policy-map too. You are basically saying i want to apply this set of rules to traffic between this set of two zones. Then you just make class-maps maching nbar,access-lists, or whatever and pass,inspect, or drop that traffic in your policy-map and the class-default takes care of whats left.

Nice work on the example deepblackmag
-
Forums » Equipment Support » Hardware By Brand » Cisco[HELP] NAT Overload (PAT) Help »
« [HELP] 877W VPN Setup  


Thursday, 26-Nov 15:48:57 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [109] New AT&T Ad Campaign Hits Back At Verizon
· [106] Time Warner Cable Fires Broadside At Broadcasters
· [95] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [69] TiVo Sees Record Customer Losses
· [57] In-Flight Internet Headed For Bumpy Landing?
· [38] Thanksgiving Open Thread
· [37] ICANN Slams DNS Redirection
· [34] Senators Want ACTA Made Public
· [34] Despite Billions In USF Fees, U.S. Libraries Lack Bandwidth
Most people now reading
· I'll Just Unplug That... [No, I Will Not Fix Your #@$!! Computer]
· Newegg Black Friday Sale started [Users Find Hot Deals]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· About throttling on non-torrent p2p transfers [TekSavvy]
· What is the spell hit cap for a lvl 80 full arcane spec mage [World of Warcraft]
· Windows 7 boot manager editing questions [Microsoft Help]
· Slow speeds in the evenings [TekSavvy]
· [ PVP] 3.2 DK PvP D/W Spec... [World of Warcraft]
· HOW-TO: QoS and Tomato (fixes "choppy voice") [MagicJack]