[Bug 234237] ipfw cannot parse port names with hyphens or underscores

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 21 15:18:57 UTC 2018


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

--- Comment #2 from Jose Luis Duran <jlduran at gmail.com> ---
(In reply to commit-hook from comment #1)

Thank you!

So, for hyphened service names, escaping is mandatory:

    $ ipfw -n add pass udp from any to any dst-port "ftp\-data"
    00000 allow udp from any to any 20

After this commit, dots and underscores are allowed unescaped.

Should the /etc/rc.firewall script should be updated as well?  Specifically the
firewall_myservices rcvar to also accept underscores and dots unescaped?

Thank you again!

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


More information about the freebsd-ipfw mailing list