> For the complete documentation index, see [llms.txt](https://www.winbox.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.winbox.org/gfw/v7.md).

# 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>
