From a2c1741ffa4aa9117fdc55bea6b4a13af259cc6b Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 20 Jul 2026 11:51:45 -0400 Subject: [PATCH] Add prefer local routes information --- manage/clients/configure-client.mdx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/manage/clients/configure-client.mdx b/manage/clients/configure-client.mdx index 714d91d..07460c2 100644 --- a/manage/clients/configure-client.mdx +++ b/manage/clients/configure-client.mdx @@ -117,6 +117,10 @@ All config keys in the `Config` object below can be set in either file. If the s MTU for the internal WireGuard interface. Changing this is advanced and not recommended unless you have a clear reason; if you set a non-default value, configure the same MTU on every site this client connects to—see [Configure Sites](/manage/sites/configure-site). + + + When true, prioritizes local routes over remote ones by adding an arbitrary metric to the WireGuard routes. This is useful when you want to ensure that local network traffic (for example, to a printer or NAS) is not routed through the Pangolin tunnel. + @@ -329,6 +333,12 @@ Olm is a command-line client for connecting machine clients in Pangolin. You can **Default**: `false` + + When true, prioritizes local routes over remote ones by adding an arbitrary metric to the WireGuard routes. This is useful when you want to ensure that local network traffic (for example, to a printer or NAS) is not routed through the Pangolin tunnel. + + **Default**: `false` + + ### Environment Variables All CLI arguments can be set using environment variables as an alternative to command line flags. Environment variables are particularly useful when running Olm in containerized environments. @@ -453,6 +463,12 @@ When both environment variables and CLI arguments are provided, CLI arguments ta Optional whitelist of domains sent to the configured upstream DNS server (equivalent to `--match_domains_dns`). When unset, all queries go to upstream DNS. + + When true, prioritizes local routes over remote ones by adding an arbitrary metric to the WireGuard routes. This is useful when you want to ensure that local network traffic (for example, to a printer or NAS) is not routed through the Pangolin tunnel. + + **Default**: `false` + + Disable relay connections (equivalent to `--disable-relay`) @@ -492,7 +508,8 @@ $ cat ~/.config/olm-client/config.json "overrideDNS": true, "tunnelDNS": false, "disableRelay": false, - "tlsClientCert": "" + "tlsClientCert": "", + "preferLocalRoutes": false } ```