Hello All, friends, I have 2 Internet links, where 1 is the speed of 512kbps and a 256kbps, I’m deploying balancing PCC here on my ISP.
But I’m having problems page can not be displayed, to believe that making mistakes in the marking of packages and the split of outputs (routes), because from what I understand reading the forums and seeing the wiki, I have to add the 2 links (512 + 256 = 768) divided by the smallest one (256) and then have the number of marks / grading, or would have to have 3 grades, but I can not make this trade / classification to exit balanced routes.
The friends could look at my rules below and tell me where is wrong?
My scenario here is as follows:
PCC server Balance> Hotspot Server> Clients
Rules below
/ip address
add address=192.168.100.254/24 broadcast=192.168.100.255 comment=\
"Rede Local - Sera a Internet do Mikrotik-Hotspot" disabled=no interface=\
Rede_Local network=192.168.100.0
add address=189.80.16.82/29 broadcast=189.80.16.87 comment="Link Oi 256" \
disabled=no interface=Oi_UP_256 network=189.80.16.80
add address=189.80.219.82/29 broadcast=189.80.219.87 comment="Link Oi 512" \
disabled=no interface=Oi_UP_512 network=189.80.219.80
/ip firewall mangle
add action=mark-connection chain=input comment="" disabled=no in-interface=\
Oi_UP_512 new-connection-mark=Oi_UP_512_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
Oi_UP_256 new-connection-mark=Oi_UP_256_conn passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=\
Oi_UP_512_conn disabled=no new-routing-mark=to_Oi_UP_512 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=\
Oi_UP_256_conn disabled=no new-routing-mark=to_Oi_UP_256 passthrough=yes
add action=accept chain=prerouting comment="" disabled=no dst-address=\
189.80.219.80/29 in-interface=Rede_Local
add action=accept chain=prerouting comment="" disabled=no dst-address=\
189.80.16.80/29 in-interface=Rede_Local
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=Rede_Local new-connection-mark=\
Oi_UP_512_conn passthrough=yes per-connection-classifier=\
both-addresses:2/0
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=Rede_Local new-connection-mark=\
Oi_UP_256_conn passthrough=yes per-connection-classifier=\
both-addresses:2/1
add action=mark-routing chain=prerouting comment="" connection-mark=\
Oi_UP_512_conn disabled=no in-interface=Rede_Local new-routing-mark=\
to_Oi_UP_512 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=\
Oi_UP_256_conn disabled=no in-interface=Rede_Local new-routing-mark=\
to_Oi_UP_256 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat comment="Mascaramento do PCC" disabled=no \
out-interface=Oi_UP_512
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
Oi_UP_256
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
189.80.16.81 routing-mark=to_Oi_UP_256 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
189.80.219.81 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
189.80.219.81 routing-mark=to_Oi_UP_512 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
189.80.16.81 scope=30 target-scope=10
Thanks to all
Helder Cavalcante
Passagem Franca/MA - Brazil