Rules and regulations passed by a board of health of a city or general health district or health commissioner shall apply to all persons, goods, or effects arriving by railroad, steamboat, or other vehicle of transportation, after quarantine is declared.