Dear Guys
I am using CCR1036 for 3 wan and 1 lan
My problem is from the terminal when i /ping 8.8.8.8 interface=ether2-WAN1 or ether2-WAN2 i got reply while if i /ping 8.8.8.8 interface=ether2-WAN3 ping request time out.
the reason for doing this ping is to make a script that test the internet on each wan if they are working and send me notification email when a link is down and up again because netwatch is not doing what i want in addition netwatch is showing me up all the time even when the link is down while i put the right gateway for each WAN.
this is weird problem that the gateway still to reply pings even if the link is down so what to use in this case for host in netwatch ?
please check my settings for Mngle, NAT and ip route if i am missing something
/ip firewall mangle
add action=mark-connection chain=input in-interface=ether2-WAN1 \
new-connection-mark=WAN-WAN1
add action=mark-connection chain=input in-interface=ether3-WAN2 \
new-connection-mark=WAN-WAN2
add action=mark-connection chain=input in-interface=ether4-WAN3 \
new-connection-mark=WAN-WAN3
add action=mark-routing chain=output connection-mark=WAN-WAN1 \
new-routing-mark=To_WAN1
add action=mark-routing chain=output connection-mark=WAN-WAN3 \
new-routing-mark=To_WAN3
add action=mark-routing chain=output connection-mark=WAN-WAN2 \
new-routing-mark=To_WAN2
add chain=prerouting comment=Terranet dst-address=212.98.xxx.32/29 \
in-interface=ether1-LAN
add chain=prerouting comment=WAN2 dst-address=212.28.xxx.104/29 \
in-interface=ether1-LAN
add chain=prerouting comment=WAN3 dst-address=212.40.xxx.192/29 \
in-interface=ether1-LAN
add action=mark-connection chain=prerouting comment=WAN1 \
dst-address-type=!local in-interface=ether1-LAN new-connection-mark=\
WAN-WAN1 per-connection-classifier=both-addresses-and-ports:3/0
add action=mark-connection chain=prerouting comment=WAN2 dst-address-type=\
!local in-interface=ether1-LAN new-connection-mark=WAN-WAN2 \
per-connection-classifier=both-addresses-and-ports:3/1
add action=mark-connection chain=prerouting comment=WAN3 dst-address-type=\
!local in-interface=ether1-LAN new-connection-mark=WAN-WAN3 \
per-connection-classifier=both-addresses-and-ports:3/2
add action=mark-routing chain=prerouting comment=WAN1 connection-mark=\
WAN-WAN1 in-interface=ether1-LAN new-routing-mark=To_WAN1
add action=mark-routing chain=prerouting comment=WAN2 connection-mark=\
WAN-WAN2 in-interface=ether1-LAN new-routing-mark=To_WAN2
add action=mark-routing chain=prerouting comment=WAN3 connection-mark=\
WAN-WAN3 in-interface=ether1-LAN new-routing-mark=To_WAN3
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether2-WAN1
add action=masquerade chain=srcnat out-interface=ether3-WAN2
add action=masquerade chain=srcnat out-interface=ether4-WAN3
/ip route
add check-gateway=ping distance=1 gateway=212.98.xxx.33 routing-mark=\
To_WAN1
add check-gateway=ping distance=1 gateway=212.40.xxx.193 routing-mark=\
To_WAN3
add check-gateway=ping distance=1 gateway=212.28.xxx.105 routing-mark=\
To_WAN2
add check-gateway=ping comment=provider1 distance=1 gateway=212.98.xxx.33
add check-gateway=ping comment=provider2 distance=2 gateway=212.28.xxx.105
add check-gateway=ping comment=provider3 distance=3 gateway=212.40.xxx.193
thank you in advance