T
T
Trianid Trianid2017-12-18 16:07:21
CMS
Trianid Trianid, 2017-12-18 16:07:21

Is it possible to allow access to the Onlyoffice document server only from a specific Nextcloud/Owncloud?

Hello. Raised two servers: one with nextcloud, the other with onlyoffice. Connected the second to the first by writing the address. Logically, anyone can use it. Is this a limitation of the free version? How can it be fixed otherwise?
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Trianid Trianid, 2017-12-29
@trianid

Here's what I ended up doing:
5a4603a63077d072778266.png

L
loderunner84, 2017-12-18
@loderunner84

Restrict connections by setting up a firewall on the host with ONLYOFFICE

F
fdroid, 2017-12-21
@fdroid

I googled the following option to access the document server only from a specific IP. Suppose Nextcloud is running on the example.com domain, whose IP is 123.45.67.89, and the document server is running on the office.example.com domain, whose IP is unimportant.
We edit /etc/onlyoffice/documentserver/default.json - look for ipfilter and bring it to the following form:

"ipfilter": {
        "rules": [
          {
            "address": "123.45.67.89",
            "allowed": true
          },
          {
            "address": "*",
            "allowed": false
          }
        ],
        "useforrequest": false,
        "errorcode": 401
      },

Thus, we allow access to the document server only from IP 123.45.67.89, when trying to open office.example.com from another IP, OO will not give access to the document server. To apply the changes, run:
sudo supervisorctl restart all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question