Koozali.org: home of the SME Server

External access to other computer on the inside network

Offline polarair

  • **
  • 32
  • +0/-0
    • http://www.cosoprinting.nl
External access to other computer on the inside network
« on: July 24, 2008, 09:57:59 AM »
Hi, I have been searching and reading but i have not found a logical anwser so i posting this today:
the problem, I have an SME server connected to the Internet with one primary domain (coso.com) and there are multiple vurtual domains and all run fine. Now i want one extra computer under then primary domain to be accessable from the inside and outside.
So the new computer in the network will run an webserver and needs to be called drent =(drent.coso.com) and is on the inside network =(192.168.2.xxx)
I have read that you need two network cards in the new system (drent) one for the inside and one for the outside but that would be rediculus as the machine is in a different building and there is only access to the internal network.
Solution:
A forwarding of the name drent.coso.com to the ip number directly via the SME server that is acting as DNS and have the firewall to protect the network.
I hope this is clear and sombody can make me  :-P
live is to short not to enjoy it :lol: ......

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: External access to other computer on the inside network
« Reply #1 on: July 24, 2008, 10:24:15 AM »
polarair

Look at the FAQ for Proxy Pass.

On the sme gateway server, proxy pass the domain drent.coso.com to the IP number of the other local server.
Remember to configure external DNS records to point that domain at your sme gateway server.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline polarair

  • **
  • 32
  • +0/-0
    • http://www.cosoprinting.nl
Re: External access to other computer on the inside network
« Reply #2 on: July 24, 2008, 11:52:35 AM »
But is this command used for a machine in the domain or the whole domain will be proxed.

If i understand you correctly this is what it schould look like right?

Code: [Select]
db domains set drent.coso.com domain
db domains setprop drent.coso.com Nameservers internet
db domains setprop drent.coso.com ProxyPassTarget http://192.168.2.xxx/
db domains setprop drent.coso.com TemplatePath ProxyPassVirtualHosts
signal-event domain-create drent.coso.com
I just want to be shure as im running this on a production server
Cheers
Mike
live is to short not to enjoy it :lol: ......

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: External access to other computer on the inside network
« Reply #3 on: July 24, 2008, 12:09:17 PM »
polarair

Only the domain specified is proxy passed
ie using the command
db domains setprop drent.coso.com ProxyPassTarget http://192.168.2.xxx/

then any http requests for drent.coso.com will be sent to 192.168.2.xxx, so you should have an active web server on that IP
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline polarair

  • **
  • 32
  • +0/-0
    • http://www.cosoprinting.nl
Re: External access to other computer on the inside network
« Reply #4 on: July 24, 2008, 01:44:50 PM »
Ok that makes sence.
So if the IP adress changes you only need to rerun the commands with the new IP Adress. then it schould look at the next IP.

Great thanks Mary

Mike
live is to short not to enjoy it :lol: ......