找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4176|回复: 1

[策略设置] VPN借线破解电信封路由问题请教?

[复制链接]
发表于 2012-2-19 21:06:21 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
VPN借线破解电信封路由问题请教?

不知道大家是用什么VPN的呢 ,pptp还是l2tp,这两种我都测试过了,不行。不知道是不是VPN提供方要设置什么呢?

封-1.PNG
routeros
 楼主| 发表于 2012-2-20 00:36:40 | 显示全部楼层

/ip firewall nat
add action=src-nat chain=srcnat comment=ADSL1 connection-mark=ad1 disabled=no src-address=10.10.10.0/24 to-addresses=182.33.210.230
add action=src-nat chain=srcnat comment=ADSL2 connection-mark=ad2 disabled=no src-address=10.10.10.0/24 to-addresses=182.33.208.219
add action=src-nat chain=srcnat comment=ADSL3 connection-mark=ad3 disabled=no src-address=10.10.10.0/24 to-addresses=182.33.209.222
add action=masquerade chain=srcnat comment="" disabled=yes
[admin@MikroTik] /ip firewall nat> /      
[admin@MikroTik] > ip firewall mangle export
# dec/30/2011 14:41:20 by RouterOS 3.30
# software id = Z9D1-B07F
#
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=ad1 passthrough=yes per-connection-classifier=\
    both-addresses:3/0 src-address=10.10.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=ad1 disabled=no new-routing-mark=sl1 passthrough=yes src-address=10.10.10.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=ad2 passthrough=yes per-connection-classifier=\
    both-addresses:3/1 src-address=10.10.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=ad2 disabled=no new-routing-mark=sl2 passthrough=yes src-address=10.10.10.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=ad3 passthrough=yes per-connection-classifier=\
    both-addresses:3/2 src-address=10.10.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=ad3 disabled=no new-routing-mark=sl3 passthrough=yes src-address=10.10.10.0/24
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=vpn passthrough=yes protocol=tcp src-address=10.10.10.0/24



这个是别人成功的脚本啊,上图也是成功的。我自己做没成功而已! 你那么说确实有道理! 但似乎别人就是那样做的!所以我才觉的奇怪!
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-3 00:38 , Processed in 0.064241 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表