|
|
本帖最后由 Yancheng 于 2017-8-11 02:50 编辑
1. ssh 去看是不是pveproxy掛了
>> netstat -apn | grep pveproxy
tcp 0 0 0.0.0.0:8006 0.0.0.0:* LISTEN 6492/pveproxy
2. 注意網址是https開頭, 我被瀏覽器害過
3. 看一下面板system -> syslog 是不是有服務掛掉還是發生啥事
4. 從面板更新一下模組及相關套件, 我用4.4-15很穩定
5. iptables 可以一次轉一個範圍的port給小雞, 就跟路由器轉發一樣, 賣NAT VPS也是這麼做
https://serverfault.com/questions/729810/dnat-port-range-with-different-internal-port-range-with-iptables
6. 改端口不必重啟(reboot)母雞與小雞吧??
7. nginx轉發不會比iptables靠kernel穩定. nginx轉發的說明官網有寫
https://www.nginx.com/resources/admin-guide/tcp-load-balancing/
大概說一下, Nginx 舊版的只能轉http proxy, 網上教程很多, 但只能轉http, 關鍵字 "nginx 反代"
自從1.9.0版之後ngx_stream_core_module支援類似iptables的轉發
母雞10122 轉小雞(192.168.1.1) ssh port 22
stream {
upstream ssh {
server 192.168.1.1:22;
}
server {
listen 10122;
proxy_pass ssh;
}
} |
|