负载均衡再加分流脚本
负载均衡再加分流脚本负载均衡已做好.
第一条线:
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no disabled=no
/ip firewall nat add chain=srcnat connection-mark=1 action=src-nat to-addresses=58.58.58.1 to-ports=0-65535 comment="1" disabled=no
第二条线:
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no
/ip firewall mangle add chain=prerouting in-interface=ether1 connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no disabled=no
/ip firewall nat add chain=srcnat connection-mark=2 action=src-nat to-addresses=58.58.58.2 to-ports=0-65535 comment="2" disabled=no
再加第三条线来分流80端口(以下设置要怎么做?)
/ip firewall mangle add chain=prerouting src-address=192.168.0.1/24 protocol=tcp action=mark-routing new-routing-mark=adsl1 comment=adsl1
在IP/NAT里要做怎么样的规则?
高手请教。。 把80端口的mangle规则放到最前面就行了。然后 passthrough=no 在IP/NAT里要做怎么样的规则? 把80端口的mangle规则放到最前面就行了。然后 passthrough=no
zhjchina 发表于 2010-6-12 09:46 http://bbs.routerclub.com/images/common/back.gif
在IP/NAT里要做怎么样的规则? 再加第三条线来分流80端口(以下设置要怎么做?)
/ip firewall mangle add chain=prerouting src-address=192.168.0.1/24 protocol=tcpdst-port=80 new-routing-mark=adsl3passthrough=no comment=adsl3
在IP/NAT里要做怎么样的规则?
高手请教。。 我还以为来发教程的
页:
[1]