Added multiport rule handling