{"id":372,"date":"2010-05-08T02:20:13","date_gmt":"2010-05-08T00:20:13","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=372"},"modified":"2011-01-26T01:41:49","modified_gmt":"2011-01-25T23:41:49","slug":"anonymous-proxy-using-squid-3-on-ubuntu-9-04-server-with-web-based-auth-user-pass-soruyor-d","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2010\/05\/08\/anonymous-proxy-using-squid-3-on-ubuntu-9-04-server-with-web-based-auth-user-pass-soruyor-d\/","title":{"rendered":"Anonymous Proxy Using SQUID 3 On Ubuntu 9.04 Server &#8211; with web based auth!! (user pass soruyor :D)"},"content":{"rendered":"<p>Guncelleme<br \/>\nubuntu 10.04 32 bit minimal install icin yeniden duzenledim<\/p>\n<p>1- ubuntu 10.04 vpsimizi hazir edelim -iki adet ip adresi var<br \/>\n2- apt-get install squid3<br \/>\n3- kendi confum hazir o yuzden var olani yedekle lazim olursa<br \/>\ncp \/etc\/squid3\/squid.conf \/etc\/squid3\/squid.conf.yedek<br \/>\n4- nano \/etc\/squid3\/squid.conf<br \/>\n<code><br \/>\n#Recommended minimum configuration:<br \/>\nacl manager proto cache_object<br \/>\nacl localhost src 127.0.0.1\/32<br \/>\nacl to_localhost dst 127.0.0.0\/8<br \/>\nacl SSL_ports port 443<br \/>\nacl Safe_ports port 80          # http<br \/>\nacl Safe_ports port 21          # ftp<br \/>\nacl Safe_ports port 443         # https<br \/>\nacl Safe_ports port 70          # gopher<br \/>\nacl Safe_ports port 210         # wais<br \/>\nacl Safe_ports port 1025-65535  # unregistered ports<br \/>\nacl Safe_ports port 280         # http-mgmt<br \/>\nacl Safe_ports port 488         # gss-http<br \/>\nacl Safe_ports port 591         # filemaker<br \/>\nacl Safe_ports port 777         # multiling http<br \/>\nacl CONNECT method CONNECT<br \/>\nhttp_access allow manager localhost<br \/>\nhttp_access deny manager<br \/>\nhttp_access deny !Safe_ports<br \/>\nhttp_access deny CONNECT !SSL_ports<br \/>\nhttp_access allow localhost<br \/>\n#http_access deny all<br \/>\nicp_access deny all<br \/>\nhtcp_access deny all<br \/>\nhttp_port 3128<br \/>\nhierarchy_stoplist cgi-bin ?<br \/>\naccess_log \/var\/log\/squid3\/access.log squid<br \/>\nrefresh_pattern ^ftp:           1440    20%     10080<br \/>\nrefresh_pattern ^gopher:        1440    0%      1440<br \/>\nrefresh_pattern (cgi-bin|\\?)    0       0%      0<br \/>\nrefresh_pattern .               0       20%     4320<\/code><\/p>\n<p>auth_param basic program \/usr\/lib\/squid3\/ncsa_auth \/etc\/squid3\/squid_passwd<br \/>\nauth_param basic children 5<br \/>\nauth_param basic realm Squid proxy-caching web server<br \/>\nauth_param basic credentialsttl 2 hours<\/p>\n<p>acl ncsaauth proxy_auth REQUIRED<br \/>\nhttp_access allow ncsaauth<\/p>\n<p>forwarded_for off<\/p>\n<p>acl ip1 myip 178.63.148.7<br \/>\ntcp_outgoing_address 178.63.148.7 ip1<\/p>\n<p>request_header_access Allow allow all<br \/>\nrequest_header_access Authorization allow all<br \/>\nrequest_header_access WWW-Authenticate allow all<br \/>\nrequest_header_access Proxy-Authorization allow all<br \/>\nrequest_header_access Proxy-Authenticate allow all<br \/>\nrequest_header_access Cache-Control allow all<br \/>\nrequest_header_access Content-Encoding allow all<br \/>\nrequest_header_access Content-Length allow all<br \/>\nrequest_header_access Content-Type allow all<br \/>\nrequest_header_access Date allow all<br \/>\nrequest_header_access Expires allow all<br \/>\nrequest_header_access Host allow all<br \/>\nrequest_header_access If-Modified-Since allow all<br \/>\nrequest_header_access Last-Modified allow all<br \/>\nrequest_header_access Location allow all<br \/>\nrequest_header_access Pragma allow all<br \/>\nrequest_header_access Accept allow all<br \/>\nrequest_header_access Accept-Charset allow all<br \/>\nrequest_header_access Accept-Encoding allow all<br \/>\nrequest_header_access Accept-Language allow all<br \/>\nrequest_header_access Content-Language allow all<br \/>\nrequest_header_access Mime-Version allow all<br \/>\nrequest_header_access Retry-After allow all<br \/>\nrequest_header_access Title allow all<br \/>\nrequest_header_access Connection allow all<br \/>\nrequest_header_access Proxy-Connection allow all<br \/>\nrequest_header_access User-Agent allow all<br \/>\nrequest_header_access Cookie allow all<br \/>\nrequest_header_access All deny all<br \/>\nsave et bitti<br \/>\n5- touch \/etc\/squid3\/squid_passwd<br \/>\n6- htpasswd \/etc\/squid3\/squid_passwd proxykullaniciadi1<br \/>\n7- service squid3 restart<\/p>\n<p>oldu bitti masallah<\/p>\n<p>port 3128 iplerimiz yukaridaki ornekde oldugu gibi 178.63.148.7 bla bla<br \/>\ntabi serverdaki gercek ipleri yaz yerine<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>CENTOS 5.x ICIN<\/p>\n<p>yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel<\/p>\n<p>wget http:\/\/archives.fedoraproject.org\/pub\/archive\/fedora\/linux\/releases\/10\/Fedora\/source\/SRPMS\/squid-3.0.STABLE10-1.fc10.src.rpm<\/p>\n<p>mkdir \/usr\/src\/redhat\/<\/p>\n<p>rpm -ivh squid-3.0.STABLE10-1.fc10.src.rpm<\/p>\n<p>cd \/usr\/src\/redhat\/SPECS<br \/>\nrpmbuild -bb squid.spec<\/p>\n<p>hata vericek<\/p>\n<p>nano squid.spec diyip<\/p>\n<p>iconv satirini asagidaki sekilde degistir<\/p>\n<p>iconv -f ISO-8859-1 -t UTF-8 ChangeLog &gt; ChangeLog.tmp<\/p>\n<p>sonra yeniden<\/p>\n<p>rpmbuild -bb squid.spec<\/p>\n<p>rpm build olduktan sonra kur<\/p>\n<p>rpm -Uvh \/usr\/src\/redhat\/RPMS\/x86_64\/squid-3.0.STABLE10-1.x86_64.rpm<\/p>\n<p>cd \/etc\/squid\/<br \/>\nmv squid.conf squid.conf.orig<br \/>\nnano squid.conf<\/p>\n<p>YAPISTIR<\/p>\n<p><code>#Recommended minimum configuration:<br \/>\nacl manager proto cache_object<br \/>\nacl localhost src 127.0.0.1\/32<br \/>\nacl to_localhost dst 127.0.0.0\/8<br \/>\nacl SSL_ports port 443<br \/>\nacl Safe_ports port 80          # http<br \/>\nacl Safe_ports port 21          # ftp<br \/>\nacl Safe_ports port 443         # https<br \/>\nacl Safe_ports port 70          # gopher<br \/>\nacl Safe_ports port 210         # wais<br \/>\nacl Safe_ports port 1025-65535  # unregistered ports<br \/>\nacl Safe_ports port 280         # http-mgmt<br \/>\nacl Safe_ports port 488         # gss-http<br \/>\nacl Safe_ports port 591         # filemaker<br \/>\nacl Safe_ports port 777         # multiling http<br \/>\nacl CONNECT method CONNECT<br \/>\nhttp_access allow manager localhost<br \/>\nhttp_access deny manager<br \/>\nhttp_access deny !Safe_ports<br \/>\nhttp_access deny CONNECT !SSL_ports<br \/>\nhttp_access allow localhost<br \/>\n#http_access deny all<br \/>\nicp_access deny all<br \/>\nhtcp_access deny all<br \/>\nhttp_port 3128<br \/>\nhierarchy_stoplist cgi-bin ?<br \/>\naccess_log \/var\/log\/squid\/access.log squid<br \/>\nrefresh_pattern ^ftp:           1440    20%     10080<br \/>\nrefresh_pattern ^gopher:        1440    0%      1440<br \/>\nrefresh_pattern (cgi-bin|\\?)    0       0%      0<br \/>\nrefresh_pattern .               0       20%     4320<\/code><\/p>\n<p>auth_param basic program \/usr\/lib64\/squid\/ncsa_auth \/etc\/squid\/squid_passwd<br \/>\nauth_param basic children 5<br \/>\nauth_param basic realm Squid proxy-caching web server<br \/>\nauth_param basic credentialsttl 2 hours<\/p>\n<p>acl ncsaauth proxy_auth REQUIRED<br \/>\nhttp_access allow ncsaauth<\/p>\n<p>forwarded_for off<\/p>\n<p>acl ip1 myip 178.63.148.7<br \/>\ntcp_outgoing_address 178.63.148.7 ip1<\/p>\n<p>request_header_access Allow allow all<br \/>\nrequest_header_access Authorization allow all<br \/>\nrequest_header_access WWW-Authenticate allow all<br \/>\nrequest_header_access Proxy-Authorization allow all<br \/>\nrequest_header_access Proxy-Authenticate allow all<br \/>\nrequest_header_access Cache-Control allow all<br \/>\nrequest_header_access Content-Encoding allow all<br \/>\nrequest_header_access Content-Length allow all<br \/>\nrequest_header_access Content-Type allow all<br \/>\nrequest_header_access Date allow all<br \/>\nrequest_header_access Expires allow all<br \/>\nrequest_header_access Host allow all<br \/>\nrequest_header_access If-Modified-Since allow all<br \/>\nrequest_header_access Last-Modified allow all<br \/>\nrequest_header_access Location allow all<br \/>\nrequest_header_access Pragma allow all<br \/>\nrequest_header_access Accept allow all<br \/>\nrequest_header_access Accept-Charset allow all<br \/>\nrequest_header_access Accept-Encoding allow all<br \/>\nrequest_header_access Accept-Language allow all<br \/>\nrequest_header_access Content-Language allow all<br \/>\nrequest_header_access Mime-Version allow all<br \/>\nrequest_header_access Retry-After allow all<br \/>\nrequest_header_access Title allow all<br \/>\nrequest_header_access Connection allow all<br \/>\nrequest_header_access Proxy-Connection allow all<br \/>\nrequest_header_access User-Agent allow all<br \/>\nrequest_header_access Cookie allow all<br \/>\nrequest_header_access All deny all<\/p>\n<p>save et<\/p>\n<p>sonra user pass olusturucaz<\/p>\n<p>5- touch \/etc\/squid\/squid_passwd<br \/>\n6- htpasswd \/etc\/squid\/squid_passwd proxykullaniciadi1<br \/>\n7- service squid restart<\/p>\n<p>oldu bitti masallah<\/p>\n<p>port 3128 iplerimiz yukaridaki ornekde oldugu gibi 178.63.148.7 bla bla<br \/>\ntabi serverdaki gercek ipleri yaz yerine<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guncelleme ubuntu 10.04 32 bit minimal install icin yeniden duzenledim 1- ubuntu 10.04 vpsimizi hazir edelim -iki adet ip adresi var 2- apt-get install squid3 3- kendi confum hazir o yuzden var olani yedekle lazim olursa cp \/etc\/squid3\/squid.conf \/etc\/squid3\/squid.conf.yedek 4- nano \/etc\/squid3\/squid.conf #Recommended minimum configuration: acl manager proto cache_object acl localhost src 127.0.0.1\/32 acl to_localhost [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":4,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/372\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}