Bug 252744 - ipfw cannot add fwd rule with tablearg,port
Summary: ipfw cannot add fwd rule with tablearg,port
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-16 16:26 UTC by bugs.freebsd.org
Modified: 2021-01-22 06:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.freebsd.org 2021-01-16 16:26:31 UTC
For example, on 12.2

> ipfw add 7110 fwd tablearg,8000 tcp from 'table(5)' to any dst-port 80,8000,8080 ; echo $?
ipfw:
65
> ipfw show 7110
ipfw: rule 7110 does not exist



> ipfw add 7110 fwd 172.19.1.6,8000 tcp from 'table(5)' to any dst-port 80,8000,8080 ; echo $?
07110 fwd 172.19.1.6,8000 tcp from table(5) to any 80,8000,8080
0
> ipfw show 7110
07110  0    0 fwd 172.19.1.6,8000 tcp from table(5) to any 80,8000,8080



on 11.4
> ipfw add 7110 fwd tablearg,8000 tcp from 'table(5)' to any dst-port 80,8000,8080 ; echo $?
07110 fwd tablearg,8000 tcp from table(5) to any 80,8000,8080
0
Comment 1 Mark Johnston freebsd_committer 2021-01-21 20:35:23 UTC
FreeBSD 12.2p1 fixes an erratum that looks similar to this one.  Are you able to reproduce this problem after updating?
Comment 2 bugs.freebsd.org 2021-01-22 06:05:02 UTC
yes.
on 12.2-p1

> uname -a
FreeBSD localhost 12.2-RELEASE-p1 FreeBSD 12.2-RELEASE-p1 GENERIC  amd64

> ipfw add 7110 fwd tablearg,8000 tcp from 'table(5)' to any dst-port 80,8000,8080 ; echo $?
ipfw:
65

> ipfw show 7110
ipfw: rule 7110 does not exist