HI,
I had 4 WAN's load balanced on my ccr1009 and working perfect with the other 4 ports as LAN's.
I then added a PPPoe server as I wanted to use a radius manager and since then the load balancing of the WAN's don't work, all traffic seems to be going through the WAN1. If i disable WAN1 then all traffic then goes through WAN2, etc.
I have not added any new mangle rules etc as I dont know where to add them, I just used Zaib's script to load balance and adapted it for my needs. If anyone can help me get the load balancing working again through PPPoe I would be grateful.
I also noticed in the /IP/Routes all 4 WANs are reachable , but only one is Active/Static, which is the one with the traffic flowing through it, the other 3 are in blue and only Static.
Below is an export from the router:
may/14/2016 14:06:04 by RouterOS 6.34.4
software id = EHUX-6B0P
/interface ethernet
set [ find default-name=ether1 ] name=ether1-local
set [ find default-name=ether2 ] master-port=ether1-local
set [ find default-name=ether3 ] master-port=ether1-local
set [ find default-name=ether4 ] master-port=ether1-local
set [ find default-name=ether5 ] name=ether5_WAN1
set [ find default-name=ether6 ] name=ether6_WAN2
set [ find default-name=ether7 ] name=ether7_WAN3
set [ find default-name=ether8 ] name=ether8_WAN4
/ip hotspot profile
add hotspot-address=192.168.10.1 name=hsprof1
/ip pool
add name=dhcp_pool1 ranges=192.168.10.5-192.168.10.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=ether1-local lease-time=23h59m59s name=dhcp1
/ppp profile
add dns-server=8.8.8.8 local-address=192.168.10.1 name=profile1-ppp remote-address=dhcp_pool1
/system logging action
set 0 memory-lines=100
/interface pppoe-server server
add authentication=chap default-profile=profile1-ppp disabled=no interface=ether1-local max-mru=1400 max-mtu=1400 mrru=1600 service-name=service1
/interface pptp-server server
set default-profile=profile1-ppp enabled=yes
/ip accounting
set enabled=yes
/ip address
add address=192.168.2.21/24 interface=ether5_WAN1 network=192.168.2.0
add address=192.168.5.4/24 interface=ether6_WAN2 network=192.168.5.0
add address=212.17.63.154/30 comment=wan interface=ether7_WAN3 network=212.17.63.152
add address=212.17.63.158/30 comment=wan interface=ether8_WAN4 network=212.17.63.156
add address=192.168.10.1/24 comment=lan interface=ether1-local network=192.168.10.0
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes cache-size=5000KiB servers=221.132.112.8,8.8.8.8
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
/ip firewall mangle
add action=mark-connection chain=input in-interface=ether5_WAN1 new-connection-mark=WAN1_conn
add action=mark-connection chain=input in-interface=ether6_WAN2 new-connection-mark=WAN2_conn
add action=mark-connection chain=input in-interface=ether7_WAN3 new-connection-mark=WAN3_conn
add action=mark-connection chain=input in-interface=ether8_WAN4 new-connection-mark=WAN4_conn
add action=mark-routing chain=output connection-mark=WAN1_conn new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn new-routing-mark=to_WAN2
add action=mark-routing chain=output connection-mark=WAN3_conn new-routing-mark=to_WAN3
add action=mark-routing chain=output connection-mark=WAN4_conn new-routing-mark=to_WAN4
add chain=prerouting dst-address=192.168.2.0/24 in-interface=ether1-local
add chain=prerouting dst-address=192.168.5.0/24 in-interface=ether1-local
add chain=prerouting dst-address=212.17.63.152/30 in-interface=ether1-local
add chain=prerouting dst-address=212.17.63.156/30 in-interface=ether1-local
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether1-local new-connection-mark=WAN1_conn per-connection-classifier=both-addresses-and-ports:4/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether1-local new-connection-mark=WAN2_conn per-connection-classifier=both-addresses-and-ports:4/1
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether1-local new-connection-mark=WAN3_conn per-connection-classifier=both-addresses-and-ports:4/2
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether1-local new-connection-mark=WAN4_conn per-connection-classifier=both-addresses-and-ports:4/3
add action=mark-routing chain=prerouting connection-mark=WAN1_conn in-interface=ether1-local new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn in-interface=ether1-local new-routing-mark=to_WAN2
add action=mark-routing chain=prerouting connection-mark=WAN3_conn in-interface=ether1-local new-routing-mark=to_WAN3
add action=mark-routing chain=prerouting connection-mark=WAN4_conn in-interface=ether1-local new-routing-mark=to_WAN4
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
add action=dst-nat chain=dstnat comment="Linux SSH" dst-address=212.17.63.158 dst-port=22 protocol=tcp to-addresses=192.168.10.100 to-ports=22
add action=masquerade chain=srcnat out-interface=ether5_WAN1
add action=masquerade chain=srcnat out-interface=ether6_WAN2
add action=masquerade chain=srcnat out-interface=ether7_WAN3
add action=masquerade chain=srcnat out-interface=ether8_WAN4
add action=masquerade chain=srcnat comment="masquerade hotspot network" src-address=192.168.10.0/24
/ip hotspot user
add name=admin password=t1000
/ip route
add check-gateway=ping distance=1 gateway=192.168.2.1 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=192.168.5.1 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=212.17.63.153 routing-mark=to_WAN3
add check-gateway=ping distance=1 gateway=212.17.63.157 routing-mark=to_WAN4
add check-gateway=ping distance=1 gateway=192.168.2.1
add check-gateway=ping distance=2 gateway=192.168.5.1
add check-gateway=ping distance=3 gateway=212.17.63.153
add check-gateway=ping distance=4 gateway=212.17.63.157
/ppp aaa
set interim-update=1m use-radius=yes
/radius
add address=192.168.10.100 secret=testing123 service=ppp,hotspot timeout=2s
/radius incoming
set accept=yes port=1700
/system clock
set time-zone-name=Europe/Dublin
/system routerboard settings
set cpu-frequency=1000MHz memory-frequency=1066DDR protected-routerboot=disabled