Configuration
The Gateway Configuration File
The IBM Aspera fasp.io Gateway configuration file, gateway.toml, is located here:
/usr/local/etc/fasp.io/gateway.tomlC:\Program Files\IBM\fasp.io Gateway\config\gateway.tomlThe gateway.toml file included in the installation is provided as a template. Modify this file to specify your ports, host names, and so on.
Configuration Examples
Example: Client to Server
In this configuration, two Gateways are used to bridge a TCP connection from TCP clients to a TCP server over FASP:

Given a server listening on port 12345, configure your client to point to Gateway 1 (GW1 IP) and port 12345:
| GW1 Configuration | GW2 Configuration |
|---|---|
|
|
- protocol
- The transfer protocol type, either
"tcp"or"fasp". The protocol type must be quoted. - host
- The host name or IP address, always quoted.
- port
- Either of these:
- Port number (quoting optional)
- Known port/service name (quoting required), such as
"http"or"ftp-data"
You can specify a range of numbered ports using a hyphen; for example,100-110. Details:- The range of port numbers must be ascending (low to high); for example,
100-110, but not100-90. - The size of the range cannot exceed 50 ports.
- If a port range is used, the range for the local port and the forward port must be the same size.
- The ranges do not need to consist of the same ports. For example, the local range could be 501-509 and the forward range could be 511-519; however, the forward range could not be 511-520.
Example: Forwarding to the first Available Host
For
bridge.forward, Gateway can loop through an array of specified host names or IP
addresses and forward to the first available host it finds. For
example:
[bridge.forward]
protocol = "fasp"
host = ["GW2", "10.0.0.2"]
port = 12345A hostname can resolve to multiple IP addresses. If a hostname is specified—either as a single entry or as an entry within the array—each of its IP addresses are tried until a connection is established.
Example: Server to Server
For some use cases, such as DB replication or messaging services (like MQ or Event Streams), communication must be established by both sides. In this mode, each server initiates a connection to the other:

| GW1 Configuration | GW2 Configuration |
|---|---|
|
|
Gateway Configuration Options

| Bridge: HTTP-Out | Bridge: Smtp-Out | Bridge: MQ-In |
|---|---|---|
|
|
|
Logging Configuration File
Logging configuration is defined in logging.toml, which is located here:
/usr/local/etc/fasp.io/logging.tomlC:\Program Files\IBM\fasp.io Gateway\config\logging.tomlError, warning, and info logs are sent to the console by default. In the default logging.toml file, four loggers are made available:
gateway– High-level logger for the gateway.s2s– Stream-to-stream session class logger.fasp.io-cpp– Logger for the Asio/C++ FASP SDK.fasp.io-c– Logger for the FASP protocol.
For more information on how to configure logging, see the full reference at:
https://github.com/guangie88/spdlog_setup
- The
levelsetting is optional for both sinks and loggers. - The
levelfor error logging iserr, noterror. - The
_stsuffix means single-threaded. - The
_mtsuffix means multi-threaded. syslog_sinkis thread-safe by default. No_mtsuffix is required.
spdlog default logging format
is:[2014-10-31 23:46:59.678] [loggername] [info] messageFor information on how to customize spdlog formatting, see:
https://github.com/gabime/spdlog/wiki/3.-Custom-formatting