Re: [Linux-ag] Squid ve Https sitelere erisim sorunu...

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Kadir DEMIR (kadir@kadirdemir.com)
Date: Tue 03 Oct 2006 - 08:39:25 GMT


Metin Bey merhaba,

Oncelikle hizli sekilde cevap verdiginiz icin cok tesekkur ederim. Squid transparent olarak calismiyor. Kullanicilarin browserlarinda proxy ipsi ve portu yazili durumda.

Iyi calismalar....

  ----- Original Message -----
  From: Metin KARAKUŞ
  To: linux-ag@liste.linux.org.tr
  Sent: Tuesday, October 03, 2006 11:32 AM
  Subject: Re: [Linux-ag] Squid ve Https sitelere erisim sorunu...

  squid transparent olarakmı calısıyor
  eğer cevap evet ise siz 80 porttan gelen istekleri 8080 yönlendirmişşinizdir muhtemelen o yuzden http://***** dediğinizde ulaşıyorsunuz
  https=80 nolu portu kullanmaz o nedenle transparent olarak calısmaz
  yapmanız gereken

  açılışa bunları betik olarak hazırlayıp calıstırn

  eth0 = internete çıkan ethernetiniz olsun
  eth1= iç ağa bakan ethernetiniz oldugunu farz ederek alltakileri yazıyorum siz kendinize göre değiştirebilirsiniz

  iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

  bu sayede sadece 80 değil tüm portları ic aga acmıs olursun
  ardından

  iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.1.1:8080

  bu sayedede http isteklerinizi squide yönlendirmiş olduk

  artık sorunsuz kullanabiliyor olmalısınız

   
    ----- Original Message -----
    From: Kadir DEMIR
    To: linux-ag@liste.linux.org.tr
    Sent: Tuesday, October 03, 2006 11:14 AM
    Subject: [Linux-ag] Squid ve Https sitelere erisim sorunu...

    Arkadaslar merhaba,

    Fedora 4.0 uzerine squid-2.5.STABLE9-7 kurdum. Http sitelerine giderken https sitelere gidemiyorum. Internette biraz arastirdigimda Internet Explorer ile ilgili bir bug'dan soz edildigini duydum ve mozilla firefox indirdim. Sonuc ayni her iki browserdan da https sayfalarina erisemiyorum. Bu sorunu nasil asabilirim?

    Ekte sistem detaylari ve squid.conf'un icerigi mevcut. Daha once konu ile ugrasip sonuc alabilen arkadaslardan yardimlarini rica ediyorum

    Iyi calismalar...

    Linux version 2.6.11-1.1369_FC4 (bhcompile@decompose.build.redhat.com) (gcc version 4.0.0 20050525 (Red Hat 4.0.0-9)) #1 Thu Jun 2 22:55:56 EDT 2005
    Fedora Core release 4 (Stentz)

    squid-2.5.STABLE9-7

    #Default:
    http_port 8080

    #Default:
    cache_dir ufs /var/spool/squid 1024 16 256

    #Recommended minimum configuration:
    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 to_localhost dst 127.0.0.0/8
    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

    #acl identusers ident REQUIRED
    acl denge src 192.168.26.0/24 10.39.40.0/24

    # TAG: http_access
    # Allowing or Denying access based on defined access lists
    #
    # Access to the HTTP port:
    # http_access allow|deny [!]aclname ...
    #
    # NOTE on default values:
    #
    # If there are no "access" lines present, the default is to deny
    # the request.
    #
    # If none of the "access" lines cause a match, the default is the
    # opposite of the last line in the list. If the last line was
    # deny, the default is allow. Conversely, if the last line
    # is allow, the default will be deny. For these reasons, it is a
    # good idea to have an "deny all" or "allow all" entry at the end
    # of your access lists to avoid potential confusion.
    #
    #Default:
    # http_access allow all
    #
    #Recommended minimum configuration:
    #
    # Only allow cachemgr access from localhost
    http_access allow manager localhost
    http_access deny manager
    # Deny requests to unknown ports
    http_access deny !Safe_ports
    # Deny CONNECT to other than SSL ports
    http_access deny CONNECT !SSL_ports
    #
    # We strongly recommend the following be uncommented to protect innocent
    # web applications running on the proxy server who think the only
    # one who can access services on "localhost" is a local user
    #http_access deny to_localhost
    #
    # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

    # Example rule allowing access from your local networks. Adapt
    # to list your (internal) IP networks from where browsing should
    # be allowed
    #acl our_networks src 192.168.1.0/24 192.168.2.0/24
    #http_access allow our_networks

    # And finally deny all other access to this proxy
    http_access allow localhost
    # acl denge src 192.168.26.0/24 10.39.40.0/24
    http_access allow denge
    http_access deny all

    Kadir DEMIR
    Network & Security Engineer
    Gsm: +90 544 4575595
    Mail:kadir@kadirdemir.com

----------------------------------------------------------------------------

    _______________________________________________
    Linux-ag mailing list
    Linux-ag@liste.linux.org.tr
    http://liste.linux.org.tr/mailman/listinfo/linux-ag

------------------------------------------------------------------------------

  _______________________________________________
  Linux-ag mailing list
  Linux-ag@liste.linux.org.tr
  http://liste.linux.org.tr/mailman/listinfo/linux-ag

_______________________________________________
Linux-ag mailing list
Linux-ag@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-ag


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.