Koozali.org: home of the SME Server

Hostnames and addresses configuration question

Offline pablitobs

  • **
  • 35
  • +0/-0
Hostnames and addresses configuration question
« on: September 13, 2008, 06:09:48 AM »
Hi all, I with the next scenario I have a real mess and I don't know how to do what I want to do with my sme server. It goes like this:

1. I have one SME server as getaway/dhcp server connected to my ISP serving dhcp, firewall and all the service with ip [xxx.xxx.xxx.xxx]
2. Inside my land I have a second SME server running as stand alone server for an intranet application on local IP [192.168.1.93]
3. I have my web page called www.mydomain.xx
4. I point the subdomain intranet.mydomain.xx to [1] my first SME server ont its IP [xxx.xxx.xxx.xxx], now if I go to browser and type intranet.mydomain.xx I get the "site under construction" legen...until here everything is cool

5. on my first SME server [1] I configurate under hostname and addresses citas.intranet.mydomain.xx to point to the ip of my second SME server [2], 192.168.1.93 so this is the part I don't know if it is possible when a user types citas.intranet.mydomain.xx it goes first to intranet.mydomain.xx , get resolved by the SME server DNS and forward to the second SME Server.... But it only works locally out side of my network it does not work.

I don't know if I explained my self clearly... as I said it is a mess and I guess I need some one outside of the box go give me anothe point of view of how to do it.

Acordin to the documenation if I understand correctly I need a second interface on my [2] SME server, but I got loss on that one...

Thanks.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Hostnames and addresses configuration question
« Reply #1 on: September 13, 2008, 06:44:32 AM »
You need to create a proxypass in the first SME manually. I think in the next release (SME8) this issue will handled via web intrface through server-manager.

For now run this commands:

Code: [Select]
db domains set citas.intranet.mydomain.xx domain
db domains setprop citas.intranet.mydomain.xx Nameservers internet
db domains setprop citas.intranet.mydomain.xx ProxyPassTarget http://192.168.1.93/
db domains setprop citas.intranet.mydomain.xx TemplatePath ProxyPassVirtualHosts
signal-event domain-create citas.intranet.mydomain.xx

Pay attention to the trailing slash after IP

Of course, you must ensure you have configured you DNS provider with the host "citas" to be resolved to your IP, or better, if you have * hosts.

Information Source: http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass

BTW: please, in your free time read all the faq and manual at the wiki.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Hostnames and addresses configuration question
« Reply #2 on: September 13, 2008, 03:40:33 PM »
If proxypass gives you any trouble, you could also do this:

1) Reconfigure http on the lan-only sme to use port 81 (tricky, but do-able)
2) configure a re-write rule or http re-direct on the server-gateway SME to redirect citas.intranet.mydomain.xx to port 81
3) configure port forwarding on the server-gateway sme to send all traffic on port 81 to the lan-only sme.

Problems:
* getting http to respond on a non-standard port on a lan-only system is tricky

Benefit:
* proxypass is sometimes tricky to set up...