windows環(huán)境下用squid代理https(ssl)的方法
這個(gè)其實(shí)跟配置http代理也差不多,我之前是因?yàn)闆]有使用支持ssl的squid版本,所以反復(fù)折騰都不見效!
首先得檢查你正在使用的squid版本是否是支持ssl的,主要看squid\sbin\ssleay32.dll文件是否存在,如果沒有此文件那就得去換個(gè)支持ssl的squid版本了。
我這里就只提供個(gè)最簡(jiǎn)單的例子:
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
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
icp_access allow all
https_port 443 accel cert=c:/certs/server.pem key=c:/certs/server.pem vhost
cache_peer 192.168.1.13 parent 443 0 no-query originserver login=PASS ssl sslflags=DONT_VERIFY_PEER name=kensite
cache_peer_domain kensite ken.01h.net
hierarchy_stoplist cgi-bin ?
access_log c:/squid/var/logs/access.log squid
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
visible_hostname 01H.NET
coredump_dir c:/squid/var/cache
備注:“c:/certs/server.pem”這個(gè)文件是可以去提供ssl服務(wù)的軟件相關(guān)目錄下找到的,擴(kuò)展名也有可能是.crt、.key等,我這里的.pem是以VisualSVN為例的。
相關(guān)文章
Windows?Server?2019?FTP服務(wù)器搭建的實(shí)現(xiàn)步驟
FTP服務(wù)器的主要功能是通過FTP協(xié)議讓用戶能夠在服務(wù)器上進(jìn)行文件的上傳和下載操作,本文主要介紹了Windows?Server?2019?FTP服務(wù)器搭建的實(shí)現(xiàn)步驟,具有一定的參考價(jià)值,感興趣的可以了解一下2024-04-04
win2008 iis7設(shè)置取消執(zhí)行純腳本權(quán)限圖文步驟
win2008的iis7與win2003中的iis6在禁止某個(gè)目錄運(yùn)行腳本木馬的設(shè)置上有所不一樣,具體的設(shè)置方法祥看本文希望可以幫助到你2013-04-04
win2003 iis6.0站點(diǎn)打不開,找不到服務(wù)器或 DNS 錯(cuò)誤(Connections_Refused)
無法顯示頁。要查找的頁面是當(dāng)前不可用的。 該 Web 站點(diǎn)可能會(huì)出現(xiàn)技術(shù)的了問題,或者您可能需要調(diào)整瀏覽器設(shè)置。 找不到服務(wù)器或 DNS 錯(cuò)誤。2011-09-09
win2008里IIS安裝以及IIS7簡(jiǎn)單設(shè)置教程[圖文]
iis7好處是做的更加智能,功能也更強(qiáng)大,并且在安裝完后,它的功能都是以模塊化的形式展現(xiàn)出來的,讓人感覺起來是更簡(jiǎn)單了,其實(shí)就我個(gè)人感覺,它變的更復(fù)雜了2013-03-03
Windows rsync服務(wù)器備份配置實(shí)例
Windows下使用rsync備份文件的配置方法,這是一個(gè)不錯(cuò)的實(shí)例,經(jīng)測(cè)試是沒問題的,大家可以參考下。2009-09-09
windows server 2008 登錄過程中顯示歷史登錄信息
網(wǎng)絡(luò)管理員下次重啟服務(wù)器系統(tǒng)時(shí),就能非常清楚地看到上次登錄系統(tǒng)的所有賬號(hào)信息,其中來自陌生賬號(hào)的登錄行為可能就是危險(xiǎn)登錄行為,根據(jù)這個(gè)危險(xiǎn)登錄行為網(wǎng)絡(luò)管理員應(yīng)該及時(shí)采取安全措施進(jìn)行應(yīng)對(duì),以便杜絕該現(xiàn)象的再次發(fā)生2017-04-04

