2017-12-28 14:34:04 +08:00
|
|
|
net.ipv4.ip_forward = 1
|
|
|
|
net.bridge.bridge-nf-call-iptables = 1
|
|
|
|
net.bridge.bridge-nf-call-ip6tables = 1
|
|
|
|
net.bridge.bridge-nf-call-arptables = 1
|
2019-10-27 23:42:02 +08:00
|
|
|
{% if KERNEL_VER|float < 4.12 %}
|
2019-07-31 10:44:36 +08:00
|
|
|
net.ipv4.tcp_tw_recycle = 0
|
2019-07-23 11:12:03 +08:00
|
|
|
{% endif %}
|
2019-07-31 10:44:36 +08:00
|
|
|
net.ipv4.tcp_tw_reuse = 0
|
2018-11-21 23:11:55 +08:00
|
|
|
net.netfilter.nf_conntrack_max=1000000
|
2018-07-26 14:27:26 +08:00
|
|
|
vm.swappiness = 0
|
2018-09-20 20:36:45 +08:00
|
|
|
vm.max_map_count=655360
|
2019-07-22 12:24:52 +08:00
|
|
|
fs.file-max=6553600
|
2019-09-03 12:39:07 +08:00
|
|
|
{% if PROXY_MODE == "ipvs" %}
|
|
|
|
net.ipv4.tcp_keepalive_time = 600
|
|
|
|
net.ipv4.tcp_keepalive_intvl = 30
|
|
|
|
net.ipv4.tcp_keepalive_probes = 10
|
|
|
|
{% endif %}
|