# How to port forward through zrok on public IP?

**URL:** <https://openziti.discourse.group/t/how-to-port-forward-through-zrok-on-public-ip/2638>\
**Category:** zrok\
**Created:** [June 2, 2024, 2:30pm UTC](https://openziti.discourse.group/t/how-to-port-forward-through-zrok-on-public-ip/2638 "2024-06-02T14:30:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valeran](https://avatars.discourse-cdn.com/v4/letter/v/8797f3/32.png) [@Valeran](https://openziti.discourse.group/u/Valeran)\
**Post date:** [June 2, 2024, 2:30pm UTC](https://openziti.discourse.group/t/how-to-port-forward-through-zrok-on-public-ip/2638/1 "2024-06-02T14:30:42Z")

</div>

Hi, I register and install zrok as the last possible way port forward some specific tcp and ucp ports on my public IP internet

What script for powershe;; should I write and run to do this to open multiple TCP and UDP ports for gaming and other connect apps?

---

<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:** [June 2, 2024, 2:59pm UTC](https://openziti.discourse.group/t/how-to-port-forward-through-zrok-on-public-ip/2638/2 "2024-06-02T14:59:09Z")

</div>

Hi @Valeran, welcome to the community and to zrok (and OpenZiti).

At this time, zrok the binary only really supports one port per zrok process running if you want to only share specific ports incredibly easily. This request is fairly common though, I'm sure it's on the roadmap to support.

If it were me there are a few things you could look into, none of these feels better than others to me, but maybe one thought or another appeals to you...

You could:

- Write a script that starts 'n' zrok instances sharing the ports you want
- Look into the VPN functionality that came out recently and see if that, combined with classical firewall rules opening only the ports you want would work
- Check out the zrok caddy integration and see if that meets your needs
- Look into the go or node zrok sdks and see if you can make an application of your own that does exactly what you want

---

<div class="post-metadata">

**Author:** ![Valeran](https://avatars.discourse-cdn.com/v4/letter/v/8797f3/32.png) [@Valeran](https://openziti.discourse.group/u/Valeran)\
**Post date:** [June 2, 2024, 4:25pm UTC](https://openziti.discourse.group/t/how-to-port-forward-through-zrok-on-public-ip/2638/3 "2024-06-02T16:25:20Z")

</div>

> [@TheLumberjack](#):
>
> eally supports one port per zrok process running if you want to only share specific ports incredibly easily. This request is fairly common though, I'm sure it's on the roadmap to support.

Any guide how to do that?

---

<div class="post-metadata">

**Author:** ![smilindave26](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/smilindave26/32/185_2.png) [@smilindave26](https://openziti.discourse.group/u/smilindave26)\
**Post date:** [June 2, 2024, 4:29pm UTC](https://openziti.discourse.group/t/how-to-port-forward-through-zrok-on-public-ip/2638/4 "2024-06-02T16:29:18Z")

</div>

Depending on what you’re trying to do, this might help: [zrok with the Power of Caddy](https://blog.openziti.io/zrok-with-the-power-of-caddy). See the section on “Multiple Upstream Backends”
