Bug 24925

Summary: can't set net.inet.ip.portrange.lowfirst above 1023 with sysctl
Product: Base System Reporter: uitm <uitm>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-RELEASE   
Hardware: Any   
OS: Any   

Description uitm 2001-02-07 16:10:01 UTC
Setting net.inet.ip.portrange.lowfirst above the value of 1023 fails.
Apparently sysctl syscall doesn't give any indication of error
when trying to change lowfirst to anything greater than 1023, but
actually this operation is not completed (see 'how to repeat the problem').
I didn't come to any fix to sysctl syscall or utility yet.

How-To-Repeat: uitm# /sbin/sysctl -a | grep port
vfs.nfs.nfs_privport: 0
net.inet.ip.portrange.lowfirst: 1020
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 3072
net.inet.ip.portrange.last: 5000
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535

uitm# /sbin/sysctl -w net.inet.ip.portrange.lowfirst=3071
net.inet.ip.portrange.lowfirst: 1020 -> 1023

uitm# /sbin/sysctl -a | grep port
vfs.nfs.nfs_privport: 0
net.inet.ip.portrange.lowfirst: 1023
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 3072
net.inet.ip.portrange.last: 5000
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535
Comment 1 Steve Price freebsd_committer freebsd_triage 2001-02-07 17:03:11 UTC
State Changed
From-To: open->closed

Closed at originator's request.