+ Responder ao Tópico



  1. #1

    Padrão Direcionar ppoe do cliente para cache full

    1 - Meu web proxy e cache full esta funcional q é uma blz mas quando ativo hotspot ele passa pelo cache full e web proxy mas nao controla banda.
    2 - os ppoe dos clientes nao passa pelo cache por q nao sei como fazer isso se alguem puder me ajudar como direcionar os clientes para o cache antes de ir fora buscar.

  2. #2



  3. #3

    Padrão

    versao 2.9.27

  4. #4

    Padrão

    vc pega e crie outra regra igual a que vc usa para redirecionar o proxy so que em Src. Adderss vc coloca a faixa de ip do seus cliente EX: 192.168.2.0/32 ou vc coloca o inicio dos ip dos cliente e o ultimo ip assim: 192.168.2.2-192.168.5.254



  5. #5
    smorf
    Visitante

    Padrão

    nao to coseguindo achar o q q esta de errado
    o proxy conta os pacotes ms nao libera o cache full



    nat

    1 chain=srcnat out-interface=pppoe-out1 protocol=tcp action=masquerade

    2 chain=dstnat in-interface=!Cliente src-address=128.0.0.3-128.0.0.50 protocol=tcp dst-port=80 action=redirect
    to-ports=3128


    mangle

    2 ;;; Cache-squid
    chain=output protocol=tcp src-port=3128 content=X-Cache: HIT action=mark-connection
    new-connection-mark=squid-connection-HIT passthrough=yes

    3 chain=output connection-mark=squid-connection-HIT action=mark-packet new-packet-mark=squid-packet-HIT passthrough=no

    4 ;;; UP TRAFFIC
    chain=prerouting in-interface=Cliente src-address=128.0.0.3-128.0.0.50 action=mark-packet new-packet-mark=test-up
    passthrough=no

    5 ;;; DOWN-DIRECT CONNECTION
    chain=forward in-interface=pppoe-out1 connection-mark=test-conn action=mark-packet new-packet-mark=test-down
    passthrough=no

    6 ;;; DOWN-VIA PROXY
    chain=output out-interface=Cliente dst-address=128.0.0.3-128.0.0.50 action=mark-packet new-packet-mark=test-down
    passthrough=no

    7 ;;; CONN-MARK
    chain=forward src-address=128.0.0.3-128.0.0.50 action=mark-connection new-connection-mark=test-conn passthrough=yes

  6. #6

    Padrão

    vc fez as regras em qeues tree para liberar o cache-full ?






    Citação Postado originalmente por smorf Ver Post
    nao to coseguindo achar o q q esta de errado
    o proxy conta os pacotes ms nao libera o cache full



    nat

    1 chain=srcnat out-interface=pppoe-out1 protocol=tcp action=masquerade

    2 chain=dstnat in-interface=!Cliente src-address=128.0.0.3-128.0.0.50 protocol=tcp dst-port=80 action=redirect
    to-ports=3128


    mangle

    2 ;;; Cache-squid
    chain=output protocol=tcp src-port=3128 content=X-Cache: HIT action=mark-connection
    new-connection-mark=squid-connection-HIT passthrough=yes

    3 chain=output connection-mark=squid-connection-HIT action=mark-packet new-packet-mark=squid-packet-HIT passthrough=no

    4 ;;; UP TRAFFIC
    chain=prerouting in-interface=Cliente src-address=128.0.0.3-128.0.0.50 action=mark-packet new-packet-mark=test-up
    passthrough=no

    5 ;;; DOWN-DIRECT CONNECTION
    chain=forward in-interface=pppoe-out1 connection-mark=test-conn action=mark-packet new-packet-mark=test-down
    passthrough=no

    6 ;;; DOWN-VIA PROXY
    chain=output out-interface=Cliente dst-address=128.0.0.3-128.0.0.50 action=mark-packet new-packet-mark=test-down
    passthrough=no

    7 ;;; CONN-MARK
    chain=forward src-address=128.0.0.3-128.0.0.50 action=mark-connection new-connection-mark=test-conn passthrough=yes



  7. #7

    Padrão Re: Direcionar ppoe do cliente para cache full

    Tambem estou enfrentando tal problema, é preciso criar alguma regra no nat?