How to open incoming port 50070 in firewall (google compute engine)

604 views
Skip to first unread message

Naveen Subramani

unread,
Jun 19, 2014, 2:40:17 AM6/19/14
to gce-dis...@googlegroups.com

I have my Single node Hadoop installed on Google Compute Engine instance and i want to open port 50070 on that machine to access the hadoop dashboard for my desktop machine . i configured in the firewall rule to allow tcp:50070 in compute engine networks. but still i am unable to access my port outside the network (ie . via internet). I tried nmap for the public ip of my GCE instance  and it got as port 50070 filtered .but when i try this from an another vm which was launched on the same GCE network i am able to get nmap -p 50070 xxx.xxx.xxx.xxx shows as poet 50070 open ... How to open port 50070 to the external network.

Note: i am using debian 7.5 image 

i created my firewall using this command  

gcutil --project=<myproject id> addfirewall --network=mynetwork hdfs-namenode --description="HDFS NameNode Web console" --allowed="tcp:50070"


Eran Sandler

unread,
Jun 19, 2014, 2:51:07 AM6/19/14
to Naveen Subramani, gce-discussion
I think you need to add target tags (--target_tags) and make sure the instance(s) are also tagged with the same tag.

That's the only way to apply a rule to instances.

Eran


--
© 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/d72c9522-517a-4798-b865-6de651fda219%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Krinesh Patel

unread,
May 6, 2019, 2:05:11 PM5/6/19
to gce-discussion
i had created the rule with apply to all condition. but still can't access port from external network. any help?


On Thursday, June 19, 2014 at 12:21:07 PM UTC+5:30, Eran Sandler wrote:
I think you need to add target tags (--target_tags) and make sure the instance(s) are also tagged with the same tag.

That's the only way to apply a rule to instances.

Eran
On Thu, Jun 19, 2014 at 9:40 AM, Naveen Subramani <naviens...@gmail.com> wrote:

I have my Single node Hadoop installed on Google Compute Engine instance and i want to open port 50070 on that machine to access the hadoop dashboard for my desktop machine . i configured in the firewall rule to allow tcp:50070 in compute engine networks. but still i am unable to access my port outside the network (ie . via internet). I tried nmap for the public ip of my GCE instance  and it got as port 50070 filtered .but when i try this from an another vm which was launched on the same GCE network i am able to get nmap -p 50070 xxx.xxx.xxx.xxx shows as poet 50070 open ... How to open port 50070 to the external network.

Note: i am using debian 7.5 image 

i created my firewall using this command  

gcutil --project=<myproject id> addfirewall --network=mynetwork hdfs-namenode --description="HDFS NameNode Web console" --allowed="tcp:50070"


--
© 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-dis...@googlegroups.com.

Ashik M

unread,
May 10, 2019, 7:55:44 PM5/10/19
to gce-discussion
Hi Krinesh,

Thank you for bumping this case.

If you are having issues with your instance firewall rules, please use GCP support options in our support Hub. [1] 
There is also a related thread in Stackoverflow by the thread-owner, where you can investigate further. [2]
You can also look into how are firewall rules work here [3] 

This forum is dedicated to discussions on general Google Compute Engine infrastructural issues  and product improvement ideas and the forums above are a better place
to troubleshoot individual instances and issues with your specific environment. 

Reply all
Reply to author
Forward
0 new messages