Koozali.org: home of the SME Server

forwarding port 80 to 2 different machines

Doug McCaughan

forwarding port 80 to 2 different machines
« on: November 27, 2001, 12:17:02 PM »
Hello All!

I am using Charlie Brady's e-smith-ipportfw script for ip forwarding on an ADSL line. I am using www.dyndns.org to manage the dynamic dns. I have 2 addresses coming in (1) this.dyndns.org and (2) that.dyndns.org. I want this.dyndns.org:80 to go to webserver A and I want that.dyndns.org:80 to go to webserver B. Just to be ultra clear, these are 2 physically different machines (incidentally running Windows2000Server) behind the e-smith gateway.

Can this be done?

Thanks.
Doug McCaughan

Charlie Brady

Re: forwarding port 80 to 2 different machines
« Reply #1 on: November 28, 2001, 02:05:40 AM »
Doug McCaughan wrote:

> I am using Charlie Brady's e-smith-ipportfw script for ip
> forwarding on an ADSL line. I am using www.dyndns.org to
> manage the dynamic dns. I have 2 addresses coming in (1)
> this.dyndns.org and (2) that.dyndns.org. I want
> this.dyndns.org:80 to go to webserver A and I want
> that.dyndns.org:80 to go to webserver B. Just to be ultra
> clear, these are 2 physically different machines
> (incidentally running Windows2000Server) behind the e-smith
> gateway.
>
> Can this be done?

No.

It can't be done using port forwarding, but it might be possible using virtual domains and the ProxyPass module of apache. See the apache ProxyPass documentation for details.

Regards

Charlie

Peter

Re: forwarding port 80 to 2 different machines
« Reply #2 on: August 30, 2003, 08:49:34 PM »
Hi Charlie !

I would like to set my redhat server (HTTP, Sendmail, FTP) behind my e-smith server/gateway.  So if you type the my.domain.ca it's going directly to redhat server.

Currently my web site is on my server/Gateway and I was woudering if it's realy a good choice.  Might as well put e-smith on the second server pIII 450mhz 18 gig scsi drive ( Dell PowerEdge )

Local ip adr e-smith (192.168.1.1/255.255.255.0 )
External ip adr        ( 67.68.254.107/255.255.255.0)
Gateway
DHCP server enable
begining                (192.168.1.65 )
Ending                  ( 192.168.1.250 )

server name
DNS server           (192.168.1.1 )

I'am using redhat in graphical mode 192.168.1.65  and would like to offer small services HTTP, FTP and mail out of this one.

Finaly I work downtown and would like to connect to Internet  via a modem connection from my remote laptop to my home server.  I'am dial in ok to my server but cannot be provide Internet access from my home server to my laptop.  Any suggestions.

Peter