Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 21st, 2004, 10:47 PM
martinwtp martinwtp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: hk
Posts: 83 martinwtp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 31 sec
Reputation Power: 5
how does firewall work to protect other machines

Let say i got 10 public IPs
1 router
2 swithch
1 firewall with NAT
1 reverse proxy
3 webservers
2 dns (pri and sec)

what should IP assign to those machines?
I have no experience how to set that.
How does a firewall work (i dont' mean how to setup a firewall, i know iptables) to protect the other machines? Firewall got all public IPs ?

I don't actually know how to figure it out.

someone help? or any information on how to connect these equipment together?
thank you.

Reply With Quote
  #2  
Old March 22nd, 2004, 01:44 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
I would set the external IP addresses to the most external interface. Keep everything internal with internal addresses, like 192.168.0.x. Then use the NAT on the firewall to make it seem as though requests inside the internal network are coming from the external IP address.

What do you actually want to do with 10 IP addresses?

If you have a router, this probably has everything built into it. I would have thought that it has a firewall built in (so you don't need to buy an extra firewall). You just plug your router into one of your switches and the external Internet inferface and set it up through the web based admin.

You say you've got two switches. You can connect these two together using a standard cable, plugged from the uplink port in one to the standard port in the other.

For your webservers, you'll want to setup port forwarding. On your firewall, configure it to enable port forwarding, so that all requests for port 80 are forwarded to your internal web servers.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #3  
Old March 22nd, 2004, 04:01 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
Edwinbrains is explaining how this would work in like a home network or very small office using a single public address with a single server for each port that gets accessed from the outside (port forwarding).

Here is how it would work if you are using corporate level equipment such as cisco, 3com, bay, etc.

Some routers can be purchased for extra cost with a firewall IOS but come without it normaly. so your router would have the first public on the outside interface and the second public on the inside interface going to firewall (let say PIX) the PIX would use the 3rd public address on its outside interface and a forth public on the global ( this would be what your addresses on the inside would be tranlated to using PAT (port address translation)) now you have your infrastructure down now you will use a fifth public as a secondary ip address on the PIX outside and have static NAT to reverse proxies private address which will talk to the 3 webservers it is proxing for on their private address ( this way the web server has its own public address and its own ACLs apposed to just using port forwarding on a single public, which if you had multiple web servers and not using a reverse proxy then each would need their own public address (static NAT entry creating additional public addresses on the outside PIX interface) as port forwarding can only go to one server). The internal users would have their own public using PAT (PAT is actualy a form of NAT that translates multiple IPs to one IP but each using a different port, NAT can be static or dynamic and is a one-to-one translation).

Everything else in your network would use private addresses. only use public addresses in a static NAT scenario for your servers and such so you can firewall. NAT alone gives no firewalling ability.

Last edited by juniperr : March 22nd, 2004 at 04:11 PM.

Reply With Quote
  #4  
Old March 22nd, 2004, 07:58 PM
martinwtp martinwtp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: hk
Posts: 83 martinwtp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 31 sec
Reputation Power: 5
Thank you all.
how about DNS?

Reply With Quote
  #5  
Old March 22nd, 2004, 10:28 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
What about DNS? your internal DNS servers would have private addresses and would be set to forward any request it can not accomodate to your ISPs DNS server or the root DNS servers, you do not want to give it a public unless you want everyone on the internet to use it.

Reply With Quote
  #6  
Old March 23rd, 2004, 01:03 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
Quote:
Originally Posted by juniperr
Edwinbrains is explaining how this would work in like a home network or very small office using a single public address with a single server for each port that gets accessed from the outside (port forwarding).


I suppose I should have guessed from the equipment that it wasn't a home or small office setup, shouldn't I?

Reply With Quote
  #7  
Old March 23rd, 2004, 07:22 AM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
Yea the 3 web servers sitting behind a reverse proxy tells me he is planning on getting alot of traffic and needs redundency also like a round-robin deals for the servers to keep them 24/7.

Reply With Quote
  #8  
Old March 23rd, 2004, 12:47 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
Quote:
Originally Posted by juniperr
Yea the 3 web servers sitting behind a reverse proxy tells me he is planning on getting alot of traffic and needs redundency also like a round-robin deals for the servers to keep them 24/7.

Perhaps I should stop writing and start reading a bit more

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > how does firewall work to protect other machines


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway