Bug 223820

Summary: error when specify portrange (port-port) w/ portnames in ipfw kernel nat config
Product: Base System Reporter: Oleg Streejak <oleg>
Component: kernAssignee: freebsd-ipfw (Nobody) <ipfw>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 11.1-RELEASE   
Hardware: i386   
OS: Any   

Description Oleg Streejak 2017-11-23 14:40:00 UTC
Hi all!

I've just rebuild one system up to

FreeBSD dive1.dive.ru 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0 r326090: Wed Nov 22 14:08:36 MSK 2017     xxx@yyy.ru:/usr/obj/usr/src/sys/zzz  i386

and now here I have:

$ ipfw add count tcp from any ftp\\-data-ftp to any
nnn count tcp from any 20-21 to any

that's correct. But this seems to me to be an error:

$ ipfw nat 77 config if xl0 same_ports redirect_port tcp 192.168.50.253:ftp\\-data-ftp ftp\\-data-ftp
ipfw nat 77 config if xl0 same_ports redirect_port tcp 192.168.50.253:50-43200 50-43200

It seems to me that there's a new error in ipfw nat config's parser, as I have this rule for some time... several monthes, possibly even years

WBR,
Oleg