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

FIX: Syntax error in /etc/sysctl.d/99-reserved-ports.conf #3308

Closed
jertel opened this issue Mar 5, 2021 · 0 comments
Closed

FIX: Syntax error in /etc/sysctl.d/99-reserved-ports.conf #3308

jertel opened this issue Mar 5, 2021 · 0 comments
Assignees

Comments

@jertel
Copy link
Contributor

jertel commented Mar 5, 2021

I noticed that all my SO2 nodes had a failure on systemd-sysctl and the issue is /etc/sysctl.d/99-reserved-ports.conf

The config that is set during installation are:
net.ipv4.ip_local_reserved_ports="55000,57314"

This syntax works directly with sysctl -w but not running sysctl -p

cat /etc/sysctl.d/99-reserved-ports.conf
net.ipv4.ip_local_reserved_ports="55000,57314"
sysctl -p /etc/sysctl.d/99-reserved-ports.conf
sysctl: setting key "net.ipv4.ip_local_reserved_ports": Invalid argument
net.ipv4.ip_local_reserved_ports = "55000,57314"

Removing the "" corrects this:

cat /etc/sysctl.d/99-reserved-ports.conf
net.ipv4.ip_local_reserved_ports=55000,57314
sysctl -p /etc/sysctl.d/99-reserved-ports.conf
net.ipv4.ip_local_reserved_ports = 55000,57314

I tested this on both Ubuntu 18 and Centos 7.9 and got the same behaviour.

Originally posted by @trocade in #3276

@jertel jertel self-assigned this Mar 5, 2021
jertel added a commit that referenced this issue Mar 5, 2021
fix: syntax error in reserved ports configuration #3308
@TOoSmOotH TOoSmOotH changed the title Syntax error in /etc/sysctl.d/99-reserved-ports.conf FIX: Syntax error in /etc/sysctl.d/99-reserved-ports.conf Mar 5, 2021
@jertel jertel closed this as completed Mar 5, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant