Skip to Content
bowel

Settings reference

This page goes through the desktop Settings window in order: what each setting does, its default, and when you'd change it. If you come from another Clash client, each row also gives the mihomo config key it maps to. What Android has is under Android at the end.

Using the Settings window

  • To open it, click Settings at the right of the home window's title bar, or press ⌘, (Ctrl+, on Windows and Linux).
  • There is no Save button. Each change is checked, saved and applied at once, and the core reloads its config; when a change isn't valid or the core refuses it, a message says why and the setting goes back to what it was. A text field's edit counts when you press Return or click elsewhere. The WebDAV fields are the exception: they need Save.
  • Search: press ⌘F (Ctrl+F on Windows and Linux) or click Search settings at the top of the sidebar. The words are looked up in every page's setting names and descriptions, and the results are listed by section. Clicking a result's name opens its page and flashes the setting there. Esc clears the search.
  • The foot of the sidebar shows the mihomo core's version and state.
  • Where the interface says "Mac", Windows and Linux say "computer". Labels below are as macOS shows them.

General

Bowel's own preferences; the core doesn't see them.

SettingWhat it doesDefault
LanguageThe interface's language: 简体中文, 繁體中文, English, 日本語简体中文
SkinThe whole interface's colors, type, corners and texture. Picking a skin also changes the theme color to the skin's ownPaper
Skin motionThe decorations in a skin that move, such as Christmas's falling snow and twinkling lights, and Mr. Robot's blinking cursor. Off, they hold still and use no CPU. They also hold still while another app is in front, and when the system asks for reduced motion. This machine's own settingOn
AppearanceSystem, Light or Dark. Some skins are dark only or light only, and then this row just says soSystem
BordersThe lines between the home board's blocks: Straight, or Twisted like the logo'sStraight
Theme colorThe color of buttons, switches and what is selected. Pick Lime, Indigo, Coral, Teal, Pink or Ink, or type #RRGGBB in the box beside them; an empty box is InkLime
Open at loginOpen Bowel when you log in. It is the system's login item, so a change made in the system's settings shows here tooOff
Global shortcutPress it anywhere to show or hide Bowel's window. Click "Click to record", then press the keys, holding ⌘, ⌃ or ⌥ (Ctrl, Alt or Win/Super on Windows and Linux); Esc cancels, × clears it. If another app has the keys, a message says so and nothing is savedNone
Start hiddenWhen opened at login, stay in the menu bar without a windowOff
Show network speed in the menu barWhile taken over, the live download and upload rates stand beside the icon. On Windows it is "Show network speed on the tray icon", shown when you hover the icon; on Linux "Show network speed beside the tray icon", which some desktops' panels don't showOff
Show the speed on two linesmacOS only: upload on top and download below, which takes less room in the menu bar. Needs the setting aboveOff

Inbound

Where traffic enters mihomo.

SettingWhat it doesmihomoDefault
Mixed portOne port for both HTTP and SOCKS5; the system proxy points at itmixed-port7899
HTTP portA port for HTTP proxying only; 0 is offport0
SOCKS portA port for SOCKS5 only; 0 is offsocks-port0

Ports are between 1 and 65535 (the HTTP and SOCKS ports may be 0), and no two may be the same; a new port must be free, or the change is refused. When you change the mixed port, the system proxy, if on, follows it to the new port. Open the other two only when a program wants an HTTP-only or SOCKS5-only port.

LAN

SettingWhat it doesmihomoDefault
Gateway modePhones, TVs and consoles use this Mac as their gateway and follow Bowel's rules. Turns TUN on too. macOS and Linux only; see gateway mode—Off
Allow LAN connectionsDevices on the same network can use Bowel as their proxy. Once on, the row gives the address they connect toallow-lanOff
Allowed addressesOnly devices in these networks may connect, as 192.168.0.0/16. Written to the config only while LAN connections are allowedlan-allowed-ips0.0.0.0/0, ::/0 (any address)
AuthenticationOne user:password per entry; LAN devices sign in first, this Mac never doesauthentication, with this machine's addresses in skip-auth-prefixesEmpty

When you allow LAN connections, narrow the allowed addresses to your own network, or set up authentication.

System proxy

