Página 1 de 4 1234 ÚltimoÚltimo
+ Responder ao Tópico



  1. #1
    diogotrc
    Visitante

    Exclamation Web-proxy ñ contabiliza cliente e ñ faz cache!

    Pessoal,
    Desculpa vim aqui pedir ajuda nevamente, mas está acontecendo algo que não me agrada, meu web-proxy não tá funcionando! Não conta cliente nem faz cache!
    Minha config está assim:

    enabled: yes
    src-address: 0.0.0.0
    port: 3128
    hostname: "proxy"
    transparent-proxy: yes
    parent-proxy: 0.0.0.0:0
    cache-administrator: "webmaster"
    max-object-size: 20000KiB
    cache-drive: system
    max-cache-size: unlimited
    max-ram-cache-size: 300000KiB
    status: running
    reserved-for-cache: 30804992KiB
    reserved-for-ram-cache: 2048KiB

    monitor:
    enabled: yes
    src-address: 0.0.0.0
    port: 3128
    hostname: "proxy"
    transparent-proxy: yes
    parent-proxy: 0.0.0.0:0
    cache-administrator: "webmaster"
    max-object-size: 20000KiB
    cache-drive: system
    max-cache-size: unlimited
    max-ram-cache-size: 300000KiB
    status: running
    reserved-for-cache: 30804992KiB
    reserved-for-ram-cache: 2048KiB

  2. #2
    diogotrc
    Visitante

    Padrão

    Nat
    Flags: X - disabled, I - invalid, D - dynamic
    0 ;;; Conectividade Social - Caixa Economica Federal
    chain=dstnat dst-address=200.201.174.0/24 action=accept

    1 ;;; Radio UOL
    chain=dstnat dst-address=200.154.0.0/16 action=accept

    2 ;;; Radio Terra
    chain=dstnat dst-address=200.221.0.0/16 action=accept

    3 ;;; NAT
    chain=srcnat out-interface=ether1 src-address=10.2.1.1 action=masquerade

    4 chain=srcnat out-interface=ether1 src-address=10.3.1.1 action=masquerade

    5 chain=srcnat out-interface=ether1 src-address=10.4.1.1 action=masquerade

    6 ;;; masquerade hotspot network
    chain=srcnat src-address=10.2.1.0/24 action=masquerade

    7 chain=dstnat in-interface=CeuAzul2 protocol=tcp dst-port=80
    action=redirect to-ports=3128

    8 chain=srcnat src-address=10.3.1.0/24 action=masquerade

    9 chain=dstnat in-interface=CeuAzul3 protocol=tcp dst-port=80
    action=redirect to-ports=3128

    10 chain=srcnat src-address=10.4.1.0/24 action=masquerade

    11 chain=dstnat in-interface=CeuAzul4 protocol=tcp dst-port=80
    action=redirect to-ports=3128


    E aí galera, será que fiz besteira?
    Obrigado!



  3. #3

    Padrão

    tenta colocar as regras de redirect antes das masquerade

  4. #4
    diogotrc
    Visitante

    Padrão

    Deveria ficar assim?


    Flags: X - disabled, I - invalid, D - dynamic
    0 ;;; Conectividade Social - Caixa Economica Federal
    chain=dstnat dst-address=200.201.174.0/24 action=accept

    1 ;;; Radio UOL
    chain=dstnat dst-address=200.154.0.0/16 action=accept

    2 ;;; Radio Terra
    chain=dstnat dst-address=200.221.0.0/16 action=accept

    3 ;;; Redir
    chain=dstnat in-interface=CeuAzul2 protocol=tcp dst-port=80 action=redirect to-ports=3128

    4 chain=dstnat in-interface=CeuAzul3 protocol=tcp dst-port=80 action=redirect to-ports=3128

    5 chain=dstnat in-interface=CeuAzul4 protocol=tcp dst-port=80 action=redirect to-ports=3128

    6 ;;; NAT
    chain=srcnat out-interface=ether1 src-address=10.2.1.1 action=masquerade

    7 chain=srcnat out-interface=ether1 src-address=10.3.1.1 action=masquerade

    8 chain=srcnat out-interface=ether1 src-address=10.4.1.1 action=masquerade

    9 ;;; masquerade hotspot network
    chain=srcnat src-address=10.2.1.0/24 action=masquerade

    10 chain=srcnat src-address=10.3.1.0/24 action=masquerade

    11 chain=srcnat src-address=10.4.1.0/24 action=masquerade



  5. #5

    Padrão

    nao, a regra do redirect tem que ser depois do mascarade.
    tenta disabilitar aquelas 3 regras antes do Masquerade pra ver.

  6. #6

    Padrão

    Citação Postado originalmente por diogotrc Ver Post
    Deveria ficar assim?


    Flags: X - disabled, I - invalid, D - dynamic
    0 ;;; Conectividade Social - Caixa Economica Federal
    chain=dstnat dst-address=200.201.174.0/24 action=accept

    1 ;;; Radio UOL
    chain=dstnat dst-address=200.154.0.0/16 action=accept

    2 ;;; Radio Terra
    chain=dstnat dst-address=200.221.0.0/16 action=accept

    3 ;;; Redir
    chain=dstnat in-interface=CeuAzul2 protocol=tcp dst-port=80 action=redirect to-ports=3128

    4 chain=dstnat in-interface=CeuAzul3 protocol=tcp dst-port=80 action=redirect to-ports=3128

    5 chain=dstnat in-interface=CeuAzul4 protocol=tcp dst-port=80 action=redirect to-ports=3128

    6 ;;; NAT
    chain=srcnat out-interface=ether1 src-address=10.2.1.1 action=masquerade

    7 chain=srcnat out-interface=ether1 src-address=10.3.1.1 action=masquerade

    8 chain=srcnat out-interface=ether1 src-address=10.4.1.1 action=masquerade

    9 ;;; masquerade hotspot network
    chain=srcnat src-address=10.2.1.0/24 action=masquerade

    10 chain=srcnat src-address=10.3.1.0/24 action=masquerade

    11 chain=srcnat src-address=10.4.1.0/24 action=masquerade


    Estas 3 regras, devem ser colocadas um "!" ao lado da interface:

    3 ;;; Redir
    chain=dstnat in-interface=CeuAzul2 protocol=tcp dst-port=80 action=redirect to-ports=3128

    4 chain=dstnat in-interface=CeuAzul3 protocol=tcp dst-port=80 action=redirect to-ports=3128

    5 chain=dstnat in-interface=CeuAzul4 protocol=tcp dst-port=80 action=redirect to-ports=3128

    Posta os resultados....