Netgate m1n1wall

Author Topic: allow hyphen characters in Firewall Alias names  (Read 3394 times)

0 Members and 1 Guest are viewing this topic.

Offline rpsmith

  • Full Member
  • ***
  • Posts: 234
  • Karma: +0/-0
    • View Profile
allow hyphen characters in Firewall Alias names
« on: December 28, 2010, 01:15:21 pm »
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...

Offline submicron

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 741
  • Karma: +0/-0
  • I like pie!
    • View Profile
    • BSDPerimeter
Re: allow hyphen characters in Firewall Alias names
« Reply #1 on: December 28, 2010, 03:32:59 pm »
As you are posting a bounty, how much are you willing to pay the developer who implements this fix for you?
I do not respond to PMs demanding help.

Offline rpsmith

  • Full Member
  • ***
  • Posts: 234
  • Karma: +0/-0
    • View Profile
Re: allow hyphen characters in Firewall Alias names
« Reply #2 on: December 28, 2010, 03:39:17 pm »
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...

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14998
  • Karma: +4/-0
    • View Profile
Re: allow hyphen characters in Firewall Alias names
« Reply #3 on: January 03, 2011, 12:11:06 pm »
This is not likely to be possible. It's a limitation of pf, not pfSense:

From http://www.openbsd.org/faq/pf/macros.html :
Quote
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.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline rpsmith

  • Full Member
  • ***
  • Posts: 234
  • Karma: +0/-0
    • View Profile
Re: allow hyphen characters in Firewall Alias names
« Reply #4 on: January 03, 2011, 12:22:19 pm »
Thanks jimp !

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

Roy...

Offline databeestje

  • Administrator
  • Hero Member
  • *****
  • Posts: 1048
  • Karma: +0/-0
  • It just might be your luck day, if you only knew.
    • View Profile
Re: allow hyphen characters in Firewall Alias names
« Reply #5 on: February 26, 2011, 06:12:57 am »
short of renaming the hyphen underwater  and crossing fingers that it works as intended.
I believe it also affects port ranges.