# RouterOS v7 翻墙策略

```c
// Some code

#其中 gateway=192.168.89.1 为服务器vpn的网关 自行改对应的
#dns static和routing rule   自行按需添加即可
#

/interface sstp-client
add connect-to=gh.run disabled=no name=sstp-vpn profile=default-encryption \
    user=gh

/routing table
add disabled=no fib name=gfw

/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    192.168.89.1 pref-src="" routing-table=gfw scope=30 suppress-hw-offload=\
    no target-scope=10


/ip dns static
add forward-to=8.8.8.8 regexp=www.google.com type=FWD
add forward-to=8.8.8.8 regexp=www.gooe.com type=FWD
add forward-to=8.8.8.8 regexp=www.gle.com type=FWD

/routing rule
add action=lookup comment=dns disabled=no dst-address=8.8.0.0/16 table=gfw
add action=lookup disabled=no dst-address=34.83.0.0/16 table=gfw
add action=lookup comment=ip disabled=no dst-address=163.171.0.0/16 table=gfw
add action=lookup comment=ip disabled=no dst-address=218.75.0.0/16 table=gfw
```

### 最终效果：

<figure><img src="/files/1fBKNIVBTLWK8zeg0QVm" alt=""><figcaption></figcaption></figure>


---

# 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://www.winbox.org/gfw/v7.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.
