heres my configuration.
WAN1=10.0.0.3/8
WAN2=192.168.254.254/24
hotspot=192.168.1.1/24
/ip firewall mangle
add chain=input comment=“LOad Balancing” in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2
add chain=prerouting dst-address=10.0.0.0/8 action=accept in-interface=hotspot
add chain=prerouting dst-address=192.168.254.0/24 action=accept in-interface=hotspot
add chain=output protocol=tcp dst-port=80 per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
add chain=output protocol=tcp dst-port=80 per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2
/ip route
add dst-address=0.0.0.0/0 gateway=10.0.0.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.254.254 routing-mark=to_WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.0.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.254.254 distance=2 check-gateway=ping
/ip firewall nat
add chain=srcnat out-interface=WAN1 action=masquerade
add chain=srcnat out-interface=WAN2 action=masquerade
this is from another post…
First configure your mikrotik with PCC and HOTSPOT. Then Just add hotspot=auth in every pcc rules and it will work like a charm.
For example . . .
/ip firewall mangle
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local hotspot=auth in-interface=LAN new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local hotspot=auth in-interface=LAN new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1
after doing this restart the router. this worked for me
Still not working,
can you post your script for comparisons ? Thank sir for the reply.
Yes sir , I did restart the router.
this is my mangle setup with 2 pppoe dsl lines with hotspot and is working 4 months now...
sep/21/2016 11:34:44 by RouterOS 6.32.4
software id = FXLW-6X70
/ip firewall mangle
add chain=prerouting dst-address-list=local-networks src-address-list=
local-networks
add action=mark-connection chain=prerouting connection-mark=no-mark
in-interface=pppoe-out1 new-connection-mark=ISP1_conn
add action=mark-connection chain=prerouting connection-mark=no-mark
in-interface=pppoe-out2 new-connection-mark=ISP2_conn
add action=mark-routing chain=output connection-mark=ISP1_conn
new-routing-mark=to_ISP1
add action=mark-routing chain=output connection-mark=ISP2_conn
new-routing-mark=to_ISP2
add action=mark-connection chain=prerouting connection-mark=no-mark
dst-address-type=!local hotspot=auth in-interface=ether5-slave-local
new-connection-mark=ISP1_conn per-connection-classifier=
both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark
dst-address-type=!local hotspot=auth in-interface=ether5-slave-local
new-connection-mark=ISP2_conn per-connection-classifier=
both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=ISP1_conn
in-interface=ether5-slave-local new-routing-mark=to_ISP1
add action=mark-routing chain=prerouting connection-mark=ISP2_conn
in-interface=ether5-slave-local new-routing-mark=to_ISP2
add chain=prerouting in-interface=pppoe-out1
add chain=prerouting in-interface=pppoe-out2