[Linux] ping sous Squid...

Kao Messages postés 44 Statut Membre -  
Kao Messages postés 44 Statut Membre -
Bonjour à tous les CCMiens !!!

J'ai un petit soucis : j'ai installé un serveur proxy Squid sous RedHat 7.3... Tout marche impeccablement sur les postes clients même l'identification... Seul problème, je ne peux plus pinger un site internet (ex : ping www.free.fr) depuis un poste client. Pourtant j'ai bien mis l'option --enable-icmp pour la configuration de Squid. Quelqu'un a-t'il déjà rencontrer le même problème ??? C'est pas très grave si personne ne sait, Squid ne s'en portera pas plus mal mais ça me turlupine dans la tête depuis un pt'it moment...

Merci !!!

Kao

4 réponses

  1. unixola Messages postés 24 Statut Membre 3
     
    si cela t interesse envoie moi ton script si tu veux que l'etudie
    0
  2. Kao Messages postés 44 Statut Membre 3
     
    Salut Unixola !!!

    Je ne sais pas si c'est moi mais j'arrive pas à avoir ton email en cliquant sur ton nom (faut dire que je suis un peu nouveau sur le forum ;-) ...). Donc conclusion, je te mets mon script squid.conf ici :

    http_port 10.0.0.1:8080
    icp_port 0
    cache_mgr root
    cache_effective_user nobody
    cache_effective_group nobody
    cache_mem 60 MB
    cache_dir UFS /cache 100 16 256
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log /var/log/squid/store.log
    cache_swap_low 80
    cache_swap_high 90
    maximum_object_size 4096 KB
    pid_filename /usr/local/squid/var/logs/squid.pid
    acl all src 0.0.0.0/0.0.0.0
    acl localhost src 127.0.0.1/255.255.255.255

    #cache manager
    acl manager proto cache_object
    cachemgr_passwd password all

    #paramètres pour prostat
    emulate_httpd_log off
    log_fqdn off

    acl QUERY urlpath_regex cgi-bin \? \.php3 \.asp
    no_cache deny QUERY

    auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/local/squid/password/passwd
    auth_param basic children 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours

    acl Safe_ports port 80
    acl Safe_ports port 21
    acl Safe_ports port 110
    acl Safe_ports port 25
    acl Safe_ports port 53
    acl Safe_ports port 10000
    acl Safe_ports port 8080
    acl SitesPermis url_regex -i exemple1.fr
    acl SitesPermis url_regex -i exemple2.fr
    acl SitesInterdits url_regex -i exemple3.fr
    acl http port 80

    acl profil_1 proxy_auth test
    http_access allow profil_1 Safe_ports
    http_access deny profil_1 !Safe_ports

    acl profil_3 proxy_auth test3
    http_access deny profil_3 SitesInterdits
    http_access deny !http

    acl profil_2 proxy_auth test2
    http_access allow profil_2 SitesPermis
    http_access deny profil_2 !SitesPermis

    Comme tu peux le voir, j'ai créé plusieurs profils pour surfer sur le Net... C'est clair que Squid permet pas mal de possibilités...

    En tout cas, merci beaucoup de bien vouloir te pencher sur mon problème !!!

    Kao
    0
  3. unixola Messages postés 24 Statut Membre 3
     
    en tout cas a premier vu ton script ne me parait pas empecher les pings .

    regarde peut etre du cote du firewall si tu en as un .
    0
  4. Kao Messages postés 44 Statut Membre 3
     
    Non, malheureusement, je n'ai aucun firewall pour l'instant...

    Kao
    0