Relioncross

Configuration

Relioncross is configured by one YAML file, passed as the first argument (default relioncross.yaml; if it does not exist, defaults are used). It replaces the retail server’s FLServer.cfg, DACOMsrv.ini and motd.dat. Every key is optional, and an unknown key is an error, so typos do not pass silently.

Example

server:
  name: Relioncross
  motd: "Welcome, pilot."
  password: null           # set to require a password to join
  max_players: 64
  listen: 0.0.0.0:2302     # UDP: LAN discovery and join
data:
  root: /data/freelancer   # install root containing DATA/
storage:
  dir: /state              # economy overrides (accounts and characters later)
api:
  listen: 0.0.0.0:8080
  token: null              # bearer token for writes; null = read-only
auth:
  provider: open           # login backend: open or accounts
  accounts_file: null      # only for provider: accounts

Reference

KeyDefaultMeaning
server.nameRelioncrossName shown in LAN discovery replies.
server.motdemptyMessage of the day. Reserved: not sent to players yet.
server.passwordnoneIf set, join must present it.
server.max_players64Join is rejected with “server full” beyond this.
server.listen0.0.0.0:2302UDP socket for the LAN protocol.
server.session_timeout_secs60A session with no valid datagram for this long frees its slot. 0 keeps sessions for ever.
server.rate_limit_per_sec50Average datagrams per second one address may send. Extra datagrams are dropped with no reply. 0 turns the limit off.
server.rate_limit_burst100Datagrams one address may send at once before the limit drops them.
server.chat_max_len200Longest chat line, in characters. A longer line is rejected.
server.chat_per_minute30Chat lines one session may send a minute on average, after a burst of 5. 0 turns the limit off.
server.tick_hz10Position snapshots per second sent to each player in space.
data.root/data/freelancerYour Freelancer install. Market data is read from DATA/EQUIPMENT (goods.ini, market_*.ini).
storage.dir/stateWritable directory. Today it holds economy-overrides.json.
api.listen0.0.0.0:8080TCP socket for the HTTP API and dashboard.
api.tokennoneBearer token required for every PUT, POST and DELETE. With no token the API is read-only (403 on writes).
auth.provideropenLogin backend: open accepts any non-empty display name (LAN and development), accounts checks each join against a local file of password hashes. See local accounts.
auth.accounts_fileaccounts.json in storage.dirPath of the accounts file. Used only with auth.provider: accounts.

Local accounts

Set auth.provider: accounts to check each join against a file the server owns. No outside service is called. Clients send the password in account_password (join rules).

The file is JSON, {"accounts": {"Name": "<hash>"}}. Each hash is an Argon2id string with its own random salt, and the file never holds a password. The server writes it with mode 0600. At start it refuses a file that group or other can read (run chmod 600), a missing or unreadable file, a hash that does not parse, and two names that differ only in case. Names match case-insensitively.

Edit the file with the binary, not by hand. The password is read from standard input, so it is never on a command line:

read -rs PW && printf %s "$PW" | relioncross accounts add Pilot --config relioncross.yaml
relioncross accounts list   --config relioncross.yaml
relioncross accounts remove Pilot --config relioncross.yaml

add on an existing name changes its password. A name is 1 to 32 characters with no control characters. A password is 8 to 256 bytes. The server reads the file once at start, so restart it after a change. Bans apply after the login, as with open.

Not finished. There is no lockout: each wrong attempt costs the server one hash, and the per-address datagram limit is the only brake. There is no sign-up, password reset or reload without a restart. The datagrams are not encrypted, so the password crosses the LAN in clear text. Not yet tried with a real Rustlancer client.

Security notes

Relioncross is unofficial and not affiliated with Microsoft or the IONCROSS community. It contains no Microsoft or IONCROSS files; bring your own copy of Freelancer.