cclloyd wrote:
For some reason, I can't manage my server over the internet. I can only manage it when I'm on my LAN, or connected to a vpn (hosted by the router, not the server).
Why won't it connect when I enter the domain name, but it will with the 192.168.1.x ip? The host name doesn't work on the LAN either. Just the local IP.
In general, you really don't want to be managing your server remotely, except via VPN. That's a security exposure, and I don't trust a management port to be entirely secure against remote access attacks. (It probably is, but then several major server vendors have also shipped out wide-open IPMI management connections in recent years, too.) Requiring remote management via VPN means the management port (TCP port 311) can't be probed by remote users.
If this were a discussion of HTTP (TCP Port 80) or HTTPS (TCP port 443), which are services that are (usually) open to the Internet, then the reported behavior would most likely be either an issue with the public DNS services translation — this is entirely different from your local DNS activities and local DNS services — or with the port-forwarding configuration of whatever device you're using as a firewall-gateway-router, or possibly a firewall block at the ISP as is common with residential-class tier of service with many ISPs. Either your DNS translation isn't going to the proper external IP address of your firewall-gateway-router box, or your firewall box isn't forwarding that port, or your ISP isn't allowing the port through NAT and along to the server. It's also possible that the service is blocked against remote access, though that's less common on systems after 10.6. (Blocking external IP addresses was trivial with OS X Server 10.6, but was removed from the GUI in 10.7 and later.)
If you're not getting the host name via the VPN, make sure the VPN client is set to use your LAN-local DNS when it's connected.
If the above doesn't cover your case, please consider providing a few more details about the configuration and what's working and not working, and about your particular network configuration.