winbox
首页帮助
  • winbox
  • 💾下载
    • 🖥️Winbox for win
    • 💻Winbox for Mac
    • 🖥️Winbox fo Linux
    • 📱WinBox for IOS
    • 📱WinBox for Android
  • 🛡️防火墙规则
    • 二次登录防火墙
    • 官方设备内置防火墙
  • 📄应用教程系列
  • ROS小白变大神系列
  • 从零开始学RouterOS系列
  • Ⓜ️MikroTik官方网站
    • 技术支持
  • 🌐GFW
    • 🧱RouterOS v7 翻墙策略
    • 📝相关策略包和软件
    • 🔢ip
  • ⚧DDNS
    • Google DDNS
    • Cloudflare
  • ⚒️工具软件
    • 🖥️MikroTik脚本生成器
    • ↔️NAT
由 GitBook 提供支持
在本页

这有帮助吗?

  1. GFW

RouterOS v7 翻墙策略

一个设备完成翻墙,不需要其他设备辅助,严格区分国内国外,不产生冲突,v7系统稍微不同,总体一样

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

最终效果:

上一页技术支持下一页相关策略包和软件

最后更新于2年前

这有帮助吗?

🌐
🧱