Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 domain with 1 static ip

Reply
Thread Tools Display Modes

2 domain with 1 static ip

 
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-11-2007, 09:09 AM
Hi
I have 2 domain names and 1 static ip, how can i forward all the
packets from domain name A to computer A and all the packets from
domain name B to cmoputer B?
Can squid help me? Is there any router can do this instead of
software?
thanks
from Peter ((E-Mail Removed)

 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      02-11-2007, 12:20 PM
On 2007-02-11, (E-Mail Removed) <(E-Mail Removed)> wrote:
> I have 2 domain names and 1 static ip, how can i forward all the
> packets from domain name A to computer A and all the packets from
> domain name B to cmoputer B?


Packets have no 'domain', only IPs, so there is no 'domain' in there
to forward. You could redirect connection based on the _protocols_, but
then you'll need a specific proxy for such protocol.

Davide

--
It might not be practical, it might not be a good idea, but it could
work. Sort of like Windows.
--berry
 
Reply With Quote
 
Ariel Moskovich
Guest
Posts: n/a

 
      02-11-2007, 02:26 PM
(E-Mail Removed) wrote:

> Hi
> I have 2 domain names and 1 static ip, how can i forward all the
> packets from domain name A to computer A and all the packets from
> domain name B to cmoputer B?
> Can squid help me? Is there any router can do this instead of
> software?
> thanks
> from Peter ((E-Mail Removed)


Hi,
Router can route the traffic according to the ports (assuming that domain A
uses diffrent services that domain B).
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      02-11-2007, 03:05 PM
(E-Mail Removed) wrote:
> I have 2 domain names and 1 static ip, how can i forward all the
> packets from domain name A to computer A and all the packets from
> domain name B to cmoputer B?
> Can squid help me? Is there any router can do this instead of
> software?
> thanks


You can route based on name only if you're using a protocol that
includes the domain name in the connection information. For example,
for HTTP (not HTTPS) a web server can read the name and forward to other
web servers.

Otherwise, the only thing that matters is the numeric address. Domain
names are for water/carbon units that don't think in binary.
 
Reply With Quote
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-11-2007, 03:47 PM
On 2¤ë11¤é, ¤U¤È9®É20¤À, Davide Bianchi <davideyeahs....@onlyforfun.net>
wrote:
> On 2007-02-11, cmk...@hotmail.com <cmk...@hotmail.com> wrote:
>
> > I have 2 domain names and 1 static ip, how can i forward all the
> > packets from domain name A to computer A and all the packets from
> > domain name B to cmoputer B?

>
> Packets have no 'domain', only IPs, so there is no 'domain' in there
> to forward. You could redirect connection based on the _protocols_, but
> then you'll need a specific proxy for such protocol.
>
> Davide
>
> --
> It might not be practical, it might not be a good idea, but it could
> work. Sort of like Windows.
> --berry


port forward doesn't help, because both two servers need port 80

 
Reply With Quote
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-11-2007, 03:50 PM
On 2¤ë12¤é, ¤W¤È12®É05¤À, Allen Kistler <ackist...@oohay.moc> wrote:
> cmk...@hotmail.com wrote:
> > I have 2 domain names and 1 static ip, how can i forward all the
> > packets from domain name A to computer A and all the packets from
> > domain name B to cmoputer B?
> > Can squid help me? Is there any router can do this instead of
> > software?
> > thanks

>
> You can route based on name only if you're using a protocol that
> includes the domain name in the connection information. For example,
> for HTTP (not HTTPS) a web server can read the name and forward to other
> web servers.
>
> Otherwise, the only thing that matters is the numeric address. Domain
> names are for water/carbon units that don't think in binary.


my linksys router only have port forward. YES, i really need an "ip
forward" router, any introduce?

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      02-11-2007, 04:01 PM
(E-Mail Removed) wrote:
> On 2¤ë11¤é, ¤U¤È9®É20¤À, Davide Bianchi <davideyeahs...@onlyforfun.net>
> wrote:
>
>>On 2007-02-11, cmk...@hotmail.com <cmk...@hotmail.com> wrote:
>>
>>
>>>I have 2 domain names and 1 static ip, how can i forward all the
>>>packets from domain name A to computer A and all the packets from
>>>domain name B to cmoputer B?

>>
>>Packets have no 'domain', only IPs, so there is no 'domain' in there
>>to forward. You could redirect connection based on the _protocols_, but
>>then you'll need a specific proxy for such protocol.
>>
>>Davide
>>
>>--
>>It might not be practical, it might not be a good idea, but it could
>>work. Sort of like Windows.
>>--berry

>
>
> port forward doesn't help, because both two servers need port 80
>


If you are using Apache for the TCP/80 servers, have a look
at virtual hosts - it is built-in.

--

-Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-12-2007, 03:29 AM
On 2¤ë12¤é, ¤W¤È1®É01¤À, Tauno Voipio <tauno.voi...@INVALIDiki.fi> wrote:
> cmk...@hotmail.com wrote:
> > On 2¤ë11¤é, ¤U¤È9®É20¤À, Davide Bianchi <davideyeahs...@onlyforfun.net>
> > wrote:

>
> >>On 2007-02-11, cmk...@hotmail.com <cmk...@hotmail.com> wrote:

>
> >>>I have 2 domain names and 1 static ip, how can i forward all the
> >>>packets from domain name A to computer A and all the packets from
> >>>domain name B to cmoputer B?

>
> >>Packets have no 'domain', only IPs, so there is no 'domain' in there
> >>to forward. You could redirect connection based on the _protocols_, but
> >>then you'll need a specific proxy for such protocol.

>
> >>Davide

>
> >>--
> >>It might not be practical, it might not be a good idea, but it could
> >>work. Sort of like Windows.
> >>--berry

>
> > port forward doesn't help, because both two servers need port 80

>
> If you are using Apache for the TCP/80 servers, have a look
> at virtual hosts - it is built-in.
>
> --
>
> -Tauno Voipio
> tauno voipio (at) iki fi


Yes, it works, thank you.
How about the telnet and ftp?
thanks
from Peter

 
Reply With Quote
 
Mr. I.M. Puss
Guest
Posts: n/a

 
      02-12-2007, 03:33 AM
(E-Mail Removed) wrote:
> Hi
> I have 2 domain names and 1 static ip, how can i forward all the
> packets from domain name A to computer A and all the packets from
> domain name B to cmoputer B?
> Can squid help me? Is there any router can do this instead of
> software?
> thanks
> from Peter ((E-Mail Removed)
>


It sounds like you want to use a load balancer - have a look at:

Pound - http://www.apsis.ch/pound
Pen - http://siag.nu/pen/
Balance - http://www.inlab.de/balance.html

They're relatively easy to set up. I used Pound a long time ago but
have since started using hardware load balancers.

This might help you out.
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      02-12-2007, 09:10 PM
(E-Mail Removed) wrote:
> On 2¤ë12¤é, ¤W¤È1®É01¤À, Tauno Voipio <tauno.voi...@INVALIDiki.fi> wrote:
>
>>cmk...@hotmail.com wrote:
>>
>>>On 2¤ë11¤é, ¤U¤È9®É20¤À, Davide Bianchi <davideyeahs...@onlyforfun.net>
>>>wrote:

>>
>>>>On 2007-02-11, cmk...@hotmail.com <cmk...@hotmail.com> wrote:

>>
>>>>>I have 2 domain names and 1 static ip, how can i forward all the
>>>>>packets from domain name A to computer A and all the packets from
>>>>>domain name B to cmoputer B?

>>
>>>>Packets have no 'domain', only IPs, so there is no 'domain' in there
>>>>to forward. You could redirect connection based on the _protocols_, but
>>>>then you'll need a specific proxy for such protocol.

>>
>>>>Davide

>>
>>>>--
>>>>It might not be practical, it might not be a good idea, but it could
>>>>work. Sort of like Windows.
>>>>--berry

>>
>>>port forward doesn't help, because both two servers need port 80

>>
>>If you are using Apache for the TCP/80 servers, have a look
>>at virtual hosts - it is built-in.
>>
>>--
>>
>>-Tauno Voipio
>>tauno voipio (at) iki fi

>
>
> Yes, it works, thank you.
> How about the telnet and ftp?
> thanks
> from Peter
>


FTP is a nuisance to handle in NAT routers. Besides, it is pretty
insecure, which applies to Telnet, as well.

Please use SSH. You'll get a file transfer protocol (scp) for free.

--

Tauno Voipio
tauno voipio (at) iki fi
 
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
mail server behind router port forwarding 25 domain static ip postfix lonux linux konqueror in progress Linux Networking 1 06-22-2007 01:28 PM
server Linux domain accounts remote access static IP linux konqueror in progress Linux Networking 2 12-22-2006 09:19 PM
Does a Domain Server need a static IP? Joe Befumo Windows Networking 2 12-20-2006 04:46 PM
Accessing my domain (or static IP address) opens Management Tool beachside Broadband Hardware 1 11-12-2005 08:25 PM
Is there any static ARP concept for static IP network? linux.lover2004@gmail.com Linux Networking 6 05-19-2005 01:40 PM



1 2 3 4 5 6 7 8 9 10 11