Koozali.org: home of the SME Server

Accessing Server-Manager Remotely

Offline fred2k3

  • ***
  • 49
  • +0/-0
Accessing Server-Manager Remotely
« on: April 15, 2013, 03:32:39 PM »
Hello, I've installed SME 8.0 (as part of a SAIL 3.1.1-22 ISO) but I'm not able to access the server-manager page using an external address. Logging on locally I've added the external IP address to the remote access page under remote management but when I try and access https://[server IP]/server-manager or https://[server IP]/sail I just get "Page cannot be loaded". Is there something else I need to do to get this working?

Incidentally I can access the sever remotely via secure shell.
« Last Edit: April 15, 2013, 03:34:22 PM by fred2k3 »

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #1 on: April 15, 2013, 03:44:42 PM »
Best practice seems to be

Connect to your server via PPP and you'll have acces by https://locaIP/server-manager

another approach (not best practice) is to set "local-network" your external IP (IF you has one fixed IP and it is trustful)

Probably you can add via template-custom also one hole into your server-manager access - also IP based

another way (probably the most insecure) is to set to public the access
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Accessing Server-Manager Remotely
« Reply #2 on: April 15, 2013, 05:36:19 PM »
another way is to log in via ssh then
Code: [Select]
elinks https://localhost/sail

with "elinks" only server-manager will open automagically

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Accessing Server-Manager Remotely
« Reply #3 on: April 15, 2013, 06:04:59 PM »
Best practice seems to be

Connect to your server via PPP and you'll have acces by https://locaIP/server-manager

I assume that you mean PPTP, and not PPP. Use of PPTP cannot be considered best practice - it should be avoided:

https://www.cloudcracker.com/blog/2012/07/29/cracking-ms-chap-v2/

Best practice would be to connect using SSH/putty using RSA key authentication, then using elinks or portforwarding port 443 via the SSH tunnel.


Offline larieu

  • *****
  • 214
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #4 on: April 15, 2013, 08:43:34 PM »
CharlieBrady

sorry but from my knowledge SME has no other supported tunnel "by default"

everything else is contrib or opening other holes - ssh port is one of them  (which I prefer + change the default ssh port to some other less scanned port)

Then openvpn should must become default in SME

http://wiki.contribs.org/SME_Server_wishlist


if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline kmccarn

  • ****
  • 112
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #6 on: April 16, 2013, 01:30:56 AM »
Worst practice - for lazy people only. (I only do this while setting up new systems)

Set remote access to 0.0.0.0 subnet 0.0.0.0 - and you can access from anywhere.

It is possible to allow hosts on remote networks to access the server manager by entering those networks here. Use a subnet mask of 255.255.255.255 to limit the access to the specified host. Any hosts within the specified range will be able to access the server manager using HTTPS.

Network    Subnet mask    Number of hosts    Remove
0.0.0.0    0.0.0.0    4294967296    
Kevin in WV 8-)......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Accessing Server-Manager Remotely
« Reply #7 on: April 16, 2013, 01:35:38 AM »
Worst practice - for lazy people only.

I'd say for lazy and stupid people. :-)

I believe it is a bug in the server manager that it accepts those values.

Offline fred2k3

  • ***
  • 49
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #8 on: April 16, 2013, 12:35:20 PM »
Many thanks for all the work around solutions.. I still don't understand why it's not working though as it used to work fine in SME7

It is possible to allow hosts on remote networks to access the server manager by entering those networks here. Use a subnet mask of 255.255.255.255 to limit the access to the specified host.

This is how I'm doing it, public facing IP address and 255.255.255.255 subnet (tried it from 2 different networks too) and no joy.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Accessing Server-Manager Remotely
« Reply #9 on: April 16, 2013, 12:38:59 PM »
Many thanks for all the work around solutions.. I still don't understand why it's not working though as it used to work fine in SME7

This is how I'm doing it, public facing IP address and 255.255.255.255 subnet (tried it from 2 different networks too) and no joy.

let me understand: you don't want to open a (secure) "hole" in your firewall but you open (wide) an unsecure one on your server? :-)

ssh on no standard port, auth via key, server-manager via elinks.. even from a smartphone.. secure and fast..

Offline fred2k3

  • ***
  • 49
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #10 on: April 16, 2013, 06:51:02 PM »
Maybe my networking knowledge is worse than I feared... but if I'm restricting remote server access to a single IP address, and with a secure password, then isn't that plenty safe? I know IPs can be spoofed, but they'd have to know the exact IP address and the password to gain access wouldn't they?

Don't get me wrong, the SSH + elinks is a great tip, but I'd rather use the web interface any day.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #11 on: April 17, 2013, 02:37:50 AM »
fred2k3

You really need to read all the information & links (and links to links) provided by posters.

Quote
Don't get me wrong, the SSH + elinks is a great tip, but I'd rather use the web interface any day.

You can establish the ssh tunnel connection, either by issuing the command referred to in
http://wiki.contribs.org/Useful_Commands#Access_to_the_server-manager_through_SSH
or by creating a saved ssh tunnel connection via port 443, for example here
https://howto.ccs.neu.edu/howto/windows/ssh-port-tunneling-with-putty/

Preferably use Public Private keys for best security, which will be better than direct password access to server manager from a specified IP, refer
http://wiki.contribs.org/SSH_Public-Private_Keys

Then once the secure ssh connection using PP keys is made, open a web browser to
https://localhost/server-manager
« Last Edit: April 17, 2013, 02:40:42 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline johnp

  • *****
  • 312
  • +0/-0
Re: Accessing Server-Manager Remotely
« Reply #12 on: April 17, 2013, 06:11:00 AM »
It would be interesting to know what mode you server is in. If it's server-gateway, IMHO the server-manager page should be available from what you have said that you have done.