SettingWhat it doesDefault
BypassDomains and networks the system proxy skips. This is the system proxy's setting and isn't written to mihomo's configlocalhost, 127.0.0.1, *.local, 169.254/16, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, timestamp.apple.com
Let UWP apps use the proxyWindows only. The Store, Mail, Xbox and other UWP apps can't reach a proxy on this computer by default; Allow all adds them all to Windows' loopback exemptions, which may take an administrator, and Undo removes only the ones Bowel added—

While developer networks are on, their addresses are added to the system proxy's bypass list too; you don't need to write them here.

Core

How mihomo itself behaves.

SettingWhat it doesmihomoDefault
Log levelHow detailed the core's log on the Log page is: debug, info, warning, error, silentlog-levelinfo
IPv6Off, Auto or On; see belowipv6, and dns.ipv6Auto
Unified delayLeave out the handshake when testing, so delays of different protocols compareunified-delayOn
TCP concurrentWhen a domain has several IPs, dial them all and use the first to connecttcp-concurrentOn
Process matchingFind the app behind a connection; see belowfind-process-modealways
TLS fingerprintThe browser every node's TLS handshake imitates: None, chrome, firefox, safari, ios, android, edge, randomglobal-client-fingerprintNone
Outbound interfaceThe interface traffic leaves by, as en0; empty picks itinterface-nameAutomatic

IPv6

  • Off: IPv4 only. DNS returns no IPv6 addresses, and TUN doesn't take IPv6.
  • Auto: on only while the current network really has IPv6. Bowel checks whether the network has a public IPv6 address and whether IPv6 reaches the internet, and the row says whether it is on or off now, and why. It follows you as you change networks.
  • On: always resolve and connect to IPv6 addresses. On a network without IPv6, some sites may fail.

Auto is the one to keep. While a route group has the exit lock and TUN is on, TUN takes IPv6 traffic even with IPv6 off, and routes it by the rules as it does IPv4, so that an app that finds an IPv6 address by itself can't go around the lock (DNS still returns no IPv6 addresses). See exit lock.

Process matching

When a rule matches by app (such as the app rules under Settings › Rules), the core has to know which process each connection comes from.

  • always: look it up for every connection.
  • strict: only when a rule needs it, which costs a little less.
  • off: never. Rules by app stop matching.

Keep-alive

SettingWhat it doesmihomoDefault
Keep-alive intervalHow often TCP keep-alive probes, 1 to 3600 secondskeep-alive-interval15 s
Disable keep-aliveSaves power, but idle connections may be dropped on the waydisable-keep-aliveOff

Testing

SettingWhat it doesmihomoDefault
Test URLUsed for provider health checks, and as the main target of Other and of groups you made unless you changed their test sites. Other groups set theirs in their node list; see test sitesthe provider's health-check.urlhttp://cp.cloudflare.com/generate_204
Download test fileThe file Downloads fetches through each node. It should be big enough to take a few seconds; your usual download source works too. Empty uses the default. See download test—https://speed.cloudflare.com/__down?bytes=50000000
Test intervalHow often Auto tests every node, 10 to 86400 secondsthe url-test groups' interval300 s
ToleranceHow much faster another node must be before Auto switches, 0 to 5000 msthe url-test groups' tolerance30 ms
Health check intervalHow often providers check that their nodes work, 10 to 86400 secondsthe provider's health-check.interval600 s

With many nodes and Auto switching back and forth, raise the tolerance; with a subscription billed by traffic, lengthen the two intervals.

DNS

How domains resolve to IPs. While TUN is on, the top of this page says "TUN is on, so the built-in DNS is always on", and the Built-in DNS switch is grayed out.

SettingWhat it doesmihomoDefault
Built-in DNSLet mihomo resolve domains instead of the system, even without TUNdns.enableOff (always on with TUN)
Enhanced modefake-ip or redir-host; see belowdns.enhanced-modefake-ip
Fake-IP rangeWhere the fake addresses for domains come from. Shown with fake-ip onlydns.fake-ip-range198.18.0.1/16
Fake-IP filterThese domains get real IPs, as +.lan or time.*.com. Shown with fake-ip onlydns.fake-ip-filter*.lan, *.local, localhost.ptlogin2.qq.com, +.stun.*.*, +.msftconnecttest.com, +.msftncsi.com, time.*.com, +.ntp.org

