Koozali.org: home of the SME Server

Can not view server from inside network.

Offline zukii

  • 3
  • +0/-0
Can not view server from inside network.
« on: December 27, 2008, 06:05:54 PM »
I have installed SME Server 7.4 in server only mode on an old PC with one nic card, behind a netgear router in DMZ mode for the server address. I can view the server-manager and files from inside the network using the ip addy, but when i go to try and use http://my-domain.com or https://my-domain.com/server-manager from inside the network it says page not found..


I have internet connection connected to cable modem then to netgear router, then the server and 3 computers are connected to router for network.


The router gets its ip and dns Dynamically from ISP

Router Status
Internet Port 
IP Address    199.0.194.103
DHCP    Client
IP Subnet Mask    255.255.252.0
Domain Name Server    199.0.207.135    199.0.203.138
 
LAN Port 
IP Address    192.168.0.1
DHCP    Server
IP Subnet Mask    255.255.255.0

The LAN IP Setup in the router for the 3 computers
IP Address = 192.168.0.1
IP Subnet Mask = 255.255.255.0
then Use Router As DHCP Server is checked
Starting IP Address = 192.168.0.2
Ending IP Address = 192.168.0.50


The Server Setup
WAN Setup
Default DMZ Server = 192.168.0.100 and tried to set it inside the routers dhcp as 192.168.0.40 after the other 3 computers ip addys, but before the ending ip.
IP Subnet Mask = 255.255.255.0
Default Gateway = 192.168.0.1


I have reinstalled the server thought that would help. ..... nope
I have tried to reconfigure the server settings ............... nope
I have tried to connect the to a switch between the modem and router......... nope
Thanx in Advance
« Last Edit: December 28, 2008, 05:27:52 AM by zukii »

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Can not view server from inside network.
« Reply #1 on: December 27, 2008, 07:17:54 PM »
I have installed SME Server 7.4 in server only mode on an old PC with one nic card, behind a netgear router in DMZ mode for the server address.

Don't do that, it isn't secure when SME is set up in Server Only mode.  If you want the server visible from outside your local network, forward only the ports required such as 80, 443, etc.

Quote
I can view the server-manager and files from inside the network using the ip addy, but when i go to try and use http://my-domain.com or https://my-domain.com/server-manager from inside the network it says page not found..

Your client machines probably won't resolve the server's domain name if they get their IP and DNS information from the router. 

What happens if you type?

http://servername or https://servername/server-manager

Quote
The router gets its ip and dns Dynamically from ISP

And this may not resolve your server's domain name for 2 possible reasons.

1-If you don't have a DNS record for your domain, it will be impossible for your ISP to resolve back to your IP address.
2-If you have your DNS records set up, your router may not understand how to properly route the request out and back through to your server.

If I were you, I would dump the netgear router, put another NIC card in the server and put SME in Server-Gateway mode.

If you must use the router, I would turn off DHCP on the router and turn it on in the server.  SME has very good DHCP and DNS servers built in.
In life, you must either "Push, Pull or Get out of the way!"

Offline zukii

  • 3
  • +0/-0
Re: Can not view server from inside network.
« Reply #2 on: December 27, 2008, 09:22:23 PM »
Don't do that, it isn't secure when SME is set up in Server Only mode.  If you want the server visible from outside your local network, forward only the ports required such as 80, 443, etc.

I have it setup in dmz mode for the moment cause I have tried to just forward the required ports and it does the same thing.

What happens if you type?
http://servername or https://servername/server-manager

When I type http://servername or https://servername/server-manager it works as if i type http://192.168.0.100 or https://192.168.0.100/server-manager ..... which all work fine from inside the network.... but if i would like to view a site from the server as the public would http://my-domain.com it says page not found from inside the network.


And this may not resolve your server's domain name for 2 possible reasons.

1-If you don't have a DNS record for your domain, it will be impossible for your ISP to resolve back to your IP address.
2-If you have your DNS records set up, your router may not understand how to properly route the request out and back through to your server.

If I were you, I would dump the netgear router, put another NIC card in the server and put SME in Server-Gateway mode.

If you must use the router, I would turn off DHCP on the router and turn it on in the server.  SME has very good DHCP and DNS servers built in.

My domain names are from http://www.dyndns.com/ and are forwarded to my dynamic ip address..

I had another pc with SME setup and running in server/gateway mode with two nics in it and it ran awsome everything worked fine.. but the wife fried her processor in her pc so I had to dump the sme server and get her a pc again and the only other one I had lying around was the pc I have setup now running sme and it has only internal nic on the board and no other way for another nic card.. So the only way I think I can run it safely it to run it behind the router. unless i take back the wifeys pc and I dont think thats gonna be an easy task... :shock:

Offline zukii

  • 3
  • +0/-0
Re: Can not view server from inside network.
« Reply #3 on: December 28, 2008, 05:42:15 AM »
Ok now I have the modem connected to a switch that the 3 computers are now connected to and the router, then the sme server box is connected to the router.. I can not dump the router cause that is my wireless for the house when laptops are in use. I can now view the server from http://my-domain.net or https://my-domain.net like i was looking for but now I can not use the server manager from the web as https://my-domain.net/server-manager, but now I have to get back to the basics and no gui of the web and use shell script to access the server ..... so I guess this configuration would work but just have to look into a lil more secure routes for the server.

Any more advice would be helpfull,
I think I will just look for another computer that I can have more nic cards installed into as for a server/gateway config.

Thanx for the help.