# services.proxy-suite.perAppRouting
Route single apps through proxychains, a per-app TUN or TProxy, or zapret.
Part of the [proxy-suite options reference](./index.md).
## Options
- perAppRouting
- [enable](#services-proxy-suite-perapprouting-enable)
- [createDefaultProfiles](#services-proxy-suite-perapprouting-createdefaultprofiles)
- [profiles](#services-proxy-suite-perapprouting-profiles)
- item
- [keepRunning](#services-proxy-suite-perapprouting-profiles-keeprunning)
- [name](#services-proxy-suite-perapprouting-profiles-name)
- [outbound](#services-proxy-suite-perapprouting-profiles-outbound)
- [route](#services-proxy-suite-perapprouting-profiles-route)
- proxychains
- [enable](#services-proxy-suite-perapprouting-proxychains-enable)
- [proxyDns](#services-proxy-suite-perapprouting-proxychains-proxydns)
- [quiet](#services-proxy-suite-perapprouting-proxychains-quiet)
- tproxy
- [enable](#services-proxy-suite-perapprouting-tproxy-enable)
- [fwmark](#services-proxy-suite-perapprouting-tproxy-fwmark)
- [keepRunning](#services-proxy-suite-perapprouting-tproxy-keeprunning)
- [localSubnets](#services-proxy-suite-perapprouting-tproxy-localsubnets)
- [routeTable](#services-proxy-suite-perapprouting-tproxy-routetable)
- tun
- [enable](#services-proxy-suite-perapprouting-tun-enable)
- [address](#services-proxy-suite-perapprouting-tun-address)
- [fwmark](#services-proxy-suite-perapprouting-tun-fwmark)
- [interface](#services-proxy-suite-perapprouting-tun-interface)
- [keepRunning](#services-proxy-suite-perapprouting-tun-keeprunning)
- [localSubnets](#services-proxy-suite-perapprouting-tun-localsubnets)
- [mtu](#services-proxy-suite-perapprouting-tun-mtu)
- [routeTable](#services-proxy-suite-perapprouting-tun-routetable)
- via
- [localSubnets](#services-proxy-suite-perapprouting-via-localsubnets)
- [pinSlots](#services-proxy-suite-perapprouting-via-pinslots)
- zapret
- [enable](#services-proxy-suite-perapprouting-zapret-enable)
- [filterMark](#services-proxy-suite-perapprouting-zapret-filtermark)
- [keepRunning](#services-proxy-suite-perapprouting-zapret-keeprunning)
- [qnum](#services-proxy-suite-perapprouting-zapret-qnum)
## services\.proxy-suite\.perAppRouting\.enable
Whether to enable per-app routing (` proxy-ctl apps run `)\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.createDefaultProfiles
Add a profile for each enabled method (proxychains, tun, tproxy, zapret), named after it,
unless one already exists\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.profiles
Profiles for ` proxy-ctl apps run -- `\.
**Type:** list of (submodule)\
**Default:** `[ ]`\
**Example:** `[ { name = "steam-browser"; route = "proxychains"; } ]`
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.keepRunning
Keep what this profile runs through running from boot, rather than starting it with
the first app and stopping it after the last: its ` outbound ` (an AmneziaWG
interface or profile, or a pin slot, which then stays taken), or else its ` route `’s
backend, as ` perAppRouting..keepRunning ` does\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.name
Unique profile name\.
**Type:** string matching the pattern ^\[a-z0-9]\[a-z0-9-]\*$\
**Example:** `"steam-browser"`
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.outbound
Send all of the app’s traffic through this outbound, past the routing rules\. An
“interface” AmneziaWG outbound (` amneziaWg.profiles..asOutbound `), or a
global AmneziaWG profile, takes the app’s packets into its interface directly,
whatever ` route ` is; any other outbound needs ` route ` “tun” or “tproxy”\. For a name
that is both a global profile and an outbound, say which: “awg:\” or
“outbound:\”\.
**Type:** null or string\
**Default:** `null`\
**Example:** `"de"`
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.route
How the app is routed: “direct” (untouched), “proxychains”, or the per-app “tun”,
“tproxy” or “zapret”\.
**Type:** one of “direct”, “proxychains”, “tun”, “tproxy”, “zapret”\
**Default:** `"proxychains"`
## services\.proxy-suite\.perAppRouting\.proxychains\.enable
Whether to enable proxychains (TCP only, does not work with static binaries)\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.proxychains\.proxyDns
Resolve DNS through the proxy\.
**Type:** boolean\
**Default:** `true`
## services\.proxy-suite\.perAppRouting\.proxychains\.quiet
Hide proxychains output\.
**Type:** boolean\
**Default:** `true`
## services\.proxy-suite\.perAppRouting\.tproxy\.enable
Whether to enable per-app TProxy\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.tproxy\.fwmark
Firewall mark for wrapped apps’ traffic\.
**Type:** signed integer\
**Default:** `17`
## services\.proxy-suite\.perAppRouting\.tproxy\.keepRunning
Keep the per-app TProxy backend running from boot, rather than starting it with the first app
and stopping it after the last: apps start without waiting for it\.
Under a global TUN or TProxy it stays down, and comes back once that stops\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.tproxy\.localSubnets
Subnets that skip the proxy (DNS still goes through it)\.
**Type:** list of IPv4 or IPv6 address or CIDR\
**Default:** `[ "192.168.0.0/16" ]`\
**Example:** `[ "192.168.0.0/16" "10.0.0.0/8" ]`
## services\.proxy-suite\.perAppRouting\.tproxy\.routeTable
Routing table for the per-app TProxy\.
**Type:** signed integer\
**Default:** `102`
## services\.proxy-suite\.perAppRouting\.tun\.enable
Whether to enable per-app TUN\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.tun\.address
Interface IPv4 address (CIDR)\.
**Type:** IPv4 CIDR\
**Default:** `"172.20.0.1/30"`
## services\.proxy-suite\.perAppRouting\.tun\.fwmark
Firewall mark for wrapped apps’ traffic\.
**Type:** signed integer\
**Default:** `16`
## services\.proxy-suite\.perAppRouting\.tun\.interface
Interface name\.
**Type:** network interface name\
**Default:** `"psperapptun0"`
## services\.proxy-suite\.perAppRouting\.tun\.keepRunning
Keep the per-app TUN backend running from boot, rather than starting it with the first app
and stopping it after the last: apps start without waiting for it\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.tun\.localSubnets
Subnets that skip the proxy (DNS still goes through it)\.
**Type:** list of IPv4 or IPv6 address or CIDR\
**Default:** `[ "192.168.0.0/16" ]`\
**Example:** `[ "192.168.0.0/16" "10.0.0.0/8" ]`
## services\.proxy-suite\.perAppRouting\.tun\.mtu
Interface MTU\.
**Type:** signed integer\
**Default:** `1400`
## services\.proxy-suite\.perAppRouting\.tun\.routeTable
Routing table for the per-app TUN\.
**Type:** signed integer\
**Default:** `101`
## services\.proxy-suite\.perAppRouting\.via\.localSubnets
Subnets an app run ` --via ` an AmneziaWG interface (an “interface” outbound or a global
profile) still reaches directly; DNS still goes through the tunnel\. Every other
address goes through it, private ones included, as the server may serve them\.
**Type:** list of IPv4 or IPv6 address or CIDR\
**Default:** `[ "192.168.0.0/16" ]`\
**Example:** `[ "192.168.0.0/16" "10.0.0.0/8" ]`
## services\.proxy-suite\.perAppRouting\.via\.pinSlots
How many outbounds ` apps run --via ` can send apps through at once, for per-app TProxy
and again for per-app TUN; at most 16\. Apps via the same outbound share one\. An
“interface” AmneziaWG outbound takes none: apps enter it directly\.
**Type:** signed integer\
**Default:** `8`
## services\.proxy-suite\.perAppRouting\.zapret\.enable
Whether to enable per-app zapret, a separate zapret for wrapped apps only\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.zapret\.filterMark
Firewall mark bit for wrapped apps’ traffic\.
**Type:** signed integer\
**Default:** `268435456`
## services\.proxy-suite\.perAppRouting\.zapret\.keepRunning
Keep the per-app zapret backend running from boot, rather than starting it with the first app
and stopping it after the last: apps start without waiting for it\.
Under a global TUN, TProxy or AmneziaWG profile it stays down, and comes back once that stops\.
**Type:** boolean\
**Default:** `false`
## services\.proxy-suite\.perAppRouting\.zapret\.qnum
NFQUEUE number\. Must differ from the global zapret’s\.
**Type:** signed integer\
**Default:** `201`