# Create edge router config options?

**URL:** <https://openziti.discourse.group/t/create-edge-router-config-options/1515>\
**Category:** Uncategorized\
**Created:** [August 16, 2023, 8:12pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515 "2023-08-16T20:12:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixitha](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pixitha](https://openziti.discourse.group/u/pixitha)\
**Post date:** [August 16, 2023, 8:12pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515/1 "2023-08-16T20:12:42Z")

</div>

Started migrating away from using the quick start functions script to using the Ziti binary for building configs, but I’m having an issue with a few places that don’t seem to have a env variable to reference. This doc is my base: [Config Examples | OpenZiti](https://openziti.io/docs/reference/deployments/router/router-configuration)

In the scenario I’m working on, I have a router with multiple physical interfaces, so I need to use the section here:

- binding: tunnel  
options:  
mode: tproxy #tproxy|host  
resolver: udp://192.168.10.11:53  
lanIf: eth0

I don’t see a place to specify the resolver config, right now its picking the hostname for the box, which resolves to an interface that the systemd-resolverd is NOT listening on?

Thanks  
-Kyle

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [August 16, 2023, 8:19pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515/2 "2023-08-16T20:19:26Z")

</div>

Hiya @pixitha. It’s hard to make a CLI that can handle “all the permutations”. There’s no way right now to emit the `resolver` and `lanIf` sections that you’re looking for, unfortunately.

You could use `sed` after the fact if you want which is… “meh”… Or you can just start making your own template that’s bespoke for what you’re trying to do. I don’t know if we’ll ever support a way to configure all the things or not since at that point, it kinda feels like it’s just easier to write the config yourself.

I kinda feel that once you get to where you’re at with understanding, it might just be easier to emit a template from whatever template tech you like. For example, I like a heredoc myself, but python or go or some other template tech might be better.

I’ll file an issue for this feature request though.

---

<div class="post-metadata">

**Author:** ![pixitha](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pixitha](https://openziti.discourse.group/u/pixitha)\
**Post date:** [August 16, 2023, 8:34pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515/3 "2023-08-16T20:34:58Z")

</div>

For that one, lanIf is already in there as a command line flag:

./ziti create config router edge --routerName $ROUTER\_NAME   
–output $ROUTER\_NAME.yaml   
–tunnelerMode tproxy   
–lanInterface eth0

I think thats actually one of the only things in the config file that would need to be added before the entire file would set for us I think?

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [August 16, 2023, 8:38pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515/4 "2023-08-16T20:38:27Z")

</div>

Oh. I didn’t look far enough into the code to find it. I see it now and forgot we added that in. So you just need `resolver` added? That’s a smaller lift for sure.

---

<div class="post-metadata">

**Author:** ![pixitha](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pixitha](https://openziti.discourse.group/u/pixitha)\
**Post date:** [August 16, 2023, 8:42pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515/5 "2023-08-16T20:42:35Z")

</div>

Yep, we plan on using IP address, like the example, since using a name could be messy.

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [August 16, 2023, 9:11pm UTC](https://openziti.discourse.group/t/create-edge-router-config-options/1515/6 "2023-08-16T21:11:27Z")

</div>

I don’t know who/when we’ll get to it, but I filed the issue here to track this [add `resolver` to `create config router edge` · Issue #1252 · openziti/ziti · GitHub](https://github.com/openziti/ziti/issues/1252)
