Skip to main content

Stream

Using Nginx as a TCP/UDP proxy.

Create folders:

mkdir /etc/nginx/streams-available
mkdir /etc/nginx/streams-enabled

Edit nginx.conf:

nano /etc/nginx/nginx.con
...

stream {
	include /etc/nginx/streams-enabled/*;
}
server {
	listen 12345;
	proxy_pass 1.2.3.4:12345;
}