瀏覽代碼

update openvpn server config

Change default network buffer size
Should increase tcp tunnel speed for openvpn < 2.3.9
https://community.openvpn.net/openvpn/ticket/461
Filipp Frizzy 9 年之前
父節點
當前提交
7cb76741e7
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      roles/vpn/templates/etc_openvpn_server.conf.j2

+ 8
- 0
roles/vpn/templates/etc_openvpn_server.conf.j2 查看文件

@@ -315,3 +315,11 @@ tun-mtu {{ openvpn_mtu }}
315 315
 # Only for openvpn 2.3.3 and >2.3.4
316 316
 {{ openvpn_tls_version_min }}
317 317
 {{ openvpn_tls_cipher }}
318
+
319
+# Change default network buffer size
320
+# Should increase tcp tunnel speed for openvpn < 2.3.9
321
+# https://community.openvpn.net/openvpn/ticket/461
322
+sndbuf 0
323
+rcvbuf 0
324
+push "sndbuf 393216"
325
+push "rcvbuf 393216"

Loading…
取消
儲存