LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-14-2005, 06:53 AM   #1
inc0gs
Member
 
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31

Rep: Reputation: 15
dhcp and multiple external IPs


Is it possible to setup my linux box as a router and DMZ each computer on the network with a different external ip address ( i have 60 externals and will be hosting approx. 30 comps)?

like dmz
192.168.0.40 to external ip xx.xxx.xxx.101
and
192.168.0.41 to external ip xx.xxx.xxx.102
192.168.0.42 to external ip xx.xxx.xxx.103

etc. so that each computer has its own external IP address, but can still function on a lan. Right now, the way the network is setup, each computer is statically set with an external ip address, and when it connects to a network server, it actually goes out to the ISPs dns server, and then back in.


If this is possible, how should I go about doing this.

Rewiring the network is not an option that I have.

yeah, im a

Thanks in advance
 
Old 06-14-2005, 07:41 AM   #2
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Sure, that's possible. Only it wouldn't be a DMZ. If you assign an external IP to an internal on in a one-to-one manner you pretty much beat the purpose of a DMZ. But it is possible. In the title of you post you mentioned dhcp. I'm not sure why you did that. You're not planing on having your servers get their IPs from a dhcp server, are you??!?

You might want to elaborate on what you actually want to do...
 
Old 06-14-2005, 11:39 PM   #3
inc0gs
Member
 
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31

Original Poster
Rep: Reputation: 15
yeah I put dhcp in the title because I was thinking something like a dhcp server on the linux box, but then I started thinking, dhcp probably wouldn't work since I want static ips for all the pcs.

What I am trying to do is get the pcs to connect to the servers on lan instead of going out of the lan to the isp's dns server, and then back in to our local network to the servers on the local network.

I guess what I am trying to do is use linux as a router, so that all the pcs here use an internal ip address of 192.168.0.xxx or something, and have a nat to each of those ips to a different external ip, and at the same time allow connections from the pcs to servers on the linux box.

I am no networking guru, so I'm just guessing here.
 
Old 06-15-2005, 01:22 PM   #4
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Ok, I still don't fully understand the setup you have there. But here's how I would set up the network (this might not be possible for you since you said rewiring is not an option).

To setup a DMZ you need one computer with three network cards. One of which is connected to your ISP, the second to the DMZ, the third to your LAN. This way you have the DMZ physically separated from your LAN and connections that are initiated from the outside world never enter your LAN, only the DMZ.

The "three-homed router" can send connections from your LAN to the DMZ or the internet. So there's no need to go via your ISP's computers when the destination is the DMZ. Typically you would assign your DMZ hosts IPs from a different subnet then the one you use for your LAN. (The latter should be a private subnet unless you have good reason to assign routable IPs.)

If such a setup is not possible the next best thing would be a flat setup like this:

Internet ---- Firewall ---- your servers ---- Firewall2 ---- your LAN

If you can describe (or draw) the wiring I'd probably be able to give you more details.
 
Old 06-15-2005, 03:27 PM   #5
inc0gs
Member
 
Registered: Jul 2004
Distribution: Redhat EL 4
Posts: 31

Original Poster
Rep: Reputation: 15
click here for sketch of network setup.
sorry for just a link, this site doesn't allow posting of images.

Last edited by inc0gs; 06-15-2005 at 03:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple External IPs with iptables tvynr Linux - Networking 11 11-08-2005 03:31 PM
tc qdisc and multiple external IPs tvynr Linux - Networking 2 10-12-2005 08:49 PM
Question about iptables and multiple external IPs tvynr Linux - Networking 2 10-12-2005 08:48 PM
ADSL and multiple external static IPs adasko Linux - Networking 3 09-15-2005 08:01 PM
DHCP and Multiple IPs Matir Linux - Networking 0 02-23-2005 03:28 PM


All times are GMT -5. The time now is 11:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration