# 子网表达式与规则

### 子网表达式 (Subnet Expression)

子网表达式可以是以下之一：

* 使用 `SSID:value` 匹配 Wi-Fi SSID，允许使用通配符。
* 使用 `BSSID:value` 匹配 Wi-Fi BSSID，允许使用通配符。
* 使用 `ROUTER:value` 匹配路由器 IP 地址。
* 使用 `TYPE:WIFI` 匹配所有 Wi-Fi 网络。
* 使用 `TYPE:WIRED` 匹配所有有线网络。
* 使用 `TYPE:CELLULAR` 匹配所有蜂窝网络。
* 如果未提供前缀，它将尝试匹配 SSID/BSSID/Router，以保持旧版本兼容性。

#### SUBNET

如果子网表达式匹配，则触发该规则。

```ini
SUBNET,TYPE:WIRED,DIRECT
SUBNET,SSID:MyHome,Proxy
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://surge.mitsea.com/rule/subnet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
