I am doing PCC Load Balancing with 6 WAN/DSL lines and it works. What I want to know is what is the best way to configure the clasifier in the NAT? I am running a single RB1100 router for my internet gateway with the 6 DSL's attached with only 1 RB800 router behind it (ether01)wich has all the wireless interfaces on it. I am still marking al port 443 traffic to route through its own gatway for banking sites. Can someone tell me if this config is right.
Thanks
Code: Select all
/ip firewall mangle
add action=mark-routing chain=prerouting comment=HTTPS disabled=no dst-port=\
443 new-routing-mark="HTTPS 443" passthrough=yes protocol=tcp
add action=mark-connection chain=input comment="" disabled=no in-interface=\
ether02 new-connection-mark=lb1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
ether03 new-connection-mark=lb2_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
ether05 new-connection-mark=adsl5_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
ether06 new-connection-mark=adsl6_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
ether07 new-connection-mark=adsl7_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
ether08 new-connection-mark=adsl8.1_conn passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=lb1_conn \
disabled=no new-routing-mark=to_lb1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=lb2_conn \
disabled=no new-routing-mark=to_lb2 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=adsl5.1_conn \
disabled=no new-routing-mark=to_adsl5.1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=adsl6.1_conn \
disabled=no new-routing-mark=to_adsl6.1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=adsl7.1_conn \
disabled=no new-routing-mark=to_adsl7.1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=adsl8.1_conn \
disabled=no new-routing-mark=to_adsl8.1 passthrough=yes
add action=accept chain=prerouting comment="" disabled=no dst-address=\
172.168.0.0/24 in-interface=ether01
add action=accept chain=prerouting comment="" disabled=no dst-address=\
172.168.2.0/24 in-interface=ether01
add action=accept chain=prerouting comment="" disabled=no dst-address=\
172.168.5.0/24 in-interface=ether01
add action=accept chain=prerouting comment="" disabled=no dst-address=\
172.168.6.0/24 in-interface=ether01
add action=accept chain=prerouting comment="" disabled=no dst-address=\
172.168.7.0/24 in-interface=ether01
add action=accept chain=prerouting comment="" disabled=no dst-address=\
172.168.8.0/24 in-interface=ether01
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=ether01 new-connection-mark=lb1_conn \
passthrough=yes per-connection-classifier=dst-address-and-port:6/0
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=ether01 new-connection-mark=lb2_conn \
passthrough=yes per-connection-classifier=dst-address-and-port:6/1
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=ether01 new-connection-mark=\
adsl5.1_conn passthrough=yes per-connection-classifier=\
dst-address-and-port:6/2
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=ether01 new-connection-mark=\
adsl6.1_conn passthrough=yes per-connection-classifier=\
dst-address-and-port:6/3
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=ether01 new-connection-mark=\
adsl7.1_conn passthrough=yes per-connection-classifier=\
dst-address-and-port:6/4
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=ether01 new-connection-mark=\
adsl8.1_conn passthrough=yes per-connection-classifier=\
dst-address-and-port:6/5
add action=mark-routing chain=prerouting comment="" connection-mark=lb1_conn \
disabled=no in-interface=ether01 new-routing-mark=to_lb1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb2_conn \
disabled=no in-interface=ether01 new-routing-mark=to_lb2 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=\
adsl5.1_conn disabled=no in-interface=ether01 new-routing-mark=to_adsl5.1 \
passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=\
adsl6.1_conn disabled=no in-interface=ether01 new-routing-mark=to_adsl6.1 \
passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=\
adsl7.1_conn disabled=no in-interface=ether01 new-routing-mark=to_adsl7.1 \
passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=\
adsl8.1_conn disabled=no in-interface=ether01 new-routing-mark=to_adsl8.1 \
passthrough=yes
add action=mark-connection chain=prerouting comment="ICMP Traffic " disabled=\
no new-connection-mark=icmp-con passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting comment="" connection-mark=icmp-con \
disabled=no new-packet-mark=icmp-pac passthrough=yes protocol=icmp
add action=mark-connection chain=prerouting comment=HTTPTraffic disabled=no \
dst-port=0-65535 new-connection-mark=HTTP-con passthrough=yes protocol=\
tcp
add action=mark-packet chain=prerouting comment="" connection-mark=HTTP-con \
disabled=no dst-port=0-65535 new-packet-mark=HTTP-pac passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting comment="p2p traffic" disabled=no \
new-connection-mark=p2p-con p2p=all-p2p passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=p2p-con \
disabled=no new-packet-mark=p2p-flow p2p=all-p2p passthrough=yes
add action=mark-connection chain=prerouting comment="SMTP Traffic" disabled=\
no dst-port=25 new-connection-mark=smtp-con passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=smtp-con \
disabled=no dst-port=25 new-packet-mark=smtp-flow passthrough=yes \
protocol=tcp