nginx TCP 代理& windows傻瓜式安装

要放在http之前

#tcp_proxy
stream {
    upstream tcp_proxy{
        hash $remote_addr consistent;
        server 192.168.8.56:4809;  #需代理的IP+PORT
    }
    server {
        listen 4111;
        proxy_connect_timeout 1s;
        proxy_timeout 3s;
        proxy_pass tcp_proxy;
    }
}

 

posted @ 2020-06-05 20:08  香巴拉  阅读(478)  评论(0编辑  收藏  举报