0

I want to block port 80 in Google AppEngine

For example, when I run:

sudo nmap -O <project-id>.appspot.com

It shows:

Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-06 16:36 EST
Nmap scan report for <project-id>.appspot.com  

PORT    STATE SERVICE
80/tcp  open  http
443/tcp open  https

Here it shows port 80 is open.

I want to block/close port 80 in AppEngine. How to do that?

1 Answer 1

1

It depends on your setup:

App Engine standard won't allow you to change firewall rules as you don't have access to the loadbalancer. In this case, you could stop traffic on port 80 from within your code, however traffic will still be served by the platform. The current App Engine firewall only blocks IP addresses but not actual ports.

App Engine flex: You could force an HTTPS loadbalancer and firewall rules to enforce 443 or any other port you'd want traffic from. Flex basically works on GCE VMs.

you mind find this doc useful

lastly, you could user a GCE instance as a "proxy" using a static ip blocking traffic over port 80 to then redirect to App Engine. The issue with this would be having an instance powerful enough to handle all your application's traffic

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .