Docs / Multiplayer / Dedicated server
Bans
There are two kinds of ban:
| Ban | Holds | Lasts |
|---|---|---|
ban |
The game's random nonce and the address it came from | This server run only |
Machine ban (hwban) |
The machine's identifier | Until it ends or is lifted, across restarts |
A name is whatever the game says, and an address changes or is shared. So the lasting ban is the machine ban.
Ban a machine#
- In the game, open
Esc→ Player list... and pick the player. - Choose Ban this machine....
- Pick a reason, then the scope and length: This session or All my sessions (admin only), each for a day, for a week or for good.
The web panel and POST /api/admin/ops do the same. The player is sent away at once, and the ban is in the audit log.
The host of a session started by code can ban too. A host cannot ban its own machine.
To lift a ban: Player list... → Banned machines, the web panel, or unban <id>. Lifting removes it from whichever list holds it.
Where bans are kept#
| Scope | File |
|---|---|
| This session | bans.json beside server.cfg. For a game hosting by code: only while it runs. |
| All my sessions | The owner's list, ~/.openomsi/bans-owner.json of the account the server runs as. Every game and server started from that account reads it, running ones within a second. |
To share one list between servers or machines, point owner_bans at a file in a synced folder.
The files are JSON, written to a temporary file and moved into place. A file that cannot be read gives no bans (the log says so, and a .bak copy is kept). It is never silently emptied.
How the identifier works#
When a game joins, the host answers its first hello with a realm, a random key kept in the owner's list.
The game sends SHA-256 over the machine's own ID and that realm, cut to 128 bits. The machine ID is Windows MachineGuid, Linux /etc/machine-id or macOS IOPlatformUUID; on a system with none, a random number kept in ~/.openomsi/hardware-id.
- The machine ID never leaves the machine and cannot be recovered from the hash. No disk or board serial is read.
- Every session of one owner list gets the same identifier from a machine. Another owner gets a different one, so owners cannot compare who joined them unless they share a list on purpose.
- The host fixes the identifier to the connection at its first hello and shows it to nobody. The panels list bans by name, reason and time only.
- A banned machine is turned away with
you are banned from this session: <reason>.
Limits#
- The identifier is the game's claim, not a proof. A modified game can send any value. A reinstalled system, a new machine ID, a virtual machine or another computer is another machine.
- Older games, and players who turned it off, send none. They cannot be machine-banned.
require_hardware_id = 1turns them away;banstill holds them for the run. - Players turn it off in the launcher: Settings → General → Send servers an identifier for bans.
- Bans made before network protocol 16 name identifiers no game sends any more. The server log says so at start. Ban those players again.
Something wrong or missing? Fix it on GitHub or open an issue.