作者:
i8i (狀況已經不能再糟了)
2014-07-05 01:14:42看了mobile01上面的教學是【只有中國的IP走VNP,其他IP國家直接連】
可是我人在大陸,想要把大陸的路由器設成【只有中國的IP直接連,其他國家IP走VPN】
mobile01教學最後面寫【China 翻牆出來的 User, 只要舉一反三應用即可.】
可是我還是不懂,請問我該怎麼修改???
謝謝
下面是mobile01的原始連結跟設定內容
http://www.mobile01.com/topicdetail.php?f=110&t=3205444&p=33#42935068
內容:
# import China IP List
import ChinaIPList.rsc
# 根據 China IP List 標示封包(由於只用於上網,所以標示 80/TCP 即可)
/ip firewall mangle
add action=mark-routing chain=prerouting comment="Mark China IP" disabled=no \
dst-address-list=ChinaIPList dst-port=80 new-routing-mark=ChinaIP \
passthrough=no protocol=tcp
# 建立 pptp-client 連線至 VPN Server
/interface pptp-client
add connect-to=119.145.xxx.xxx disabled=no name=pptp-out2 \
password=xxxx user=pctine
# NAT masquerade (對外的封包做 SNAT)
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pptp-out2
# IP routing to China
/ip route add gateway=pptp-out2 routing-mark=ChinaIP check-gateway=ping