With the built-in DNS off

With the built-in DNS off and TUN off, the core still has a resolver, because nodes written as domains must be looked up before they can be dialled. It runs in the plain mode that answers real IPs; the enhanced mode, Fake-IP, bootstrap servers, fallback servers, Respect rules and Prefer HTTP/3 don't apply. Hosts, the nameserver policy, the servers and policy for node names and the servers for direct connections still do.

fake-ip or redir-host

  • fake-ip: the core answers each domain with a fake address from the Fake-IP range at once, and routes by the domain when the connection comes. It is fast: nothing is asked upstream before connecting. The few programs that need a real IP (LAN discovery, NTP, some games) go in the Fake-IP filter.
  • redir-host: answers real IPs. It is more compatible, at the cost of a lookup every time.

Gateway mode always uses fake-ip.

Servers

SettingWhat it doesmihomoDefault
Upstream serversThe servers that resolve names as a rule: DoH or DoT links, or IPs; at least onedns.nameserverhttps://doh.pub/dns-query, https://dns.alidns.com/dns-query
Bootstrap serversResolve the servers above by name; must be IPs, at least onedns.default-nameserver223.5.5.5, 119.29.29.29
Fallback serversAsked when the upstream answer looks wrong, as a foreign IP; may be emptydns.fallbackEmpty
Servers for node namesOnly resolve the nodes' addresses; may be emptydns.proxy-server-nameserverEmpty
Policy for node namesOne domain=server per entry, only for those nodes' addresses, as +.example.com=https://dns.example/dns-query; other nodes stay as they aredns.proxy-server-nameserver-policyEmpty
Servers for direct connectionsResolve names that connect directly; empty uses the upstream servers, system the system's DNSdns.direct-nameserver, with direct-nameserver-follow-policyEmpty
Nameserver policyOne domain=server per entry, as geosite:cn=223.5.5.5; a domain may repeatdns.nameserver-policyEmpty
Respect rulesDNS queries follow the routing rules too; needs servers for node namesdns.respect-rulesOff
Prefer HTTP/3Use HTTP/3 with DoH servers that support itdns.prefer-h3Off

Each set of servers has one job:

  • Upstream servers answer nearly every query. The defaults are DoH servers in mainland China: fast, but they answer with the addresses seen from there.
  • Bootstrap servers break the chicken-and-egg: an upstream given by name (doh.pub) has to be found by IP before it can be asked, so these must be IPs.
  • Fallback servers are asked again when the upstream's answer looks wrong, such as a foreign IP. Also, the names of a route group with the exit lock are asked of the fallback servers through that group's node; with none, of 1.1.1.1 and 8.8.8.8 over DoH, not of the upstream, since servers in mainland China asked from abroad are slow and answer for the wrong place.
  • Servers for node names only resolve the nodes' own addresses. Fill them in when your provider's node names are poisoned upstream, or when Respect rules is on: that sends DNS queries through the proxy, and a node has to be resolved before it can be reached, so that one lookup can't go through the proxy.
  • Policy for node names gives the nodes under some domains servers of their own and leaves every other node as it is. Use it when one provider's node names resolve only through its own DoH: +.example.com=https://dns.example/dns-query sends that provider's nodes to its DoH, and your other providers' nodes are not asked of it. Nodes the policy doesn't match go to the servers for node names, or to the upstream servers when those are empty.
  • Servers for direct connections resolve the names that the rules send direct. On a company network, some sites are only reachable at the addresses its own DNS gives: write system. While TUN is on, Bowel changes the system's DNS for a while (see Take over system DNS below), and system still means the network's own DNS.

Hosts

SettingWhat it doesmihomoDefault
Use hostsLook up the hosts below firstdns.use-hostsOn
Use the system's hostsLook up /etc/hosts toodns.use-system-hostsOn
HostsOne domain=IP per entry, as router.lan=192.168.1.1hostsEmpty
Flush DNS cacheForget resolved names and fake-ip mappings; they resolve again——

Sniffing

Read domains from the traffic, so connections with only an IP route by domain too.

