sysctl: setting key "net.ipv4.ip_local_reserved_ports": Invalid argument when using a port range

Solution Verified - Updated -

Issue

  • sysctl: setting key "net.ipv4.ip_local_reserved_ports": Invalid argument when using a port range
  • Using a port range like "9000–9999" results in Invalid argument when applying with sysctl -p to set the kernel tunable
  • Reserved ports are defined in sysctl.conf but do not apply on boot or after a reboot

Environment

  • Red Hat Enterprise Linux
  • sysctl.conf contains net.ipv4.ip_local_reserved_ports with port range

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content