fix the port update script to work with ufw