SettingWhat it doesmihomoDefault
SniffingRead HTTP's Host, and TLS's and QUIC's SNI. While off, none of the rows below is written to the configsniffer.enableOff
Override destinationConnect to the sniffed domain, not only match rules with itsniffer.override-destinationOff
Force DNS mappingSniff connections mapped by DNS toosniffer.force-dns-mappingOn
Sniff pure IPsSniff connections made straight to an IPsniffer.parse-pure-ipOn
HTTPSniff HTTP on these ports, as 443 or 8080-8880sniffer.sniff.HTTP.ports80, 8080-8880
TLSSniff TLS on these portssniffer.sniff.TLS.ports443, 8443
QUICSniff QUIC on these portssniffer.sniff.QUIC.ports443, 8443
SkipDomains never sniffed, as +.push.apple.comsniffer.skip-domain+.push.apple.com, dlg.io.mi.com

Some programs connect by IP (they do their own DNS, or have the address built in), and rules written for domains never see them. That is when to turn sniffing on. While developer networks are on, their networks go in sniffer.skip-dst-address and aren't sniffed.

TUN

TUN is turned on and off in the takeover card on the home page; these are its parameters.

SettingWhat it doesmihomoDefault
Stackmixed, system, gvisor, mips. The window says: mixed is system for TCP and gVisor for UDPtun.stackmixed
Strict routeKeep traffic from going around TUN; may affect reaching the LANtun.strict-routeOff
Detect interfaceSend traffic out by the system's default interfacetun.auto-detect-interfaceOn
Endpoint-independent NATBetter UDP for games and calls, at a little costtun.endpoint-independent-natOff
DeviceThe TUN device's name; empty lets the system pick. On macOS it must start with utun, as utun1024; on Linux it is at most 15 characters, with no space or slashtun.deviceAutomatic
MTUThe largest packet, in bytes, 576 to 65535tun.mtu9000
Take over system DNSSee below. Linux doesn't have it—On
DNS hijackDNS queries to these addresses go to mihomo, as any:53tun.dns-hijackany:53, tcp://any:53

tun.auto-route is always on. While developer networks are on, the LAN's, the tailnet's and other such networks go in tun.route-exclude-address and stay out of TUN.

Strict route

With it on, the system can no longer send traffic around TUN by another interface. The cost is that devices on the LAN (printers, a NAS, screen casting) may become unreachable. Leave it off at first, and try it when something still goes direct with TUN on. On Windows, Take over system DNS turns it on too.

Take over system DNS

