Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2025 11:51:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 291569] ipfw table add/delete requires tty
Message-ID:  <bug-291569-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291569

            Bug ID: 291569
           Summary: ipfw table add/delete requires tty
           Product: Base System
           Version: 15.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: work+freebsd@vvv.kiev.ua

Starting from 15.0-RELEASE, ipfw table add/delete commands require tty:

# ipfw table TEST1 create or-flush
# ipfw table TEST1 add 0.0.0.1 </dev/null
added: 0.0.0.1/32 0
ipfw: Adding record failed: Inappropriate ioctl for device
# echo $?
71
# ipfw table TEST1 list
0.0.0.1/32 0
# ipfw table TEST1 delete 0.0.0.1 </dev/null
deleted: 0.0.0.1/32 0
ipfw: Deleting record failed: Inappropriate ioctl for device
# echo $?
71
# ipfw table TEST1 list
#

Workaround: use -q option:

# ipfw table TEST1 create or-flush
# ipfw -q table TEST1 add 0.0.0.1 </dev/null
# echo $?
0
# ipfw table TEST1 list
0.0.0.1/32 0
# ipfw -q table TEST1 delete 0.0.0.1 </dev/null
# echo $?
0
# ipfw table TEST1 list
#

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

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