Forums/Cloud Foundry Forums/Archived: CloudFoundry.com Q&A

Answered

External requests allowed on ports other than 80?

Peter Ledbrook
asked this on April 13, 2011 01:51

Hi,

I've been asked on my blog posting whether it's possible to send e-mail via an external service provider such as Amazon or Gmail. But this raises the more general question of what requests are allowed from applications deployed on Cloud Foundry? Port 80 requests seem fine, but what about others? SMTP on port 25 for example.

Thanks,

Peter

 

Comments

User photo
Derek Collison
Ajax_loader_small Answer

Currently outbound access is limited to http and https through proxies. The proxy information will be in the environment for your application under http_proxy, https_proxy, and no_proxy.

 

We will continually look on ways to improve the product and the service, so please keep the feedback coming.

April 13, 2011 04:34
User photo
Scott Andrews
Cloud Foundry
Ajax_loader_small Answer

For Java applications, the common proxy system properties are predefined (http.proxyHost, http.proxyPort, https.proxyHost, etc)

April 13, 2011 10:40
User photo
Marcel Overdijk

But how should we send mails then?

April 14, 2011 13:43
User photo
Misch

This is bothering me too and a blocker :-(

May 04, 2011 03:18
User photo
mlatta
I would think this would be handled as a service. This may be a differentiator between hosts. We may start to see providers offer services like outgoing mail and apple push notifications as services.
May 14, 2011 23:27
User photo
Matthew Patin

It would be nice if cloudfoundry got an smtp service working soon. In the meantime we could always use something like the rest api here:

http://elasticemail.com/api-documentation

But it would be better to just be able to use javamail...

September 02, 2011 00:11
User photo
Ted Pritchard

I have a Spring Integration application that I would like to deploy to Cloud Foundry where the application accepts incomming requests on a port other than port 80.  Is this possible with Cloud Foundry?

October 20, 2011 02:48
User photo
Senthil Vaiyapuri

Hi Ted,

  Please note that for spring applications a tomcat container is provided and configured and you will not 

  have control over which port the container is listening on.  You application in the configured url

  (typically <appname>.cloudfoundry.com) can received traffic on http (80) and https (443)  and 

  cloudfoundry infrastrcuture (front-ends and router) will route the traffic to your application.

  Best Regards,

  -senthil

October 20, 2011 07:34
User photo
Peter

Is there a way to disable http(80)?

February 17, 2012 07:49
User photo
Glenn Oppegard
Cloud Foundry

Peter,

There isn't a way to disable HTTP. One option is to inspect for SSL http headers in your app, and redirect the user to https if they don't exist.

To see the difference in http headers compare:

http://gho-env.cloudfoundry.com/

https://gho-env.cloudfoundry.com/

Specifically:

sslclientcertstatus NoClientCert
sslclientcipher SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128
sslsessionid 925B7E28AE0148050B3E3A41B0F2B76FD57E8795643E0C88455145F9B9C60A7B
February 17, 2012 09:03
Topic is closed for comments