I have setup IBM bluemix secure gateway service to invoke REST service hosted on company intranet. The secure gateway service works on the company intranet. But when I try to use it over the internet, it clocks for a long time and thereafter consistently gives a connection refused.
Isn't this the whole purpose of the secure gateway service, to be able to access an on-premise service behind company firewall from the internet? I am just using HTTP to access both the secure gateway and the intranet REST service. Is this what I am doing wrong? Should I set up and use either HTTPS or TLS to access from internet?
Yes, Secure Gateway enables you to connect to on-premises services behind a company firewall.
It sounds like you have created an HTTP destination and are trying to connect to it. To do this please make sure you have:
If this is not working for you, please give more details as to what you are attempting.