Setting Up a Linux Node

A node is a local, remote, or cloud server running an Aspera transfer server product (IBM Aspera High-Speed Transfer Server). Faspex uses the Node API on the transfer server to configure the node and to perform transfers to and from the node.

When installing Faspex on the same server as the HST Server, Faspex automatically configures the local node's aspera.conf configuration file and sets up a Node API user to communicate with the Node API. When installing Faspex on a machine without a transfer server, you must configure a remote transfer node for use with Faspex and connect that node to Faspex during the installation process.

Note: The following instructions require you to have administrative privileges.
  1. Verify you have installed IBM Aspera High-Speed Transfer Server with a valid license on your transfer server. Faspex requires that nodes use a Connect Server license.
    Run the following command:
    # ascp -A

    If you need to update your transfer server license, follow the instructions in IBM Aspera High-Speed Transfer Server Admin Guide: Updating Product License.

  2. Disable SELinux.
    SELinux must be set to "permissive" or "disabled", not "enforced". To check the status of SELinux, run the following:
    # sestatus
    If SELinux is set to "enforced", change the SELINUX value to disabled in the SELinux configuration file (/etc/selinux/config).
    SELINUX=disabled
    On the next reboot, SELinux is permanently disabled. To dynamically disable it before the reboot, run the following command:
    # setenforce 0
  3. Create the faspex system user account on the node.
    Run the following commands to create the system user faspex.
    # groupadd -r faspex
    # useradd -r faspex -g faspex
  4. Create and configure the faspex_packages directory.
    Run the following commands to create the faspex_packages directories and configure the faspex user directories:
    # mkdir -p /home/faspex/faspex_packages
    # chown faspex:faspex /home/faspex/
    # chown faspex:faspex /home/faspex/faspex_packages 

The following steps use the asconfigurator utility to modify the aspera.conf configuration file, located at /opt/aspera/etc/aspera.conf.

  1. Add the user to aspera.conf and set the docroot.
    The directory you choose for the docroot is the absolute path for the transfer user. When this node is added to Faspex, users cannot access files or folders outside of the docroot.
    CAUTION:
    Aspera recommends that you not use spaces in your docroot. If your docroot contains spaces, you may not receive all email notifications relating to transfer activity.
    Run the following asconfigurator command with the transfer username and the docroot path:
    # asconfigurator -x "set_user_data;user_name,username;absolute,/docroot/path"
    For example:
    # asconfigurator -x "set_user_data;user_name,faspex;absolute,/home/faspex/faspex_packages"
  2. Set up token authorization for the user in aspera.conf.
    Run the following asconfigurator commands to set the encryption key for the user:
    > asconfigurator -x "set_user_data;user_name,
    > asconfigurator -x "set_user_data;user_name,
    > asconfigurator -x "set_user_data;user_name,
    The encryption key can be any string of numbers. Aspera recommends a string that is at least 20 characters long. For example:
    > asconfigurator -x "set_user_data;user_name,
    > asconfigurator -x "set_user_data;user_name,
    > asconfigurator -x "set_user_data;user_name,
  3. Set the IP address or hostname for the node in the aspera.conf file with the following asconfigurator command:
    # asconfigurator -x "set_server_data;server_name,ip_or_hostname"

    For example:

    # asconfigurator -x "set_server_data;server_name,aspera.example.com"
  4. Configure the node for HTTP and HTTPS fallback.

    The fallback settings on the node must match the fallback settings on Faspex. If the settings don't match, Faspex returns a "Package creation failed" error. Set the HTTP and HTTPS ports to the ports you configured in Faspex. For more information about HTTP fallback, see Configuring HTTP and HTTPS Fallback.

    $ asconfigurator -x "set_http_server_data;enable_http,true"
    $ asconfigurator -x "set_http_server_data;http_port,8080"
    $ asconfigurator -x "set_http_server_data;enable_https,true"
    $ asconfigurator -x "set_http_server_data;https_port,8443" 
    Restart the asperahttpd service by running the following commands:
    # /etc/init.d/asperahttpd restart
  5. Set up a transfer user account with a Node API username and password.
    Faspex authenticates to the node machine using a Node API username and password. The following command creates a Node API user and password and associates it with the system user you created.
    Note: Aspera recommends that you use different names for the system user account and transfer user account in order to minimize confusion when tracing transactions and events.
    1. Run the following commands to set up the Node API user:
      # /opt/aspera/bin/asnodeadmin -a -u node_api_username -p node_api_passwd -x system_username 
      # /opt/aspera/bin/asnodeadmin -a -u node_user -p XF324cd28 -x faspex 
    2. Run the following command to check the system user was successfully added to asnodeadmin:
      # /opt/aspera/bin/asnodeadmin -l
      Given a node user named node_user and a system user named faspex, the result should be similar to the following example:
                      user       system/transfer user                    acls
      ====================    =======================    ====================
                 node_user                  faspex                        
    Adding, modifying, or deleting a node-user triggers automatic reloading of the user database and the node's configuration and license files.
  6. Install the IBM Aspera Connect Browser Plug-In key.
    1. If the .ssh folder does not already exist in the faspex system user's home directory, run the following command to create the folder:
      # mkdir -p ~/.ssh
      For example:
      # mkdir -p /home/faspex/.ssh
    2. Add the aspera_id_rsa.pub public key to the authorized_keys file by running the following command:
      # cat /opt/aspera/var/aspera_id_rsa.pub >> ~/.ssh/authorized_keys
    3. Transfer the .ssh folder and authorized_keys file ownership to the system user by running the following commands:
      # chown -R username:username ~/.ssh
      # chmod 600 /home/username /.ssh/authorized_keys
      # chmod 700 /home/username
      # chmod 700 /home/username /.ssh
The transfer node is now ready for connection to Faspex.