
下面是我的配置
# apr/01/2015 22:34:05 by RouterOS 6.27
# software id = 2KSH-6QA7
#
/ip firewall address-list
add address=1.2.3.0/24 list=GFWD
add address=111.0.0.0/10 list=mobile
/ip firewall mangle
add action=mark-routing chain=prerouting comment="to cnc" dst-address-list=\
mobile in-interface=ether1 new-routing-mark=to_cnc passthrough=no
add action=mark-routing chain=prerouting comment="to vpn" dst-address-list=\
GFWD in-interface=ether1 new-routing-mark=to_vpn passthrough=no
add action=mark-routing chain=prerouting comment="to cmcc \\D6\\F7\\CF\\DF" \
in-interface=ether1 new-routing-mark=to_cmcc passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pptp-out
add action=masquerade chain=srcnat out-interface=cmcc-out
add action=masquerade chain=srcnat out-interface=cnc-out
/ip route
add distance=1 gateway=cnc-out routing-mark=to_cnc
add distance=1 gateway=cmcc-out routing-mark=to_cmcc
add distance=1 gateway=pptp-out routing-mark=to_vpn
add distance=1 gateway=cmcc-out,pptp-out,cnc-out

