# TLS for a generic TCP session?

**URL:** <https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644>\
**Category:** NGINX\
**Created:** [May 19, 2016, 1:55am UTC](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644 "2016-05-19T01:55:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [May 19, 2016, 1:55am UTC](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644/1 "2016-05-19T01:55:45Z")

</div>

Hey All,

I was looking over the feature differences between nginx and nginx-plus  
and  
its not clear to me if nginx by itself supports TLS termination for a  
generic TCP session.

If it does not support TLS termination for TCP sessions, then are my  
only  
other options :

1. building the mainline source with the following options to configure?  
or
2. use nginx-plus download?

Could someone kindly clarify?

---

<div class="post-metadata">

**Author:** ![Preety\_Mordani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bcef8e/32.png) [@Preety\_Mordani](https://www.ruby-forum.com/u/Preety_Mordani)\
**Post date:** [May 19, 2016, 1:58am UTC](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644/2 "2016-05-19T01:58:06Z")

</div>

Hey All,

I was looking over the feature differences between nginx and nginx-plus  
and  
its not clear to me if nginx by itself supports TLS termination for a  
generic TCP session.

If it does not support TLS termination for TCP sessions, then are my  
only  
other options :

1. building the mainline source with the following options to configure?

./configure --sbin-path=/usr/local/nginx/nginx  
–conf-path=/usr/local/nginx/bginx.conf  
–pid-path=/usr/local/nginx/nginx.pid --with-pcre=…/pcre-8.38  
–with-zlib=…/zlib-1.2.8 --with-http\_ssl\_module _–with-stream_  
–with-mail=dynamic --with-openssl=/home/admin/iwan-30/openssl-1.0.2f/  
_–with-stream\_ssl\_module_

or

1. use nginx-plus download?

Could someone kindly clarify?

Thanks  
Preety

---

<div class="post-metadata">

**Author:** ![Preety\_Mordani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bcef8e/32.png) [@Preety\_Mordani](https://www.ruby-forum.com/u/Preety_Mordani)\
**Post date:** [May 19, 2016, 10:39am UTC](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644/3 "2016-05-19T10:39:10Z")

</div>

Hi Preety,

On 5/19/16 2:57 AM, Preety Mordani wrote:

> or
> 
> 1. use nginx-plus download?
> 
> Could someone kindly clarify?

There are no differences between -plus and -oss in this area – both  
do support TLS termination in the stream module.

Yes, you are right, you need “–with-stream\_ssl\_module” configure flag.

You can find more information about our nginx-oss packages that we  
build and ship here:

> **[nginx: Linux packages](http://nginx.org/en/linux_packages.html#mainline)**

–  
Maxim K.

---

<div class="post-metadata">

**Author:** ![Preety\_Mordani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bcef8e/32.png) [@Preety\_Mordani](https://www.ruby-forum.com/u/Preety_Mordani)\
**Post date:** [May 19, 2016, 5:50pm UTC](https://www.ruby-forum.com/t/tls-for-a-generic-tcp-session/244644/4 "2016-05-19T17:50:52Z")

</div>

Hi Maxim,

Thanks for your email. I will take a look.

Best,  
Preety
