rules template: add support for services with port range. Refs #2644
rules template: support port range from local network. Refs #2644