PCC Mangle rules question (Load Balancing)
Posted: Fri May 31, 2013 4:26 pm
Hi folks, quick question, here are my mangle rules currently (still have them in notepad, haven't put them into the router yet;
I have 20 Vlans attached to ether3-LAN, do I need to make a mangle rule for every Vlan or is the ether3-LAN rules above sufficient?
Code: Select all
add chain=input in-interface=ether1-WANA action=mark-connection new-connection-mark=ether1-WANA_conn
add chain=input in-interface=ether2-WANB action=mark-connection new-connection-mark=ether2-WANB_conn
add chain=output connection-mark=ether1-WANA_conn action=mark-routing new-routing-mark=to_ether1-WANA
add chain=output connection-mark=ether2-WANB_conn action=mark-routing new-routing-mark=to_ether2-WANB
add chain=prerouting dst-address=1.1.1.1/27 action=accept in-interface=ether3-LAN
add chain=prerouting dst-address=2.2.2.2/29 action=accept in-interface=ether3-LAN
add chain=prerouting dst-address-type=!ether3-LAN in-interface=ether3-LAN per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=ether1-WANA_conn passthrough=yes
add chain=prerouting dst-address-type=!ether3-LAN in-interface=ether3-LAN per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=ether2-WANB_conn passthrough=yes
add chain=prerouting connection-mark=ether1-WANA_conn in-interface=ether3-LAN action=mark-routing new-routing-mark=to_ether1-WANA
add chain=prerouting connection-mark=ether2-WANB_conn in-interface=ether3-LAN action=mark-routing new-routing-mark=to_ether2-WANB