Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: constrain ip_local_port_range #1560

Merged
merged 1 commit into from
May 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/ecs-agent/ecs-sysctl.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# ECS task role endpoint
net.ipv4.conf.all.route_localnet = 1

# Constrain ephemeral ports to the range documented for ECS
# https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PortMapping.html
net.ipv4.ip_local_port_range = 32768 60999
3 changes: 0 additions & 3 deletions packages/kubernetes-1.20/kubelet-sysctl.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Overcommit handling mode - 1: Always overcommit
vm.overcommit_memory = 1

# This is generally considered a safe ephemeral port range
net.ipv4.ip_local_port_range = 32768 60999
4 changes: 2 additions & 2 deletions packages/release/release-sysctl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ net.ipv4.ip_default_ttl = 255
# Enable IPv4 forwarding for container networking.
net.ipv4.conf.all.forwarding = 1

# Have a larger connection range available
net.ipv4.ip_local_port_range = 1025 65000
# This is generally considered a safe ephemeral port range
net.ipv4.ip_local_port_range = 32768 60999

# Connection tracking to prevent dropped connections
net.netfilter.nf_conntrack_max = 1048576
Expand Down