Respostas

  • Amigo segue abaixo as regras que utilizo aqui e funcionam perfeitamente, faça a adaptação para seus endereços e nomes das interfaces:

    /ip firewall mangle
    add action=accept chain=prerouting comment="SEM BALANCE" disabled=no dst-address-list=sem_balance in-interface=lan

    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=internet1 new-connection-mark=conn_rg1 passthrough=yes
    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=internet2 new-connection-mark=conn_rg2 passthrough=yes
    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=internet3 new-connection-mark=conn_rg3 passthrough=yes
    add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=internet4 new-connection-mark=conn_rg4 passthrough=yes

    add action=mark-routing chain=output comment="" connection-mark=conn_rg1 disabled=no new-routing-mark=to_rg1 passthrough=no
    add action=mark-routing chain=output comment="" connection-mark=conn_rg2 disabled=no new-routing-mark=to_rg2 passthrough=no
    add action=mark-routing chain=output comment="" connection-mark=conn_rg3 disabled=no new-routing-mark=to_rg3 passthrough=no
    add action=mark-routing chain=output comment="" connection-mark=conn_rg4 disabled=no new-routing-mark=to_rg4 passthrough=no

    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=conn_lan1 passthrough=yes per-connection-classifier=both-addresses:4/0
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=conn_lan2 passthrough=yes per-connection-classifier=both-addresses:4/1
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=conn_lan3 passthrough=yes per-connection-classifier=both-addresses:4/2
    add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=lan new-connection-mark=conn_lan4 passthrough=yes per-connection-classifier=both-addresses:4/3

    add action=mark-routing chain=prerouting comment="" connection-mark=conn_lan1 disabled=no in-interface=lan new-routing-mark=to_lan1 passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_lan2 disabled=no in-interface=lan new-routing-mark=to_lan2 passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_lan3 disabled=no in-interface=lan new-routing-mark=to_lan3 passthrough=no
    add action=mark-routing chain=prerouting comment="" connection-mark=conn_lan4 disabled=no in-interface=lan new-routing-mark=to_lan4 passthrough=no

    /ip firewall nat
    add action=masquerade chain=srcnat comment="MASCARAMENTO PCC" disabled=no out-interface=internet1
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=internet2
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=internet3
    add action=masquerade chain=srcnat comment="" disabled=no out-interface=internet4

    /ip route
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.41.1 scope=30 target-scope=10
    add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.42.1 scope=30 target-scope=10
    add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.43.1 scope=30 target-scope=10
    add comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.44.1 scope=30 target-scope=10

    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.41.1 routing-mark=to_lan1 scope=30 target-scope=10
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.42.1 routing-mark=to_lan2 scope=30 target-scope=10
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.43.1 routing-mark=to_lan3 scope=30 target-scope=10
    add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.44.1 routing-mark=to_lan0 scope=30 target-scope=10

  • pelo que entendi vai fica assim?

    /ip firewall mangle
        add action=accept chain=prerouting comment="SEM BALANCE" disabled=no dst-address-list=sem_balance in-interface=ether1

        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether2 new-connection-mark=conn_rg1

    passthrough=yes
        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether3 new-connection-mark=conn_rg2

    passthrough=yes
        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether4 new-connection-mark=conn_rg3

    passthrough=yes
        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether5 new-connection-mark=conn_rg4

    passthrough=yes

        add action=mark-routing chain=output comment="" connection-mark=conn_rg1 disabled=no new-routing-mark=to_rg1 passthrough=no
        add action=mark-routing chain=output comment="" connection-mark=conn_rg2 disabled=no new-routing-mark=to_rg2 passthrough=no
        add action=mark-routing chain=output comment="" connection-mark=conn_rg3 disabled=no new-routing-mark=to_rg3 passthrough=no
        add action=mark-routing chain=output comment="" connection-mark=conn_rg4 disabled=no new-routing-mark=to_rg4 passthrough=no

        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether2 passthrough=yes per-connection-classifier=both-addresses:4/0
        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether3 passthrough=yes per-connection-classifier=both-addresses:4/1
        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether4 passthrough=yes per-connection-classifier=both-addresses:4/2
        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether5 passthrough=yes per-connection-classifier=both-addresses:4/3

        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether2 disabled=no in-interface=lan new-routing-mark=to_ether2

    passthrough=no
        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether3 disabled=no in-interface=lan new-routing-mark=to_ether3

    passthrough=no
        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether4 disabled=no in-interface=lan new-routing-mark=to_ether4

    passthrough=no
        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether5 disabled=no in-interface=lan new-routing-mark=to_ether5

    passthrough=no

        /ip firewall nat
        add action=masquerade chain=srcnat comment="MASCARAMENTO PCC" disabled=no out-interface=ether2
        add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether3
        add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether4
        add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether5

        /ip route
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.51.1 scope=30 target-scope=10
        add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.52.1 scope=30 target-scope=10
        add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.53.1 scope=30 target-scope=10
        add comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.54.1 scope=30 target-scope=10

        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.51.1 routing-mark=to_ether2 scope=30 target-scope=10
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.52.1 routing-mark=to_ether3 scope=30 target-scope=10
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.53.1 routing-mark=to_ether4 scope=30 target-scope=10
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.54.1 routing-mark=to_ether5 scope=30 target-scope=10

     

    mas e o endereço dos clientes que o

     

    192.168.50.1/24

     

    nao tem ai?

  • ja o usei o pcc é otimo load mas, se você tiver 4 de link de 4mb exemplo se ouver  pico em 1 dos links com

    mais de 4mb vai ficar lento ate os clientes terminarem os downloads, hoje eu uso o 1 load balance mas com

    rotas estaticas coloco 1 grupo de clientes para cada link, e esta funcionando perfeitamente pico de 60mb

    a 70mb sem problemas nenhum o unico problema  é que a rb 1100AH ja esta com 80% de processamento :) mas isso ai ja é outro departamento abraços a todos

  • Aqui tenho quatro links de 1mb cada e nunca nenhum fica sobrecarregado, todos os links são utilizados quase por igual no seu pode ter sido alguma configuração errada.
  • Não a interface dos clientes só é referenciada pelo nome da interface mesmo, que no meu caso é "lan", você só deve é claro configurar o endereço correto na opção /ip addresses no winbox. A configuração que passei é somente do load balance, as configurações de endereço das interfaces e nomes das mesmas você deve fazer conforme a sua rede, e mais uma dica mude o nome das interfaces para ficar melhor o entendimento das regras, o nome padrão que o winbox utiliza não ajuda muito. Qualquer dúvida é só perguntar.

    gerson pereira ceschim disse:

    pelo que entendi vai fica assim?

    /ip firewall mangle
        add action=accept chain=prerouting comment="SEM BALANCE" disabled=no dst-address-list=sem_balance in-interface=ether1

        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether2 new-connection-mark=conn_rg1

    passthrough=yes
        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether3 new-connection-mark=conn_rg2

    passthrough=yes
        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether4 new-connection-mark=conn_rg3

    passthrough=yes
        add action=mark-connection chain=input comment="" connection-state=new disabled=no in-interface=ether5 new-connection-mark=conn_rg4

    passthrough=yes

        add action=mark-routing chain=output comment="" connection-mark=conn_rg1 disabled=no new-routing-mark=to_rg1 passthrough=no
        add action=mark-routing chain=output comment="" connection-mark=conn_rg2 disabled=no new-routing-mark=to_rg2 passthrough=no
        add action=mark-routing chain=output comment="" connection-mark=conn_rg3 disabled=no new-routing-mark=to_rg3 passthrough=no
        add action=mark-routing chain=output comment="" connection-mark=conn_rg4 disabled=no new-routing-mark=to_rg4 passthrough=no

        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether2 passthrough=yes per-connection-classifier=both-addresses:4/0
        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether3 passthrough=yes per-connection-classifier=both-addresses:4/1
        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether4 passthrough=yes per-connection-classifier=both-addresses:4/2
        add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=ether1 new-connection-

    mark=conn_ether5 passthrough=yes per-connection-classifier=both-addresses:4/3

        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether2 disabled=no in-interface=lan new-routing-mark=to_ether2

    passthrough=no
        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether3 disabled=no in-interface=lan new-routing-mark=to_ether3

    passthrough=no
        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether4 disabled=no in-interface=lan new-routing-mark=to_ether4

    passthrough=no
        add action=mark-routing chain=prerouting comment="" connection-mark=conn_ether5 disabled=no in-interface=lan new-routing-mark=to_ether5

    passthrough=no

        /ip firewall nat
        add action=masquerade chain=srcnat comment="MASCARAMENTO PCC" disabled=no out-interface=ether2
        add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether3
        add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether4
        add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether5

        /ip route
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.51.1 scope=30 target-scope=10
        add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.52.1 scope=30 target-scope=10
        add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.53.1 scope=30 target-scope=10
        add comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.54.1 scope=30 target-scope=10

        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.51.1 routing-mark=to_ether2 scope=30 target-scope=10
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.52.1 routing-mark=to_ether3 scope=30 target-scope=10
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.53.1 routing-mark=to_ether4 scope=30 target-scope=10
        add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.54.1 routing-mark=to_ether5 scope=30 target-scope=10

     

    mas e o endereço dos clientes que o

     

    192.168.50.1/24

     

    nao tem ai?

  •  

    Sua receita de Bolo

    coloca os nomes nas interface


    / ip address
    add address=192.168.0.1/30 network=192.168.0.0 broadcast=192.168.0.3 interface=Local
    add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=wlan1
    add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=wlan2
    add address=192.168.3.2/24 network=192.168.3.0 broadcast=192.168.3.255 interface=wlan3
    add address=192.168.4.2/24 network=192.168.4.0 broadcast=192.168.4.255 interface=wlan4

    / ip firewall mangle
    add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
    add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=wlan2_conn
    add chain=input in-interface=wlan3 action=mark-connection new-connection-mark=wlan3_conn
    add chain=input in-interface=wlan4 action=mark-connection new-connection-mark=wlan4_conn

    add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wlan1    
    add chain=output connection-mark=wlan2_conn action=mark-routing new-routing-mark=to_wlan2
    add chain=output connection-mark=wlan3_conn action=mark-routing new-routing-mark=to_wlan3
    add chain=output connection-mark=wlan4_conn action=mark-routing new-routing-mark=to_wlan4

    add chain=prerouting dst-address=192.168.1.0/24  action=accept in-interface=Local
    add chain=prerouting dst-address=192.168.2.0/24  action=accept in-interface=Local
    add chain=prerouting dst-address=192.168.3.0/24  action=accept in-interface=Local
    add chain=prerouting dst-address=192.168.4.0/24  action=accept in-interface=Local

    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
        action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1 \
        action=mark-connection new-connection-mark=wlan2_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:3/1 \
        action=mark-connection new-connection-mark=wlan3_conn passthrough=yes
    add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:4/1 \
        action=mark-connection new-connection-mark=wlan4_conn passthrough=yes

    add chain=prerouting connection-mark=wlan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan1
    add chain=prerouting connection-mark=wlan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan2
    add chain=prerouting connection-mark=wlan3_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan3
    add chain=prerouting connection-mark=wlan4_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan4

    / ip route
    add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_wlan1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_wlan2 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=to_wlan3 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.4.1 routing-mark=to_wlan4 check-gateway=ping

    add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.3.1 distance=3 check-gateway=ping
    add dst-address=0.0.0.0/0 gateway=192.168.4.1 distance=4 check-gateway=ping

    / ip firewall nat
    add chain=srcnat out-interface=wlan1 action=masquerade
    add chain=srcnat out-interface=wlan2 action=masquerade
    add chain=srcnat out-interface=wlan3 action=masquerade
    add chain=srcnat out-interface=wlan4 action=masquerade

  • opa valeu agora sim

    precisando de ajuda to ai gerson.pereira.ceschim@hotmail.com

  • Como vc fez sua pode postar ai para dar uma analizada!!!

    Thiago Saraiva disse:

    ja o usei o pcc é otimo load mas, se você tiver 4 de link de 4mb exemplo se ouver  pico em 1 dos links com

    mais de 4mb vai ficar lento ate os clientes terminarem os downloads, hoje eu uso o 1 load balance mas com

    rotas estaticas coloco 1 grupo de clientes para cada link, e esta funcionando perfeitamente pico de 60mb

    a 70mb sem problemas nenhum o unico problema  é que a rb 1100AH ja esta com 80% de processamento :) mas isso ai ja é outro departamento abraços a todos

  • fiz com o programa pcc 1.3
     


    Ewerson Oliveira disse:

    Como vc fez sua pode postar ai para dar uma analizada!!!

    Thiago Saraiva disse:

    ja o usei o pcc é otimo load mas, se você tiver 4 de link de 4mb exemplo se ouver  pico em 1 dos links com

    mais de 4mb vai ficar lento ate os clientes terminarem os downloads, hoje eu uso o 1 load balance mas com

    rotas estaticas coloco 1 grupo de clientes para cada link, e esta funcionando perfeitamente pico de 60mb

    a 70mb sem problemas nenhum o unico problema  é que a rb 1100AH ja esta com 80% de processamento :) mas isso ai ja é outro departamento abraços a todos

This reply was deleted.