LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-29-2008, 11:07 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Proxy Server Placement and Cisco 2811 Zone Base Firewall


I have a client that has this type of infrastructure and they would like an Proxy/Web Filter in which I have decided to add a CentOS 5 box with Squid/Dansguardian/Webmin for about 150 user. Is this the correct placement for it. Would I need to make any adjustments of the Cisco router/zone based firewall if I were to place the proxy in this location? I am stuck!

PHP Code:
T1/ISP Router                         
   
|                     
Proxy Server                                 
   
|                                         
   |                                         
Cisco 2811 router/Firewall----------------DSL/Router
   
|                                         |
   |                                         |
   |                                    
Dell Switch 
   |                                         |
   |                                         |
3com Switch/Dell Switch               VLAN 10/192.168.5.0
   
|                                         | 
   | 
VLAN 2/192.168.3.0                      |
   |                                         |
MS Mail Server                           MS Server
   
|                                         |
   |                                         |
Web Server                                 Guests 

Last edited by metallica1973; 09-29-2008 at 11:08 AM.
 
Old 09-29-2008, 11:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
It's hard to say quite where it should go there, and that topology doesn't really match anything i'd go anywhere near professionally. The "Guests" route through a windows box, and a DamnSmall router?

Anyway, generally you'd want it in a DMZ, which here I suppose would be another interface off of the 2811, either dedicated or a trunk. Generally you could put it next to your internet facing MX, as it's a reasonably equivalent device.
 
Old 10-06-2008, 06:33 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Acid_keypie,

I am always grateful for your advice but this is the infrastructure that I am stuck with. Can you visually give me an example? I will be filtering both subnets. Also I am having trouble understanding a proxy being in a DMZ. Why wouldnt I place the proxy between the T1 router and the 2811? Wouldnt it filter the traffic accordingly and without compromising security?

PHP Code:
T1/ISP Router                         
   
|                     
   |                                 
   |                                         
   |                                         
Cisco 2811 router/Firewall------DMZ---Web Proxy---------------DSL/Router
                                           
|             |
                                           |             |
   |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>          
Dell Switch 
   |                                                     |
   |                                                     |
3com Switch/Dell Switch                         VLAN 10/192.168.5.0
   
|                                                     | 
   | 
VLAN 2/192.168.3.0                                  |
   |                                                     |
MS Mail Server                                       MS Server
   
|                                                     |
   |                                                     |
Web Server                                             Guests 

Last edited by metallica1973; 10-06-2008 at 06:45 PM.
 
Old 10-07-2008, 09:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well why *would* you put it in between? you do mean in a L3 sense? actually routing all traffic through it? yuck. the diagram is a bit confusing, putting a vlan, a switch, a server and a userbase all as items on what appears to be a logical route through the network - are you routing through your mail server?? You've got "DMZ" listed in the diagram, what does that mean?

if you put the box in the subnet between the 2811 and the DSL router, then that could constitute a DMZ in itself.
 
Old 10-08-2008, 06:00 AM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Maybe this diagram is better.

PHP Code:
T1/ISP Router                         
   
|                     
   |                                 
   |                                         
   |                                         
Cisco 2811 router/Firewall------DMZ---Web Proxy-------DSL/Router
                                           
|             |
                                           |             |
   |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>          
Dell Switch 
   |                                                     |
   |                                                     |
3com Switch/Dell Switch                         VLAN 10/192.168.5.0
   
|                                                     | 
   | 
VLAN 2/192.168.3.0                                  |
   |                                                     |
  
LAN                                                   LAN 
I need the proxy server too filter both subnets. You had stated that the proxy server should go into a DMZ and that you would filter traffic in the DMZ. You have me really confused. Neither one of these subnets is in a DMZ. Are you saying to create a DMZ just for the proxy server and then router all LAN traffic through the DMZ through the proxy and then out to the internet?????????????????????????????

or

PHP Code:
T1/ISP Router                         
   
|                     
   |                                 
   |                                         
   |                                         
Cisco 2811 router/Firewall-----------Proxy------------DSL/Router
   
|                                                     |
   |                                                     |
Proxy                                                    |
   |                                                 
Dell Switch 
   |                                                     |
   |                                                     |
3com Switch/Dell Switch                         VLAN 10/192.168.5.0
   
|                                                     | 
   | 
VLAN 2/192.168.3.0                                  |
   |                                                     |
  
LAN                                                   LAN 
??????

Last edited by metallica1973; 10-08-2008 at 06:05 AM.
 
Old 10-09-2008, 11:37 PM   #6
rhelaine
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
Your client topology is ...how to say that without being too harsh... "interesting"

really...it is a nightmare...
Anyhow....

First thing i would like to know is how many interface you have to work with on the PIX....ideally you would want 3 ports to create a DMZ and put the proxy there....however it is not 100% necessary.

DMZ option

ISP
|
|
|
| DMZ
Firewall --------- Proxy
|
|
|
Internal (whatever they decide to do in there)



If you only have 2ports (in and out) go bold and put the proxy just behind the firewall...

ISP
|
|
|
|
Firewall
|
|
Proxy
|
|
Internal

The first solution with DMZ is the best as far as security monitoring etc but you need to be sure the firewall blocks all internet connection from the internal network.
but the second one is nice because you don't have to mess with the Firewall too much.
 
Old 10-10-2008, 02:44 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Where did a pix come from?

Gotta say those diagrams really aren't any better in any way. you need to draw a single OSI layer. Here I don't care about switches (at layer 2) i don't care about vlans, I care about routes. Hopefully rhelaine's dmz diagram makes things look simple in theory, and you can then apply that to the infrastructure you have. but you really should look to avoid routing through a proxy, it seems simpler but isn't in the long term. point the browsers explicitly at the proxy which is off to one side in the dmz, which is basically on the way out towards the net, and jobs a good un.
 
Old 10-10-2008, 09:47 AM   #8
rhelaine
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
sorry i read cisco firewall and i didn't read the model number....oups

Apparently that thing as plenty of port so yes go with a dmz for sure putting the proxy on the internal net doesn't make much sense in that case.

As far as pointing the browser to the proxy i wouldn't do that....i would redirect the internet traffic to the proxy with the cisco and put the proxy in transparent mode. On the short term it will avoid having to go on 150 machines and change the configuration, on the long run it will avoid support call from idiots trying to bypass the proxy, and the cisco should be able to handle it pretty easily.
 
Old 10-11-2008, 10:39 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nope. transparent proxies are the suxx0rzz, wccp my arse. a good proxy.pac and life is very easy without any of the significant losses of a transparent proxy like no direct user authentication.
 
Old 10-14-2008, 10:46 PM   #10
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
So put the proxy in the DMZ and then route both subnet to the proxy in the DMZ through the Cisco router?
 
Old 10-15-2008, 02:27 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well in general yes, although it's probable that you wouldn't need to adjust routing as it'd be obtained via your default routes anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server as firewall and proxy. fiomba Linux - Security 2 11-16-2005 06:24 AM
Simple proxy/firewall server scammeh^ Linux - Networking 3 10-15-2003 01:11 PM
Setup firewall proxy server on RH7.1 Tannv Linux - Networking 2 02-22-2002 04:19 AM
linux firewall with internet zone, dmz and trusted zone ikhwan98 Linux - Security 1 11-27-2001 04:45 AM
how to setup a ipchains firewall after cisco Router using proxy ARP? or NAR cybercop12us Linux - Security 0 10-17-2001 07:07 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration