我試圖爲所有類型的幀(HTTP,HTTPS)設置透明代理,我使用tinyproxy來做到這一點。我已經建立了我的路由器來重定向(使用NAT)所有傳入和傳出的幀到tinyproxy(正在監聽端口8888)。tinyproxy無法轉發連接方法
我試過訪問一個HTTPS網站(https://www.google.com/),但我得到一個SSL連接錯誤。通過tinyproxy日誌看,我看到以下內容:
CONNECT Mar 24 23:34:27 [22533]: Connect (file descriptor 11): 128.112.94.38 [128.112.94.38]
CONNECT Mar 24 23:34:27 [22533]: Request (file descriptor 11):
WARNING Mar 24 23:34:27 [22533]: Could not retrieve all the headers from the client
INFO Mar 24 23:34:27 [22533]: Read request entity of 103 bytes
的tinyproxy文件說,只要我設置在tinyproxy.conf
文件中以下行,連接幀的轉發應透明地工作:
# ConnectPort: This is a list of ports allowed by tinyproxy when the
# CONNECT method is used. To disable the CONNECT method altogether, set
# the value to 0. If no ConnectPort line is found, all ports are
# allowed (which is not very secure.)
#
# The following two ports are used by SSL.
ConnectPort 443
ConnectPort 563
我也嘗試刪除所有ConnectPort
行來查看是否有效(它不)。有誰知道我爲什麼無法透明地轉發HTTPS流量?