跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 分享个haproxy中转代码吧
未分類
1 10 月 2021

分享个haproxy中转代码吧

tianky 大佬有话说 :

分享个haproxy中转代码吧

我是中转cf的流量用的,效果很不错 德鸡也能上2w

global
ulimit-n51200

defaults
log global
mode    tcp
optiondontlognull
timeout connect 1000ms
timeout client 150000ms
timeout server 150000ms

frontend hi-in
bind :::{listenPort} ##监听端口 {listenPort}
acl hdr_connection_upgrade hdr(Connection)-i upgrade
acl hdr_upgrade_websockethdr(Upgrade)   -i websocket
use_backend hi-out if hdr_connection_upgrade hdr_upgrade_websocket
default_backend hi-out

default_backend hi-out
backend hi-out
server server1 {remoteIp}:443 maxconn 20480##中转的远程IP {remoteIp}

adcen 大佬有话说 :

resolvers dns
parse-resolv-conf
resolve_retries 3
timeout retry 2s
hold valid 60s

listen TCP
bind :1234
mode tcp
server srv1 address:port check resolvers dns

都tcp了,直接转发就行,这样还支持ddns

optimism 大佬有话说 :

分享帮顶                        

周润发 大佬有话说 :

haproxy 不吃BBR 不好用

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具