File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
ansible/roles/proxy-network/tasks Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 27
27
net.ipv4.conf.all.rp_filter = 0
28
28
net.ipv4.conf.all.accept_local = 1
29
29
net.ipv4.conf.all.log_martians = 1
30
+ # Allow the use of every non-privileged port for connections
30
31
net.ipv4.ip_local_port_range = 1024 65535
32
+ # FIN_WAIT timeout
31
33
net.ipv4.tcp_fin_timeout = 15
34
+ # Limit on number of connections not attached to sockets (e.g. because FIN_WAIT);
35
+ # costs up to 64KB per connection
32
36
net.ipv4.tcp_max_orphans = 262144
37
+ # Maximum number of connections that have not completed the three-way handshake;
38
+ # costs 304B per connection
33
39
net.ipv4.tcp_max_syn_backlog = 4096
40
+ # Maximum number of TIME_WAIT sockets (can't be larger than tcp_max_orphans)
34
41
net.ipv4.tcp_max_tw_buckets = 262144
42
+ # Allow reusing a 5-tuple in TIME_WAIT for new connections
43
+ net.ipv4.tcp_tw_reuse = 1
44
+ # Maximum number of connections netfilter is tracking
45
+ # TODO: Why are we using conntrack at all?
35
46
net.netfilter.nf_conntrack_max = 8388608
36
47
notify : apply sysctl
You can’t perform that action at this time.
0 commit comments