Fix problems with network ports and rules