Skip to content

Ports and Firewall

Olivier van Helden edited this page Nov 23, 2026 · 7 revisions

List the listeners configured for all instances, including protocol, purpose, and access category:

opensim ports

Limit the output to one grid or simulator by naming it:

opensim ports my-grid

Print container runtime port mappings:

opensim ports --publish

Print UFW rules for public listeners and comments for private/console listeners:

opensim ports --ufw

Use --private-address ADDRESS to bind private and console listeners to a specific private address; the default is 127.0.0.1:

opensim ports --ufw --private-address 192.168.1.10

Firewall policy

  • Open only what opensim ports --ufw prints, never a wide range such as 8000-8099 or 9000-9999.
  • Public listeners (Robust public port, simulator http and UDP region ports) are open to everyone.
  • The Robust private port is reachable only from a list of fixed public IPv4/IPv6 addresses (the pool: the grid's simulators).
  • Console ports (Robust and simulators) are reachable only from the management host(s), a setting of their own (often the Robust server, not necessarily). Nothing else is restricted on the simulator side.
  • A simulator has no private listener: it is a client of the Robust private port. Simulators do not talk to each other on private or console ports (region crossings, teleports and Hypergrid use the public http port).
  • Public and private Robust URLs use the same host. Private networks are out of scope for now.
  • The engine API of a grid, for the sites of the same machine, listens on 127.0.0.1 only, on a port of the grid: the first free one of its block after its own ports, its console (x4) left to it, so 8005 for a grid on 8002. opensim ports lists it as local; it is never published and never opened. opensim web GRID api gives the web server config and the api_url of the site with that port.

Print real ufw allow from rules for the Robust private port with --from, and for the console ports with --manage-from. Each takes IPv4 or IPv6 addresses (or address/prefix), separated by commas:

opensim ports --ufw --from 203.0.113.5,2001:db8::/64 --manage-from 198.51.100.7

Without them, those two kinds of ports are printed as comments.

These commands report or print rules; they do not apply firewall changes. Review the output, then configure the host firewall and any upstream router or provider firewall separately. Keep console ports restricted to trusted management hosts.

Clone this wiki locally