Yes, I guess that can be done do the user input without bothering to ask or tell the user. I am about to go home now, will have a look this evening (Nepal time).
Do you want is_posnumericint() in util.inc in some form?
Or should I keep it all in firewall_rules_edit?