Forward rules are not working (at least 53 port; DNS)

608 views
Skip to first unread message

Alex Szilagyi

unread,
Oct 11, 2015, 3:09:37 PM10/11/15
to gce-discussion
Hi there,

I've been trying and searching a working solution to add a second IP to my instance and make it as a second name server for my DNS server.

Here are the steps that I've tried:


gcloud compute target-instances create TARGET_INSTANCE_NAME --instance INSTANCE_NAME
gcloud compute forwarding
-rules create ALLOW_TCP --address SECOND_IP --target-instance TARGET_INSTANCE_NAME --ip-protocol tcp
gcloud compute forwarding
-rules create ALLOW_UDP --address SECOND_IP --target-instance TARGET_INSTANCE_NAME --ip-protocol udp


Am I doing something wrong?

Kamran (Google Cloud Support)

unread,
Oct 11, 2015, 6:58:17 PM10/11/15
to gce-dis...@googlegroups.com


Hi Alex,  

Your commands are good to create a target instance and forwarding rules to assign a second IP address to your VM machine. 

By running these commands, are you receiving any errors?  Are you able to ping to the VM machine by using the second IP address?

Use the following command to verify the target instance and forwarding rules' parameters.

gcloud compute forwarding-rules describe FORWARDING_RULE_NAME

gcloud compute target-instances describe TARGET_INSTANCE_NAME.


Sincerely,

Kamran

Alex Szilagyi

unread,
Oct 12, 2015, 12:39:45 AM10/12/15
to Kamran (Google Cloud Support), gce-discussion
Hi,

By running that commands everything seems to work fine (no errors) but when I'm trying to test if the forward was done correctly then I get an error.

I am testing it via telnet, like:

alexszilagyi@Alexs-MBP ~ $ telnet ns4.severo.ro 53
Trying 146.148.29.5...
telnet: connect to address 146.148.29.5: Connection refused
telnet: Unable to connect to remote host


Am I missing something?

Regards,
Alex

On 12 October 2015 at 01:58, Kamran (Google Cloud Support) <khas...@google.com> wrote:


Hi Alex,  

Your commands are good to create a target instance and forwarding rules to assign a second IP address to your VM machine. 

By running these commands, are you receiving any errors? 

Sincerely,




On Sunday, October 11, 2015 at 3:09:37 PM UTC-4, Alex Szilagyi wrote:
Hi there,

I've been trying and searching a working solution to add a second IP to my instance and make it as a second name server for my DNS server.

Here are the steps that I've tried:


gcloud compute target-instances create TARGET_INSTANCE_NAME --instance INSTANCE_NAME
gcloud compute forwarding
-rules create ALLOW_TCP --address SECOND_IP --target-instance TARGET_INSTANCE_NAME --ip-protocol tcp
gcloud compute forwarding
-rules create ALLOW_UDP --address SECOND_IP --target-instance TARGET_INSTANCE_NAME --ip-protocol udp


Am I doing something wrong?

--
© 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 a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/5mGNjoLUTv8/unsubscribe.
To unsubscribe from this group and all its topics, 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/5df8ae51-7d49-4e3d-bdb3-6b03f8cff3f3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alex Szilagyi

Alex Szilagyi

unread,
Oct 12, 2015, 4:59:59 PM10/12/15
to gce-discussion, khas...@google.com
Kamran,

Thanks for reply. I've managed to solve my issue in the end. There was a problem on the DNS software that it wasn't listenting all the network interfaces. So I've added the IP and it worked.

Thanks again!

Reply all
Reply to author
Forward
0 new messages