Networking Forums

Networking Forums > Computer Networking > Linux Networking > Name Based Routing

Reply
Thread Tools Display Modes

Name Based Routing

 
 
Frank Sweetser
Guest
Posts: n/a

 
      09-11-2006, 12:17 PM
QuasiDon <(E-Mail Removed)> wrote:
> Is it possible to create a linux router that will do name based
> routing? I have one dynamic IP address and I am using no-ip.com. I
> would like to have multiple webservers running, so I would have to have
> a router that can send traffic to the right webserver based on the
> domain name, not on the ip address. Can this be done?


No, but you could probably set up a squid reverse proxy that would do it (at
least for HTTP - HTTPS is a different story).

--
Frank Sweetser fs at wpi.edu | For every problem, there is a solution that
WPI Network Engineer | is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC
 
Reply With Quote
 
 
 
 
QuasiDon
Guest
Posts: n/a

 
      09-11-2006, 12:22 PM
Is it possible to create a linux router that will do name based
routing? I have one dynamic IP address and I am using no-ip.com. I
would like to have multiple webservers running, so I would have to have
a router that can send traffic to the right webserver based on the
domain name, not on the ip address. Can this be done?

Seth

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      09-11-2006, 12:41 PM
In comp.os.linux.networking QuasiDon <(E-Mail Removed)>:
> Is it possible to create a linux router that will do name based
> routing? I have one dynamic IP address and I am using no-ip.com. I
> would like to have multiple webservers running, so I would have to have
> a router that can send traffic to the right webserver based on the
> domain name, not on the ip address. Can this be done?


Yep, but you don't need a router for this. It is a standard
functionality of apache, called "virtual hosting". Just register
multiple CNAME or dyndns entry for your system and let apache sort
it out for you.

The docs about it should get you going:

http://httpd.apache.org/

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 375: Root name servers corrupted.
 
Reply With Quote
 
Giovanni
Guest
Posts: n/a

 
      09-11-2006, 12:44 PM
QuasiDon wrote:
> Is it possible to create a linux router that will do name based
> routing? I have one dynamic IP address and I am using no-ip.com. I
> would like to have multiple webservers running, so I would have to have
> a router that can send traffic to the right webserver based on the
> domain name, not on the ip address. Can this be done?


No I don't think so, but you can try the apache server and setup the
"virtual server" service to redirect request to the proper machine.

My server handle 5 domains in one machine.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 < http://giovanni.homelinux.net/ >
 
Reply With Quote
 
jewo
Guest
Posts: n/a

 
      09-13-2006, 08:15 AM
QuasiDon wrote:

> Is it possible to create a linux router that will do name based
> routing?


you can have a try with "policy based routing" and the iptables mark target.
but in your case, as already mentioned, virtual hosts in apache is what you
need.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
source based routing help needed Jack Snodgrass Linux Networking 4 02-29-2008 10:31 AM
Tcp/ip session based routing Tom Linux Networking 0 05-16-2006 03:34 AM
policy-based routing and NAT with iptables Florian Pressler Windows Networking 0 02-19-2005 01:45 AM
policy-based routing and NAT with iptables Florian Pressler Linux Networking 0 02-19-2005 01:45 AM
Routing based on dport bill davidsen Linux Networking 0 10-17-2003 06:23 PM



1 2 3 4 5 6 7 8 9 10 11