Skip to content

Commit b2372c0

Browse files
committed
Merge pull request #2942 from aledbf/increase_conntrack_connections
fix(security): increase max conntrack connections
2 parents 6f758ba + 7af2e16 commit b2372c0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

contrib/coreos/user-data.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ coreos:
6565
ExecStartPre=/usr/bin/curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
6666
ExecStartPre=/usr/bin/chmod +x /opt/bin/jq
6767
ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/leader | /opt/bin/jq . ; sleep 1 ; done"
68+
- name: increase-nf_conntrack-connections.service
69+
command: start
70+
content: |
71+
[Unit]
72+
Description=Increase the number of connections in nf_conntrack. default is 65536
73+
74+
[Service]
75+
Type=oneshot
76+
ExecStart=/bin/sh -c "sysctl -w net.netfilter.nf_conntrack_max=262144"
6877
write_files:
6978
- path: /etc/deis-release
7079
content: |

0 commit comments

Comments
 (0)