Ok this is so frustrating and confusing. Surely someone can help.
I have the following interface names.
enp94s0f0 - public
enp94s0f1- private
tailscale0 - vpn
lo - loop back
What I am looking to do is have the consul server to be available to all other clients and servers including the ui over the vpn. I do not what anything on the public nic whatsoever.
@blake You tried to help about 3 months ago with this same issue, I got so frustrated, that I dumped the hashistack and went another direction. Now I am back, because I think it will be the best solution. So I am back trying to make this work. If you can help me out that would be awesome.
We’re glad to have you back in the Hashicorp community Bradley! We’re sorry about the frustrating experience in the past, but hopefully we can do better and convince you to stay this time
Before I dig into this, I looked at the previous post you made linked here and a community user had commented at the bottom a solution that worked for them ( quoted below ). Did you attempt this solution? I’m curious to see if it’ll fix your issue:
I know this is an old thread, but I had the same issue and I found a solution. Unfortunatelly @blake your solution is incorrect. Template library does not support single quotes:
Yes I did. Here is what I have working so far, the 10 network is the private lan, and the 100 network is the vpn. I only use the vpn to access the api from home and the html ui. I still don’t like the fact that I have to bind to the public ip but I will live with that. I think it is a security issue, but oh well.
This does work now. Now I am trying to add the gosocket templating and I am not getting the syntax correct, and yes you can see I am escaping my " with "
Instead of “0.0.0.0” supply the IP of the interface you want Consul to advertise to other nodes, I belive that would be the IP “enp94s0f1” interface in this scenario. You got the multiple IP error because you were passing in a list of IPs to the “advertise_addr” parameter when a single value is expected.
Another thing that could really help your documentation, is when you show code snippets, you vary between hcl and json. This makes it very confusing and hard to learn the hcl syntax. Stick with one or the other please, or make the box so you can select which format you would like to see it in. Which I think would be the preferred method.