# Nginx - stream mod

**URL:** <https://community.ipfire.org/t/nginx-stream-mod/2099>\
**Category:** Web Proxy, URL Filter & Update Accelerator\
**Created:** [29 April 2020 02:46 UTC](https://community.ipfire.org/t/nginx-stream-mod/2099 "2020-04-29T02:46:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpyusko](https://community.ipfire.org/user_avatar/community.ipfire.org/mpyusko/32/8466_2.png) [@mpyusko](https://community.ipfire.org/u/mpyusko)\
**Post date:** [29 April 2020 02:46 UTC](https://community.ipfire.org/t/nginx-stream-mod/2099/1 "2020-04-29T02:46:00Z")

</div>

It appears the Nginx is custom compiled, since when I try to add the standard mods to it (even the same version) it gives me a mismatch on the compiled options.

Is for many services, it is necessary to forward a stream. Is there a way to get these mods loaded?

---

<div class="post-metadata">

**Author:** ![ummeegge](https://community.ipfire.org/user_avatar/community.ipfire.org/ummeegge/32/16602_2.png) [@ummeegge](https://community.ipfire.org/u/ummeegge)\
**Post date:** [29 April 2020 05:58 UTC](https://community.ipfire.org/t/nginx-stream-mod/2099/2 "2020-04-29T05:58:11Z")

</div>

Hi mpyusko,  
and welcome here. If you mean the [ngx\_stream\_core\_module](http://nginx.org/en/docs/stream/ngx_stream_core_module.html), it is not build by default. What compile-time options makes here sense ? Since there is also an [stream\_ssl\_module](https://nginx.org/en/docs/stream/ngx_stream_ssl_module.html) available but also a dynamic variant --\> [https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/) ?

Best,

Erik

---

<div class="post-metadata">

**Author:** ![ms](https://community.ipfire.org/user_avatar/community.ipfire.org/ms/32/16615_2.png) [@ms](https://community.ipfire.org/u/ms)\
**Post date:** [29 April 2020 12:36 UTC](https://community.ipfire.org/t/nginx-stream-mod/2099/3 "2020-04-29T12:36:42Z")

</div>

We have haproxy as well, which does not have any modules and should be more efficient.

---

<div class="post-metadata">

**Author:** ![mpyusko](https://community.ipfire.org/user_avatar/community.ipfire.org/mpyusko/32/8466_2.png) [@mpyusko](https://community.ipfire.org/u/mpyusko)\
**Post date:** [29 April 2020 17:06 UTC](https://community.ipfire.org/t/nginx-stream-mod/2099/4 "2020-04-29T17:06:29Z")

</div>

I goal is i need to forward SSH and RDP to various targets. The Nginx stream module is appropriate for that. It would be nice to have the module loaded in the firewall where the traffic is already being filtered and routed. Otherwise I need to setup a small VM where all the traffic for the stream targets are initially diverted from the firewall, and then routed by the VM. I mean, I can do it, but I’d rather have traffic routing properly before it hits the hypervisors.

---

<div class="post-metadata">

**Author:** ![ms](https://community.ipfire.org/user_avatar/community.ipfire.org/ms/32/16615_2.png) [@ms](https://community.ipfire.org/u/ms)\
**Post date:** [5 May 2020 17:01 UTC](https://community.ipfire.org/t/nginx-stream-mod/2099/5 "2020-05-05T17:01:41Z")

</div>

If you want to grant access to any internal servers, you should configure a simple port forwarding.
