I have recently signed up for Google Compute and created a Vm Instance Debian 9 I am having firewall problem.tried lot of methods from search google but still i am unable to open ports.

I disabled inbuilt firewall of Debian enter link description here

I made firewall rules


But still port 80 says closed on my ip

Please suggest how to do it

  • Did you open up the GCE-level firewall as well? – EEAA Jul 11 '17 at 6:38
  • What is that and how to open it.I just created rules in Console than Networking>Firewall Rules>Ingress and Egress allowed all instances and tcp:80;udp:80 both ingress and egress.. Is GCE any any different from this/And how to open – Ankit Jain Jul 11 '17 at 11:16
  • @AnkitJain Verify if you have any service running on port 80 as there should be a service running in order for a port to be in listening state. Install apache2 and start the apache services and verify if port is in listening state. You can verify if port 80 is in listening state on the VM instance. Command: netstat -plnt – N Singh Oct 11 '17 at 17:10

It could be there's nothing listening on port 80. Try running the netstat command $ sudo netstat -nap | grep ':80 .*LISTEN' to see if the web server is listening on port 80. If you've already had Apache installed, it could also be that is not running, hence try restarting Apache2 by doing the following.

$ sudo /etc/init.d/apache2 restart


$ sudo service apache2 restart

Alternatively, I would just run a basic Apache web server using the following documentation.

Deploy a simple Apache web server to learn the basics of running a server on a virtual machine instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.