I recently setup a new Asterisk/Free PBX server (Asterisk 18.12.1 and FreePBX 16.0.19) to replace an internal system that was being used. Using setup located here: [computingforgeeks dot com/how-to-install-with-freepbx-on-ubuntu]
However I’ve come up with an issue whereby the FreePBX Web GUI can’t be accessed via domain of the server (it has the correct A record). It can only be accessed via the IP address of the server.
For obvious reasons, accessing the server via it’s IP address is not a good move security wise, as this server is accessible over the internet. (appropriate security measures have been taken)
I’m hoping someone here can give me a clue as to what to do.
Sorry if this is a dumb question, but I’ve been racking my brain over this for far too long.
Why is it not a good move to access your server via IP address? Does the name resolution work (try nslookup)? If you’re trying to access it from the internet and you’re behind a NAT, do you have a port forwarding enabled?
Thanks for your replies, however the domain is already pointing towards the IP of the server, the server is also not behind a NAT.
The reason I mentioned it wasn’t best to access it security wise is due to logging into the web interface via IP without an SSL certificate, which I cannot generate a recognised certificate for, using something like let’s encrypt.
The domain and it’s records are not the issue, it is the actual web server aspect of free PBX not recognizing the domain.
The response received when trying to reach the web gui via domain is:
This site can’t be reached
(FREEPBXDOMAIN) refused to connect.
Try:
Checking the connection
ERR_CONNECTION_REFUSED
But it can be accessed using its IP address
The result of an ns lookup correctly shows the A record for the IP address of the server
The correct ports have been setup, and I do know understand the concept of WAN access, port forwarding and A records.
If that were the case I wouldn’t be able to access the server using its IP address at all.
Please see attached screenshots with redacted domain and IP.
Same, I’m not an Ubuntu expert. It would be worth looking at alternative VPS providers that have either the option to upload an ISO or one that has a prebuilt FreePBX image for one click installs.
Looks like an ass-halved redirect from http to https, ideally only calls to your http://f.q.d.n should be forwarded to https, there should be no server (landing point) listening on ip.addre.ss:443
So, I was using a .app domain name, and chrome wont display these sites without an SSL Certificate.
Upon realising this, I changed the domain.
Now I am able to access the VoIP server via it’s domain.
The issue was not related to A records, WAN, NAT, messed up configurations.
The next issue I faced was the installation of an SSL Certificate, as from multiple attempts, the cert manager within the Free PBX GUI doesn’t work for the kind of setup I have.
Whilst I appreciate the fact this forum does not support setups outside of the official distro, it is common for people and organisations to use a base Linux distro such as Debian, and then build on top of this.