Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Allow hyphen characters in Firewall Alias names

    Scheduled Pinned Locked Moved Expired/Withdrawn Bounties
    6 Posts 4 Posters 5.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rpsmith
      last edited by

      Would like to be able to use the hyphen character (-) in alias names. This would help when migrating from m0n0wall to pfsense as m0n0wall already allows hyphens.

      Roy…

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        As you are posting a bounty, how much are you willing to pay the developer who implements this fix for you?

        1 Reply Last reply Reply Quote 0
        • R Offline
          rpsmith
          last edited by

          I'm willing to negotiate that based on feedback from folks willing and able to implement the changes.  Any idea how much time this would take?

          Roy…

          1 Reply Last reply Reply Quote 0
          • jimpJ Offline
            jimp Rebel Alliance Developer Netgate
            last edited by

            This is not likely to be possible. It's a limitation of pf, not pfSense:

            From http://www.openbsd.org/faq/pf/macros.html :

            Macro names must start with a letter and may contain letters, digits, and underscores. Macro names cannot be reserved words such as pass, out, or queue.

            m0n0wall uses ipfilter, not pf.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • R Offline
              rpsmith
              last edited by

              Thanks jimp !

              I would have never guessed it was a pf limitation  :)

              Roy…

              1 Reply Last reply Reply Quote 0
              • D Offline
                databeestje
                last edited by

                short of renaming the hyphen underwater  and crossing fingers that it works as intended.
                I believe it also affects port ranges.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.