Subnet Rules
Subnet rules allow you to route traffic based on the current network environment, such as the Wi-Fi SSID, BSSID, or network type (Wi-Fi, Cellular, etc.).
Example
# Rejects traffic when connected to a specific Wi-Fi SSID
SUBNET,SSID:CMCC,REJECT
# Routes traffic directly when connected to a specific Wi-Fi BSSID (MAC address)
SUBNET,BSSID:F4-98-A0-73-3A-5B,DIRECT
# Routes traffic directly when connected to a specific router gateway IP
SUBNET,ROUTER:192.168.1.1,DIRECT
# Routes traffic directly when using any Wi-Fi connection
SUBNET,TYPE:WIFI,DIRECT
Format
SUBNET,{type}:{value},{target proxy}
Parameters
| Name | Value | Mandatory | Note |
|---|---|---|---|
| type | SSID BSSID ROUTER TYPE MCCMNC | true | SSID and BSSID require location permissions on most newer Android devices. |
| value | SSID: ssid name BSSID: bssid value (MAC address) ROUTER: Gateway IP TYPE: WIFI/WIRED/CELLULAR MCCMNC: {mcc}-{mnc} | true | ROUTER rule will only take effect under WiFi or wired networks. |
| target proxy | - | true | The specified proxy or proxy group must exist in the profile. |
tip
MCC and MNC values can be found at https://mcc-mnc-list.com/list.