Bug 223820 - error when specify portrange (port-port) w/ portnames in ipfw kernel nat config
Summary: error when specify portrange (port-port) w/ portnames in ipfw kernel nat config
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-ipfw (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-23 14:40 UTC by Oleg Streejak
Modified: 2017-11-24 13:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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