Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(security): increase max conntrack connections
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jan 22, 2015
1 parent 8bf696f commit 7af2e16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/coreos/user-data.example
Expand Up @@ -65,6 +65,15 @@ coreos:
ExecStartPre=/usr/bin/curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
ExecStartPre=/usr/bin/chmod +x /opt/bin/jq
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"
- name: increase-nf_conntrack-connections.service
command: start
content: |
[Unit]
Description=Increase the number of connections in nf_conntrack. default is 65536

[Service]
Type=oneshot
ExecStart=/bin/sh -c "sysctl -w net.netfilter.nf_conntrack_max=262144"
write_files:
- path: /etc/deis-release
content: |
Expand Down

0 comments on commit 7af2e16

Please sign in to comment.