# 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="https://296990390-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LYTqCnvQ7_cVIl1ZPou%2Fuploads%2FgDuoespi76umDnSrP9h6%2F2022-09-29%2011.16.21.jpg?alt=media&#x26;token=79a0cea8-e23e-454b-9382-661d3985e515" alt=""><figcaption></figcaption></figure>
