Hi,
I have to load balancing with PCC 2 ADSL and, at the same time, make sure that the traffic from 1 static IP address on the LAN (video server) will go out with always the same ADSL.
- eth5-Hlan and eth4-ADSL are the 2 ADSL
- eth2-LAN is the LAN network with addresses 192.168.88.0/24
here is the code:
add action=mark-connection chain=input in-interface=eth5-HLan new-connection-mark=ether5_conn passthrough=no
add action=mark-connection chain=input in-interface=eth4-ADSL new-connection-mark=ether4_conn passthrough=no
add action=mark-routing chain=output connection-mark=ether4_conn new-routing-mark=to_ether4 passthrough=yes
add action=mark-routing chain=output connection-mark=ether5_conn new-routing-mark=to_ether5 passthrough=yes
add action=accept chain=prerouting dst-address=192.168.0.0/24 in-interface=eth5-HLan
add action=accept chain=prerouting dst-address=192.168.1.0/24 in-interface=eth4-ADSL
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=eth2-LAN new-connection-mark=ether4_conn passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=eth2-LAN new-connection-mark=ether5_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-routing chain=prerouting connection-mark=ether5_conn in-interface=eth2-LAN new-routing-mark=to_ether5 passthrough=no
add action=mark-routing chain=prerouting connection-mark=ether4_conn in-interface=eth2-LAN new-routing-mark=to_ether4 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" disabled=yes ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat out-interface=eth5-HLan
add action=masquerade chain=srcnat out-interface=eth4-ADSL
/ip route
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to_ether4
add check-gateway=ping distance=1 gateway=192.168.0.1 routing-mark=to_ether5
add check-gateway=ping distance=1 gateway=eth5-HLan routing-mark=custom-route
add check-gateway=ping distance=1 gateway=192.168.1.1
add check-gateway=ping distance=2 gateway=192.168.0.1
I want that an IP, for example 192.168.88.5 (video server), use always the ADSL on eth5-HLan. How can I do this?