ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 4015|回复: 8

[交流] 救命啊,各位大哥!都折腾一天了,要崩溃了都!

[复制链接]
发表于 2008-3-19 00:23:41 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
/ip firewall mangle
add action=change-mss chain=forward comment="CHANGE MSS" disabled=no new-mss=1440 protocol=tcp tcp-flags=syn
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out3 new-connection-mark=pppoe-out3_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out4 new-connection-mark=pppoe-out4_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out5 new-connection-mark=pppoe-out5_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out6 new-connection-mark=pppoe-out6_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out7 new-connection-mark=pppoe-out7_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out8 new-connection-mark=pppoe-out8_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out9 new-connection-mark=pppoe-out9_conn passthrough=yes

add action=mark-routing chain=output comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out3_conn disabled=no new-routing-mark=to_pppoe-out3 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out4_conn disabled=no new-routing-mark=to_pppoe-out4 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out5_conn disabled=no new-routing-mark=to_pppoe-out5 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out6_conn disabled=no new-routing-mark=to_pppoe-out6 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out7_conn disabled=no new-routing-mark=to_pppoe-out7 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out8_conn disabled=no new-routing-mark=to_pppoe-out8 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out9_conn disabled=no new-routing-mark=to_pppoe-out9 passthrough=yes

/ip firewall mangle
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:9/0 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out2_conn passthrough=yes per-connection-classifier=both-addresses:9/1 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out3_conn passthrough=yes per-connection-classifier=both-addresses:9/2 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out4_conn passthrough=yes per-connection-classifier=both-addresses:9/3 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out5_conn passthrough=yes per-connection-classifier=both-addresses:9/4 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out6_conn passthrough=yes per-connection-classifier=both-addresses:9/5 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out7_conn passthrough=yes per-connection-classifier=both-addresses:9/6 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out8_conn passthrough=yes per-connection-classifier=both-addresses:9/7 src-address=192.168.0.0/16
add action=mark-connection chain=prerouting disabled=no new-connection-mark=pppoe-out9_conn passthrough=yes per-connection-classifier=both-addresses:9/8 src-address=192.168.0.0/16

add action=mark-routing chain=prerouting connection-mark=pppoe-out1_conn disabled=no new-routing-mark=pppoe-out1_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out2_conn disabled=no new-routing-mark=pppoe-out2_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out3_conn disabled=no new-routing-mark=pppoe-out3_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out4_conn disabled=no new-routing-mark=pppoe-out4_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out5_conn disabled=no new-routing-mark=pppoe-out5_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out6_conn disabled=no new-routing-mark=pppoe-out6_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out7_conn disabled=no new-routing-mark=pppoe-out7_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out8_conn disabled=no new-routing-mark=pppoe-out8_conn passthrough=yes src-address=192.168.0.0/16
add action=mark-routing chain=prerouting connection-mark=pppoe-out9_conn disabled=no new-routing-mark=pppoe-out9_conn passthrough=yes src-address=192.168.0.0/16

/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_pppoe-out3
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out4 routing-mark=to_pppoe-out4
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out5 routing-mark=to_pppoe-out5
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out6 routing-mark=to_pppoe-out6
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out7 routing-mark=to_pppoe-out7
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out8 routing-mark=to_pppoe-out8
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out9 routing-mark=to_pppoe-out9

/ip firewall nat
add action=masquerade chain=srcnat comment="1" disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment="2" disabled=no out-interface=pppoe-out2
add action=masquerade chain=srcnat comment="3" disabled=no out-interface=pppoe-out3
add action=masquerade chain=srcnat comment="4" disabled=no out-interface=pppoe-out4
add action=masquerade chain=srcnat comment="5" disabled=no out-interface=pppoe-out5
add action=masquerade chain=srcnat comment="6" disabled=no out-interface=pppoe-out6
add action=masquerade chain=srcnat comment="7" disabled=no out-interface=pppoe-out7
add action=masquerade chain=srcnat comment="8" disabled=no out-interface=pppoe-out8
add action=masquerade chain=srcnat comment="9" disabled=no out-interface=pppoe-out9


现在的问题是脚本一执行,直接WINBOX掉,PING 路由 断,请老大指点迷津,都折腾一天了!谢谢!
发表于 2008-3-20 12:43:21 | 显示全部楼层
把“input”和“output”改成“prerouting"
发表于 2008-3-20 21:32:19 | 显示全部楼层
各位老大,到底哪个是正确的呢?我们家已经没有盆来装我吐出来的血了!谢谢啦!
发表于 2008-3-20 23:08:27 | 显示全部楼层
楼主看下这个连接里面有讲PCC的原理和如何配置http://www.mikrotik.com.cn/newshow.aspx?ID=125
发表于 2008-3-21 06:00:20 | 显示全部楼层
各位老大,到底哪个是正确的呢?我们家已经没有盆来装我吐出来的血了!谢谢啦!
pxzengfeng 发表于 2011-8-29 14:51


都跟你说了,路由标记要一致,要么就用
to_pppoe-out1
to_pppoe-out2
to_pppoe-out3
to_pppoe-out4
to_pppoe-out5
to_pppoe-out6
to_pppoe-out7
to_pppoe-out8
to_pppoe-out9
要么就用
pppoe-out1
pppoe-out2
pppoe-out3
pppoe-out4
pppoe-out5
pppoe-out6
pppoe-out7
pppoe-out8
pppoe-out9
发表于 2008-3-22 03:37:45 | 显示全部楼层
interface=lan
发表于 2008-3-22 09:16:58 | 显示全部楼层
把这一段
/ip route
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_pppoe-out3
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out4 routing-mark=to_pppoe-out4
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out5 routing-mark=to_pppoe-out5
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out6 routing-mark=to_pppoe-out6
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out7 routing-mark=to_pppoe-out7
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out8 routing-mark=to_pppoe-out8
add  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out9 routing-mark=to_pppoe-out9
里的
routing-mark=“”
也改成一致的
发表于 2008-3-23 05:46:45 | 显示全部楼层
本帖最后由 hbboyxu 于 2011-8-29 01:51 编辑

路过~~~~~~~~~
不过看到挺多问题的~~~~
把路由标记一致没有问题了~~~~
发表于 2008-3-25 14:53:45 | 显示全部楼层
路由标记不一致,上面的是
new-routing-mark=to_pppoe-out1
new-routing-mark=to_pppoe-out2
new-routing-mark=to_pppoe-out3
new-routing-mark=to_pppoe-out4
new-routing-mark=to_pppoe-out5
new-routing-mark=to_pppoe-out6
new-routing-mark=to_pppoe-out7
new-routing-mark=to_pppoe-out8
new-routing-mark=to_pppoe-out9
下面标的却又是
new-routing-mark=pppoe-out1
new-routing-mark=pppoe-out2
new-routing-mark=pppoe-out3
new-routing-mark=pppoe-out4
new-routing-mark=pppoe-out5
new-routing-mark=pppoe-out6
new-routing-mark=pppoe-out7
new-routing-mark=pppoe-out8
new-routing-mark=pppoe-out9
当然有问题了~~~~~~~~~~~~
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-6-17 14:28 , Processed in 0.133040 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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