+ Responder ao Tópico



  1. #1
    b0rin
    Visitante

    Padrão The requested URL could not be retrieved

    Pessoal depois que eu coloquei o proxy transparente no server, agora esta aparecendo essa msg "The requested URL could not be retrieved" nas maquinas qdo vão acessar a internet.

    Abaixo o meu squid.conf

    Código :
     http_port 3128
     hierarchy_stoplist cgi-bin ?
     acl QUERY urlpath_regex cgi-bin \?
     no_cache deny QUERY
     
     
    # Regras de ACl's
     
     
      acl sitesbloqueados url_regex -i "/etc/squid/bloqueados/block.txt"
      acl sitesliberados url_regex -i "/etc/squid/bloqueados/unblock.txt"
      acl rede_interna src 200.200.0.0/16
      acl all src 0.0.0.0/0.0.0.0
      acl manager proto cache_object
      acl localhost src 127.0.0.1/255.255.255.255
      acl SSL_ports port 443 563
      acl Safe_ports port 80        # http
      acl Safe_ports port 21        # ftp
      acl Safe_ports port 443 563   # https, snews
      acl Safe_ports port 70        # gopher
      acl Safe_ports port 210       # wais
      acl Safe_ports port 1025-65535# unregistered ports
      acl Safe_ports port 280       # http-mgmt
      acl Safe_ports port 488       # gss-http
      acl Safe_ports port 591       # filemaker
      acl Safe_ports port 777       # multiling http
      acl CONNECT method CONNECT
     
    # Regras de Acessos
     
      http_access deny !Safe_ports
      http_access deny CONNECT !SSL_ports
      http_access allow rede_interna
      httpd_accel_host virtual
      httpd_accel_port 80
      httpd_accel_with_proxy on
      httpd_accel_uses_host_header on

    E esse aqui é minha regra para o proxy transparente:

    Código :
    iptables -t nat -A PREROUTING -s 200.200.0.0/16 -p tcp --dport 80 -j DNAT --to-destination 200.200.1.2:3128

    Se alguem puder me ajudar eu ficaria muito grato.

  2. #2
    perdiga
    Visitante

    Padrão The requested URL could not be retrieved

    amigo tenta trocar a sua regra no iptables e por essa


    $IPTABLES -t nat -A PREROUTING -s 192.168.100.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
    $IPTABLES -t nat -A PREROUTING -s 192.168.100.0/24 -p udp --dport 80 -j REDIRECT --to-port 3128


    192.168.100.0/24 = rede local