Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Placing a production server behind a PIX firewall

Hello everyone,

currently we have a web server that's connected to the Internet directly (multiple addressable IPs, belonging to 5 different Class C ranges, with a soft firewall).

There are multiple Web sites, some of them with their own IPs, some of them sharing IPs with other sites.

We are planning to put the server behind a PIX firewall, and convert the addressable IPs to private IPs and do the static mapping on the PIX.

We plan on using a PIX with 2 (two) interfaces.

Do you guys think this is feasible or are there some things I am overlooking?

Some things that I am not certain about:

Since there are multiple C class IPs assigned to the server, and therefore 5 defined gateways on the one NIC, one for each class, how is that defined on the PIX ? 5 separate routes or...?

Do we need to use some sort of "virtual interfaces", one for each class C subnet?

This is an example of "final product":

Web request to the addressable IP 204.xxx.85.10 would be directed to the private IP: 10.xxx.85.10.

Web request to the addressable IP 204.xxx.86.10 would be directed to 10.xxx.86.10 etc etc.

Any help you could provide in this matter will be GREATLY apprechiated!

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Placing a production server behind a PIX firewall

Hello,

Would you please provide a topolgy (crude text would work). I can't tell from your description if you have a perimeter router in front of the Pix. Also, when you write out static route statments on the Pix, you need to include an interface like so

route if_name ip_address netmask gateway_ip

Once you post that information, I'll take another read to better understand your situation.

Thanks

8 REPLIES
Cisco Employee

Re: Placing a production server behind a PIX firewall

Hello spejic,

This should be doable. The only issue is you can't assign secondary addresses on a Pix interface. You could one of two things.

1. Put a router behind the Pix and use secondary addressing there. Then you would define the static like so and route everything to the router

static (inside,outside) 204.xxx.85.10 10.xxx.85.10

static (inside,outside) 204.xxx.86.10 10.xxx.86.10

static (inside,outside) 204.xxx.87.10 10.xxx.87.10

static (inside,outside) 204.xxx.88.10 10.xxx.88.10

static (inside,outside) 204.xxx.89.10 10.xxx.89.10

2. Define statics like this

static (inside,outside) 204.xxx.85.10 10.xxx.85.10

static (inside,outside) 204.xxx.86.10 10.xxx.85.11

static (inside,outside) 204.xxx.87.10 10.xxx.85.12

static (inside,outside) 204.xxx.88.10 10.xxx.85.13

static (inside,outside) 204.xxx.89.10 10.xxx.85.14

Hope that helps! If so, please rate.

Thanks

New Member

Re: Placing a production server behind a PIX firewall

Hello hemendoz, and thank you for your reply!

We are limited in what we can do when it comes to routing, because the default gateway(s) for the five class Cs belong to our upstream internet provider (it's a single router that is on our premises but belongs to them, routing our 5 class Cs to the Internet).

So the PIX will have to function as a NAT router.. approximately 50 public IPs, now assigned to a single server NIC, should be moved to the outside interface of PIX (rather, mapped), and the existing IPs will have to be converted to private ones... and that means that each separate class C address must have a way of communicating with the Internet.. therefore PIX needs to know that:

- For each IP in 204.xxx.85.0/24 range, to which the private 10.xxx.85.0/24 range will be translated, the default gateway is 204.xxx.85.125

- For each IP in 204.xxx.86.0/24 range, to which the private 10.xxx.86.0/24 range will be translated the default gateway is 204.xxx.86.125

etc etc

So basically the PIX needs to be aware of 5 separate gateways that it will use when translating traffic from 5 separate classes... which leads me to believe that I can't just specify a default route.. I'd know how to add 5 routes on a Cisco router... but with the PIX, I am not too sure how it's done in this particular scenario..

Thanks very much in advance for your help!!

New Member

Re: Placing a production server behind a PIX firewall

I'd like to rephrase my question...

say I add a default route like this:

route 0.0.0.0 0.0.0.0 204.xxx.85.125

If this was the only class C involved, then a client could access a website like this: http://204.xxx.85.44 for example...

but what would happen if they tried to access a website on a different class C.. such as http://204.xxx.86.22 - because the PIX only has a default route pointing to 204.xxx.85.125 gateway...

would this still work?

Thanks!!

Cisco Employee

Re: Placing a production server behind a PIX firewall

Hello,

Would you please provide a topolgy (crude text would work). I can't tell from your description if you have a perimeter router in front of the Pix. Also, when you write out static route statments on the Pix, you need to include an interface like so

route if_name ip_address netmask gateway_ip

Once you post that information, I'll take another read to better understand your situation.

Thanks

New Member

Re: Placing a production server behind a PIX firewall

Hemendoz,

thank you for your help, it is very much apprechiated. The exact topology can be viewed at:

http://www.pejic.ca/Diagrams/diagram001.jpg

(Please enlarge the JPG to make it readable).

As you can see, there's a web server facing the Internet without a hardware firewall, which is obviously not the best security practice, so we want to implement a PIX firewall to protect it.

We don't have a PIX yet, but are planning on getting either a 515e or a slightly higher-end model..

Again, my main concern is whether the routing would work after we convert the IP addresses to private ones and assign the IP addresses, currently assigned to the server's NIC, to PIX's outside interface. Since the PIX will accept only a single default gateway, I am not quite sure how to make it work.

Thanks very much in advance for looking at the diagram!!

Cisco Employee

Re: Placing a production server behind a PIX firewall

Looks like you are going to have to go with Solution #1.

1. Put a router behind the Pix and use secondary addressing there. Then you would define the static like so and route everything to the router

static (inside,outside) 204.xxx.85.10 10.xxx.85.10

static (inside,outside) 204.xxx.86.10 10.xxx.86.10

static (inside,outside) 204.xxx.87.10 10.xxx.87.10

static (inside,outside) 204.xxx.88.10 10.xxx.88.10

static (inside,outside) 204.xxx.89.10 10.xxx.89.10

So new topology would like so

ISP router

|

|

Pix

|

|

Internal router

|

|

Web Server

Routing would be setup like so on the Pix

route inside 204.xxx.85.0 255.255.255.0 w.x.y.z

route inside 204.xxx.86.0 255.255.255.0 w.x.y.z

route inside 204.xxx.87.0 255.255.255.0 w.x.y.z

route inside 204.xxx.88.0 255.255.255.0 w.x.y.z

route inside 204.xxx.89.0 255.255.255.0 w.x.y.z

where w.x.y.z is the internal router who's interface is on the same network as the Pix inside network

Then on the internal router, you could create secondary addresses.

Hope that helps!

New Member

Re: Placing a production server behind a PIX firewall

Thank you hemendoz, I do apprechiate your help!

Cisco Employee

Re: Placing a production server behind a PIX firewall

Not a prob. Thanks for rating the posts!

127
Views
10
Helpful
8
Replies
CreatePlease login to create content