Skip to content

TOML Configuration

Catsplash is configured via a TOML file. It looks for config.toml in the current directory or /opt/catsplash/config.toml.

iface = "wlx1cbfce41183a"
wan_iface = "eth0"
portal_port = 8080
session_timeout = 3600
idle_timeout = 900
db_path = "/opt/catsplash/catsplash.db"
redirect_url = "http://192.168.10.1:8080/portal"
download_speed = "0"
upload_speed = "0"
admin_user = "admin"
admin_pass = "catsplash"

Network interface for the WiFi hotspot.

  • Type: string
  • Default: "wlan0"

Network interface with Internet access.

  • Type: string
  • Default: "eth0"

Port where the portal web server listens.

  • Type: int
  • Default: 8080

Maximum absolute session time in seconds.

  • Type: int
  • Default: 3600 (1 hour)

Maximum idle time in seconds before closing the session.

  • Type: int
  • Default: 600 (10 minutes)

Path to the SQLite database file.

  • Type: string
  • Default: "captive.db"

URL clients are redirected to for the captive portal.

  • Type: string
  • Default: "http://192.168.1.1:8080/portal"

Global download speed limit. "0" for unlimited.

  • Type: string
  • Default: "0"

Global upload speed limit. "0" for unlimited.

  • Type: string
  • Default: "0"

Username for the web admin panel.

  • Type: string
  • Default: "admin"

Password for the web admin panel.

  • Type: string
  • Default: "catsplash"