nginx 활용하여 udp 패킷 포트포워딩

wget http://nginx.org/packages/centos/6/x86_64/RPMS/nginx-1.16.0-1.el6.ngx.x86_64.rpm

rpm -ivh nginx-1.16.0-1.el6.ngx.x86_64.rpm

vi /etc/nginx/nginx.conf

stream {
server {
listen 1234 udp;
proxy_pass proxy_udp;
}

upstream proxy_udp {

server xxx.xxx.xxx.xxx:5678;
}
}

service nginx restart

Share