Some systems send DNS queries straight to the router, past TUN, and then Bowel can't tell which domain a program wants. This setting brings the queries into TUN. It only acts while TUN is on and DNS hijack isn't empty:

  • macOS: while TUN is on, every network service's DNS is set to a public address such as 223.5.5.5, so that queries enter TUN; they are put back when TUN goes off or Bowel quits. The old settings are kept on disk, so after a crash the next start puts them back.
  • Windows: while TUN is on, the firewall stops queries to other DNS servers (as the router's); the rules go when the core stops. It turns on strict route with it.

With it off, the system's DNS settings are left as they are.

Block STUN, which stops pages from probing your exit address with STUN, isn't here: it is under TUN in the home page's takeover card. See Block STUN.

Developer networks

Keeps local development, the LAN, containers, Tailscale and company VPNs clear of the proxy. Their addresses go direct, in global mode too; your own rules come first. What exactly and why is in developer networks.

SettingWhat it doesDefault
Keep developer networks directThe main switch. Off, none of the scenarios below appliesOn
Networks on this MacRead only: the Tailscale Bowel found (checked every 20 seconds), other VPNs' networks, and the split DNS domains—
ScenariosOne switch per scenario; see the table belowAll on
My internal networksYour company's domain suffixes or networks, as corp.example or 10.8.0.0/16; used by the system proxy, DNS, rules and TUN alikeEmpty
Terminal proxy, Turn off the terminal proxyTwo commands to copy: paste the first into a terminal so command-line tools use the proxy while internal addresses skip it; paste the second into the same terminal to stop—
ScenarioCovers
This MacDevelopment servers on localhost and 127.0.0.1
LAN addressesPrivate ranges, link-local and multicast; none of it enters TUN
LAN namesInternal suffixes such as .local, .lan, .home.arpa and .corp
Local development namesReserved names such as .test, as Valet, puma-dev and dnsmasq use
Containers and VMshost.docker.internal, Kubernetes .svc and OrbStack .orb.local
Public names for local addressesServices such as nip.io, sslip.io and lvh.me that resolve to local addresses
Tailscale and mesh networksPeers, MagicDNS, subnet routes and short names, detected as they change
Other VPNs and split DNSReads this Mac's VPN routes and split DNS, such as /etc/resolver

Turn a scenario off only when you do want that kind of internal traffic to go through the proxy (such as reaching a service in 100.64.0.0/10 through a node).

GeoData

The databases GEOIP and GEOSITE rules look up.

SettingWhat it doesmihomoDefault
Update automaticallyDownload them again at the interval belowgeo-auto-updateOff
IntervalHow often to download them, 1 to 720 hoursgeo-update-interval24 h
Update nowDownload again from the links below, in the background; the core loads the files when done——
GeoIP, GeoSite, MMDBWhere each downloads from; http or https linksgeox-urlgeoip-lite.dat, geosite.dat and country-lite.mmdb of MetaCubeX/meta-rules-dat on jsDelivr

The default links are on a CDN reachable without a proxy, so the first download needs no node. If you switch to another source, keep the same file formats.

Controller

A controller for web dashboards such as metacubexd and yacd. Bowel's own controller is a separate one, and nothing here changes it.

SettingWhat it doesmihomoDefault
AddressAs 127.0.0.1:9090; empty is off. 0.0.0.0 lets the LAN control it too, so set a secretexternal-controllerEmpty (off)
SecretWhat dashboards enter to connect; no spacessecretEmpty

The port can't be one of the inbound ports. Once in a while Bowel's own controller runs on TCP for a run; the page then says so, and these two don't apply.

MCP

Let agents such as Claude Code read and change Bowel's configuration over MCP.

SettingWhat it doesDefault
When an agent makes a changeReading is always allowed; a change Asks you first, is Always allowed, or Don't allow refuses itAsk
Claude CodeRun this command in a terminal to add Bowel to Claude Code—
Other clientsA JSON entry for the client's MCP config (stdio); Bowel opens itself when it isn't running—

Below them are the MCP server's state, its socket's path, and recent agent changes: when, the outcome (Applied, Denied, Failed), and which client changed what.

Backup & restore

Back up the settings, Providers, rules and rule sets to a local file or your own WebDAV server, and restore them on another machine.

What a backup holds

A backup is one .bowel file with the settings, the Providers (with subscription links and nodes), the rules and the rule sets they use. This machine's own settings are left out, and an import never replaces them: the takeover and the gateway, the mixed port and the HTTP and SOCKS ports, LAN connections (allowed addresses, authentication), the outbound interface, the TUN device's name, developer networks, the controller, the MCP change policy, the Tailscale node, the global shortcut and skin motion. The WebDAV server and its password stay on this machine too.

Local file

SettingWhat it does
Configuration file passwordOptional. With one, an exported file is encrypted with it, and it opens an encrypted file on import; without, an exported file is not encrypted and holds your subscription links and nodes
Export configurationExport… saves the file where you choose
Import configuration (merge)Adds only the Providers this machine lacks; nothing here is replaced or deleted, and the settings and rule sets stay
Import configuration (overwrite)Replaces this machine's Providers, rules and rule sets, and the other settings that travel, with the file's; this machine's own settings stay. Afterwards Undo last import appears here

Merge or overwrite: if you already use Bowel and only want another machine's subscriptions added, merge. On a new machine or after a reinstall, when it should be just as it was, overwrite. Before an overwrite, Bowel saves the configuration as it is, and Undo last import goes back to it.

The configuration file password: the file is encrypted with AES, with a key derived from the password. Bowel doesn't keep the password; without it, the file can't be opened. Importing an encrypted file with no password filled in asks you to fill it in first.

WebDAV

SettingWhat it does
WebDAV URLe.g. https://dav.example.com/dav; some services want an app password
UserWebDAV user, usually an email address
PasswordWebDAV password; empty keeps the saved one. If you change the server or user, enter the password again
Remote folderFolder on the server; empty for the root
Backup file passwordOptional. With one, the uploaded backup is encrypted; empty keeps the saved one
Clear backup file passwordRemove the saved backup password; later uploads are not encrypted
Auto-backup interval0 to 720 hours; 0 or empty means only when you click
Save WebDAV settingsThe fields above take effect only once saved
Back up to WebDAVUpload the configuration as latest.bowel, plus a timestamped copy
Restore from WebDAV (merge), Restore from WebDAV (overwrite)Download latest.bowel and import it as the two local imports do; an overwrite can be undone as well

Each backup uploads the timestamped copy (bowel-<date>-<time>….bowel) first and updates latest.bowel only after it; the remote folder keeps the 20 latest timestamped copies. When the server's latest.bowel already holds the configuration as it is, nothing is uploaded and Bowel says "Nothing changed: the server already holds this configuration".

Auto-backup: with an interval set and saved, Bowel backs up that often while it runs. The first run is one interval after Bowel starts; a failed run waits the interval again. An unchanged configuration isn't uploaded here either.

About

ItemWhat it does
VersionsBowel's version, the core's version and state, the running config's path, and the license notes for mihomo, the font and the GeoLite2 data
ProjectOpens GitHub or this user guide
Software updateCheck for updates; when there is a new version, download and install it, and Restart now when it is ready. What's new shows the changelog. A development build, or a copy a package manager installed, can't update itself
Running configShow in Finder (Explorer, the file manager) the config file Bowel writes and mihomo runs on
Restore defaultsThe core's options go back to Bowel's defaults; see below

Restore defaults resets: everything on the Core, DNS, Sniffing, TUN (but Take over system DNS), Developer networks and GeoData pages, the system proxy's bypass list, Block STUN under TUN on the home page, and every route group's test sites. What stays: the takeover, the gateway and the mode; the mixed, HTTP and SOCKS ports; LAN connections (allowed addresses, authentication); the controller; MCP; and the General page. Route groups, rules and Providers aren't touched.

The running config is written by Bowel from the settings; an edit made to it by hand is overwritten the next time settings are applied.

Android

On Android the settings are on the Settings tab, grouped differently from the desktop:

  • Connection: the VPN switch; Apps that skip Bowel (they connect directly, outside the VPN; changes apply after the VPN reconnects); Always-on VPN (opens the system's settings); Hide from Recents; Tailscale.
  • Appearance: skin, color mode, borders and theme color, as on the desktop. The phone has seven of the skins: Paper, Broadsheet, Phosphor, Neon, Blueprint, Sakura and Christmas. With Christmas picked, Skin motion shows under them, as on the desktop: off, the falling snow and the twinkling lights hold still. They also hold still while Bowel is in the background and when the system asks for less motion (remove animations). Skin motion is the phone's own setting and isn't in a backup.
  • Routes and rules: route groups and My rules.
  • Backup and restore: a local file and WebDAV, with the same configuration file password, merge and overwrite imports, Undo last import, and auto-backup interval as the desktop.
  • General: language, Core options, Check for updates, About and licenses.

Core options is part of the desktop's Core, DNS, Sniffing and GeoData pages, with Reset at the top right too:

GroupWhat it has
BasicLog level, Default test URL, IPv6, Unified delay, TCP concurrency, Disable TCP Keep-Alive, Keep-Alive interval, TLS fingerprint
Auto selectTest interval, Switch tolerance, Provider check interval
DNSDNS mode, DNS servers, DNS for resolving DNS servers (bootstrap), Fallback DNS, DNS for node addresses (servers for node names), DNS for node addresses by domain (policy for node names), DNS by domain, Fake IP range, Fake IP exceptions, Hosts, Route DNS requests by rules, Use Hosts, Use system Hosts, Prefer DoH/3, Flush DNS cache (while the VPN is on)
Domain sniffingAs the desktop's Sniffing page
Geo dataAuto update, Update interval, GeoIP, GeoSite and MMDB URLs, Update now

IPv6 on Android is a single switch: on is On, and there is no Auto; a setting carried over as Auto shows as on.

Android doesn't have: Open at login, the global shortcut, Start hidden, and the menu bar speed on the General page; the whole Inbound page (on a phone, takeover is the VPN); Process matching, Outbound interface and Download test file on the Core page; the Built-in DNS switch and servers for direct connections on the DNS page; and the TUN, Developer networks, Controller and MCP pages.

View and edit this page on GitHub

On this page