Skip to content

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 · Explained in Settings

KeyTypeRequiredDefaultDescription
http_portu16no7890Port 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_portu16no7891Port of the local SOCKS5 proxy, which also relays UDP.
allow_lanboolnofalseAllow 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_levelstring (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.
modestring (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.
tuntableno{}TUN mode, written as [tun]. See the TUN table below.
geotableno{}Where geodata is downloaded from, written as [geo]. See the geodata table below.

[tun] · Explained in Settings

KeyTypeRequiredDefaultDescription
enabledboolnofalseTUN 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).
devicestringno"muffin0"Name of the interface (Device Name). On macOS the system names the device utun<N> unless this value is itself utun<N>.
mtuu16no1500MTU of the interface, from 1280 to 9000 (MTU must be between 1280 and 9000).
bootstrap_dnsstringno"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.
ipv6boolnofalseRelay 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.

[geo] · Explained in Settings

KeyTypeRequiredDefaultDescription
geoip_urlstringno"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_urlstringno"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 · Explained in Settings

KeyTypeRequiredDefaultDescription
languagestring (enum)no"system"system, en or zh-CN (Language).
theme_modestring (enum)no"system"system, light or dark (Theme).
system_proxyboolnofalseSet the system proxy to Muffin while the proxy runs (System Proxy).
silent_startboolnofalseStart in the tray, without opening the window (Start in the background). Without a tray, the window opens anyway.
pinned_nodesarray of stringsno[]Names of the nodes pinned to the top of the Proxies page, in the order they were pinned, for every profile.
node_viewstring (enum)no"grid"grid or list: how the Proxies page lays out nodes.
node_sortstring (enum)no"profile"profile, latency or name: how the Proxies page orders nodes (profile order, fastest first, or by name).
hide_sidebar_speedboolnofalseLeave the download and upload speed out of the sidebar (the opposite of Show traffic in the sidebar).