How to hide freedombox from the internet

I need to hide freedombox from the internet?
I need only Ejabberd and JSXC available from the internet.
Is it possible?
And is it possible to enable registration from JSXC?

You may set jsxc as the default page in the general settings, and try to enable registration in ejabberd.

Yeah i know, but i need to hide other part of freedombox from the internet in the security reasons because server will be public.

Ok, then maybe have a look at reopening this aspect in a new issue?:

Together with these: