Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 08:02:18 -0800 (PST)
From:      uitm@zenon.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/24925: can't set net.inet.ip.portrange.lowfirst above 1023 with sysctl
Message-ID:  <200102071602.f17G2Io71717@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24925
>Category:       kern
>Synopsis:       can't set net.inet.ip.portrange.lowfirst above 1023 with sysctl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 07 08:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Alekseyev
>Release:        4.1-RELEASE
>Organization:
Zenon N.S.P.
>Environment:
FreeBSD uitm 4.1-RELEASE FreeBSD 4.1-RELEASE #1:
Fri Oct  6 17:18:08 MSD 2000 uitm@uitm:/usr/src/sys/compile/UITM i386
>Description:
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

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102071602.f17G2Io71717>