ONLYOFFICE not accessible from outside the company network

Nextcloud version (eg, 12.0.2) : NextCloud 16.0.4.1
Operating system and version (eg, Ubuntu 17.04) : Centos7
Apache or nginx version (eg, Apache 2.4.25) : Apache/2.4.6 (CentOS)
PHP version (eg, 7.1) : 7.2.10

Good Morning,

I have mounted a Nextcloud 16.0.4 with an Onlyoffice and internally in the company it works correctly, the problem comes when I try to open a document from Nextcloud (docx, xlsx, etc …) from outside the business network the following error message comes out “The ONLYOFFICE cannot be accessed. Please contact admin” and it does not load the file, I repeat from within the company it works correctly. The question is to have the ONLYOFFICE url published on the internet so that files can be edited from outside the company network or once connected from outside to the Nextcloud, this is the one who manages the connection internally with the ONLYOFFICE server.

Thanks greetings!!

Well, for that to work, you will need two things:

  • get a DNS resolution for your OnlyOffice-Instance with the same name as your internal one
  • have your firewall allow access to port 443 from the internet to your OnlyOffice instance

Plus all the other pre-cautions, you would have to consider when making any server instance available to the internet. If in doubt, consult your network/firewall admin.

aller guten dinge sind drei.

plus a valid certificate for the internet and intranet url.

in your case i would start to check if port 6443 is forwarded from the internet.

grafik

a curl -v onlyoffice.[ ].com:6443 from a client outside your network could be helpfull

Well… OnlyOffice doesn’t work without proper certificates anyway - or at least, you will have to jump through some hoops to make is work without one, so I assumed that the certificate is already in place… :wink:

Ok to start the ONLYOFFICE server must be accessible from the Internet I understand, something I do not have … I upload it and I comment

Thank you!

sure.

but since @fgonzalez blanked parts of the url we don’t know if there are two different url’s. onlyoffice.internet.com and/or onlyoffice.intranet.com

Well… he’s cautious - that’ got to be good. :wink:

Indeed guys, publish the dns on the internet and work perfectly from outside the company, regarding the certificates I use a HAPROXY as front of everything and from there I apply the Lets Encryp certificates.

Thanks for all. Greetings!

PD: by the way one more query, it does not allow me to save the files as such but as a copy, is it normal?

I do have a very similar config and it’s working perfectly. If OnlyOffice refuses to save the documents back to NC means, that there’s something wrong with your setup.

What doesn’t work is a “split-configuration” where one partruns on https and the other doesn’t. To work correctly all connections must be https… internal and external.

Everything should go through https mainly because from the haproxy I force it to be https …

Uncheck and solve disable save button