Muffin settings files
Every key of the two files Muffin keeps its settings in. Muffin writes them itself when you change a setting in its window; the Muffin settings page explains each one and where it appears in the window.
settings.toml
Section titled “settings.toml”Proxy settings
Section titled “Proxy settings”settings.toml · Explained in Settings
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
http_port | u16 | no | 7890 | Port of the local HTTP proxy (Settings › Network › Ports). Must differ from socks_port (http_port and socks_port must differ) and lie between 1 and 65535. |
socks_port | u16 | no | 7891 | Port of the local SOCKS5 proxy, which also relays UDP. |
allow_lan | bool | no | false | Allow LAN: both proxies listen on 0.0.0.0 instead of 127.0.0.1, so other devices on your network can use them. Neither proxy asks for a password. |
log_level | string (enum) | no | "info" | debug, info, warn or error: what the Logs page and the service log show. The RUST_LOG environment variable of the service, when set, takes precedence. |
mode | string (enum) | no | "rule" | rule follows the profile's route groups and your picks; global sends everything to the default pick, or the first node; direct sends everything direct. |
tun | table | no | {} | TUN mode, written as [tun]. See the TUN table below. |
geo | table | no | {} | Where geodata is downloaded from, written as [geo]. See the geodata table below. |
TUN mode
Section titled “TUN mode”[tun] · Explained in Settings
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
enabled | bool | no | false | TUN mode: route the whole system through Muffin. Needs the TUN permission first (TUN needs the permission to create a network device; grant it in Settings). |
device | string | no | "muffin0" | Name of the interface (Device Name). On macOS the system names the device utun<N> unless this value is itself utun<N>. |
mtu | u16 | no | 1500 | MTU of the interface, from 1280 to 9000 (MTU must be between 1280 and 9000). |
bootstrap_dns | string | no | "223.5.5.5:53" | Bootstrap DNS: an IP address and port. With TUN on, the proxy resolves the names of servers and destinations through this server over UDP, outside the tunnel. |
ipv6 | bool | no | false | Relay IPv6 through the TUN. Off, IPv6 is still routed into the TUN, where its connections are refused, so applications use IPv4 at once and no IPv6 traffic bypasses Muffin. |
Geodata
Section titled “Geodata”[geo] · Explained in Settings
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
geoip_url | string | no | "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat" | Where geoip.dat is downloaded from (Settings › Data › Geo data). The window accepts only http and https URLs. |
geosite_url | string | no | "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat" | Where geosite.dat is downloaded from (Settings › Data › Geo data). The window accepts only http and https URLs. |
gui.toml
Section titled “gui.toml”Window preferences
Section titled “Window preferences”gui.toml · Explained in Settings
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
language | string (enum) | no | "system" | system, en or zh-CN (Language). |
theme_mode | string (enum) | no | "system" | system, light or dark (Theme). |
system_proxy | bool | no | false | Set the system proxy to Muffin while the proxy runs (System Proxy). |
silent_start | bool | no | false | Start in the tray, without opening the window (Start in the background). Without a tray, the window opens anyway. |
pinned_nodes | array of strings | no | [] | Names of the nodes pinned to the top of the Proxies page, in the order they were pinned, for every profile. |
node_view | string (enum) | no | "grid" | grid or list: how the Proxies page lays out nodes. |
node_sort | string (enum) | no | "profile" | profile, latency or name: how the Proxies page orders nodes (profile order, fastest first, or by name). |
hide_sidebar_speed | bool | no | false | Leave the download and upload speed out of the sidebar (the opposite of Show traffic in the sidebar). |