Nginx Notes
Reverse Proxy
Edit file conf/nginx.conf
, add the following configurations to it:
stream {
server {
listen 1234;
proxy_pass 192.168.1.2:2345;
}
server {
......ditto......
}
}
And start the nignx. Now traffic through local tcp port 1234 will be forwarded to 192.168.1.2:2345 and traffic out will be backforwarded to the user.