LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-23-2005, 01:23 PM   #1
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Rep: Reputation: 15
Internal routing of traffic within LAN


I don't know if this is possible, but I have been doing a bit of research and it seems that I should be able to achieve what I want by employing some DNS software (Bind etc...)

Basically I have my DSL internet connection going into an old PII 233 that runs Smoothwall. I have this setup as a green / orange / red divisions, with the 'red' being the external internet, 'orange' being the DMZ where all my servers live, and 'green' being the internal house network where all the computers in the house connect through.

I have four servers sitting in the DMZ running different apps and for testing etc .. from my desktop I can access each of the servers by their hostnames rather than the internal IP addresses of them as I have all their IP addresses and hostnames in my /etc/hosts file. So ssh etc is simple. However, I can't achieve this for people accessing the servers from the 'outside world'.

For example, two of the servers run webserving software (apache & apache2 for testing) - when I am on my desktop computer (within the LAN) I can surf to the computer that I want to use within a browser using the hostname of the computer, but the only way that I can achieve the same effect for the outside world is to run apache on different ports on the two servers.

I have a Dynamically assigned IP address so I use no-ip for the DDNS. But I want someone to be able to do the following:

www1.domain.com >> server1
www2.domain.com >> server2

etc ....

Obviously the domain is pointing to my IP address, its more the subdomains of that that I want to be able to control for. Is it possible to use some DNS software on one of the servers in the DMZ to achieve this. So basically everything that comes into the network checks which server it should be pointed at??

Thanks guys.
 
Old 04-23-2005, 02:29 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
There's no way to do this in the way you're asking as far as i'm aware, as the two things are running at such different networking levels. Instead though, you could use one server, possibly the Smoothwall box if it's up for it, to proxy the http traffic via apache, or something more lightweight i don't know exists.. . Using an Apache proxy it will redirect to other servers based on the server name. Obviously this is a relatively hefty solution, but then if you do have a "main" web server anyway, that's a great place to put it.

now though... someone will probably tell you how to do it the way you want!
 
  


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
routing traffic out different eth#?? cjs500 Linux - Networking 3 07-11-2005 12:59 AM
Routing traffic fuelinjection Linux - Networking 3 04-01-2005 05:51 PM
[Debian - Sid]Firestarter isnt masq/routing my internal traffic DeFiAnCeNL Linux - Networking 1 03-25-2005 05:35 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
Redirect traffic to internal IP? xmutex Linux - Networking 1 08-13-2001 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration