Does not required to expose your Openhab server to internet (only this gateway need to be exposed)
You probably know this already, but I’m going to say it for future readers: be very careful about exposing anything in your home network to the Internet. If you don’t know how to do it safely and securely, then you’re setting yourself up for trouble.
You’ve also reminded me of this discussion, which may be of use.