error: "Invalid argument" setting key "net.ipv4.ip_local_reserved_ports"
Issue
- error: "Invalid argument" setting key "net.ipv4.ip_local_reserved_ports"
- Writing a large local port range results in
EINVALerror
sysctl -w net.ipv4.ip_local_reserved_ports="15100-15199,15300-15399,15500-15599,15700-15799,15900-15999,16100-16199,16300-16399,16500-16599,16700-16799,16900-16999,17100-17199,17300-17399,17500-17599,17700-17799,17900-17999,18100-18199,18300-18399,18500-18599,18700-18799,18900-18999,19100-19199,19300-19399,19500-19599,19700-19799,19900-19999,20100-20199,20300-20399,20500-20599,20700-20799,20900-20999,21100-21199,21300-21399,21500-21599,21700-21799,21900-21999,22100-22199,22300-22399,22500-22599,22700-22799,22900-22999,23100-23199,23300-23399,23500-23599,23700-23799,23900-23999,24100-24199,24300-24399,24500-24599,24700-24799,24900-24999,25100-25199,25300-25399,25500-25599,25700-25799,25900-25999,26100-26199,26300-26399,26500-26599,26700-26799,26900-26999,27100-27199,27300-27399,27500-27599,27700-27799,27900-27999,28100-28199,28300-28399,28500-28599,28700-28799,28900-28999,29100-29199,29300-29399,29500-29599,29700-29799,29900-29999,30100-30199,30300-30399,30500-30599,30700-30799,30900-30999,31100-31199,31300-31399,31500-31599,31700-31799,31900-31999,32100-32199,32300-32399,32500-32599,32700-32799,32900-32999,33100-33199,33300-33399,33500-33599,33700-33799,33900-33999,34100-34199,34300-34399,34500-34599,34700-34799,34900-34999,35100-35199,35300-35399,35500-35599,35700-35799,35900-35999,36100-36199,36300-36399,36500-36599,36700-36799,36900-36999,37100-37199,37300-37399,37500-37599,37700-37799,37900-37999,38100-38199,38300-38399,38500-38599,38700-38799,38900-38999,39100-39199,39300-39399,39500-39599,39700-39799,39900-39999,40100-40199,40300-40399,40500-40599,40700-40799,40900-40999,41100-41199,41300-41399,41500-41599,41700-41799,41900-41999,42100-42199,42300-42399,42500-42599,42700-42799,42900-42999,43100-43199,43300-43399,43500-43599,43700-43799,43900-43999,44100-44199,44300-44399,44500-44599,44700-44799,44900-44999,45100-45199,45300-45399,45500-45599,45700-45799,45900-45999,46100-46199,46300-46399,46500-46599,46700-46799,46900-46999,47100-47199,47300-47399,47500-47599,47700-47799,47900-47999,48100-48199,48300-48399,48500-48599,48700-48799,48900-48999,49100-49199,49300-49399,49500-49599,49700-49799,49900-49999,50100-50199,50300-50399,50500-50599,50700-50799,50900-50999,51100-51199,51300-51399,51500-51599,51700-51799,51900-51999,52100-52199,52300-52399,52500-52599,52700-52799,52900-52999,53100-53199,53300-53399,53500-53599,53700-53799,53900-53999,54100-54199,54300-54399,54500-54599,54700-54799,54900-54999,55100-55199,55300-55399,55500-55599,55700-55799,55900-55999,56100-56199,56300-56399,56500-56599,56700-56799,56900-56999,57100-57199,57300-57399,57500-57599,57700-57799,57900-57999,58100-58199,58300-58399,58500-58599,58700-58799,58900-58999,59100-59199,59300-59399,59500-59599,59700-59799,59900-59999,60100-60199,60300-60399,60500-60599,60700-60799,60900-60999,61100-61199,61300-61399,61500-61599,61700-61799,61900-61999,62100-62199,62300-62399,62500-62599,62700-62799,62900-62999,63100-63199,63300-63399,63500-63599,63700-63799,63900-63999,64100-64199,64300-64399,64500-64599,64700-64799,64900-64999,65100-65199,65300-65399"
Environment
- Red Hat Enterprise Linux
net.ipv4.ip_local_reserved_ports
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
