Browse Source

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 years ago
parent
commit
309bdc7f60
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      roles/vpn/templates/etc_openvpn_server.conf.j2

+ 8
- 0
roles/vpn/templates/etc_openvpn_server.conf.j2 View File

315
 # Only for openvpn 2.3.3 and >2.3.4
315
 # Only for openvpn 2.3.3 and >2.3.4
316
 {{ openvpn_tls_version_min }}
316
 {{ openvpn_tls_version_min }}
317
 {{ openvpn_tls_cipher }}
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…
Cancel
Save