我无法弄清楚为什么我的ssh创build的袜子代理工作与curl,但不是与Chrome +的Mac OS优胜美地。
ssh -D 8080 -p 5432 -i mypubkey.pem my-user@my_server_ip创build的Socks代理ssh -D 8080 -p 5432 -i mypubkey.pem my-user@my_server_ip curl --socks5 localhost:8080 http://www.whatsmyip.net/ |grep "Address is" curl --proxy socks://localhost:8080 http://www.whatsmyip.net/ |grep "Address is" 结果如下:
<h1 class="ip">Your <acronym title="Internet Protocol">IP</acronym> Address is <input type="text" value="my_server_ip" /></h1> <h1 class="ip">Your <acronym title="Internet Protocol">IP</acronym>V6 Address is <input type="text" value="my_server_ip_v6" /></h1>
但是当我在系统级Yosemite上使用"Proxy SOCKS": localhost:8080configuration时,Chrome / Firefox / Safari根本无法使用。
添加-vv以获得更多细节当使用chrome请求时,我会看到下面的堆栈
debug1: Connection to port 8080 forwarding to socks port 0 requested. debug2: fd 22 setting TCP_NODELAY debug1: channel 15: new [dynamic-tcpip] debug2: channel 15: pre_dynamic: have 0 debug2: channel 15: pre_dynamic: have 3 debug2: channel 15: decode socks5 debug2: channel 15: socks5 auth done debug2: channel 15: pre_dynamic: need more debug2: channel 15: pre_dynamic: have 0 debug2: channel 15: pre_dynamic: have 20 debug2: channel 15: decode socks5 debug2: channel 15: socks5 post auth debug2: channel 15: dynamic request: socks5 host www.google.fr port 443 command 1 debug1: Connection to port 8080 forwarding to socks port 0 requested. debug2: fd 23 setting TCP_NODELAY debug1: channel 16: new [dynamic-tcpip] debug2: channel 16: pre_dynamic: have 0 debug2: channel 16: pre_dynamic: have 3 debug2: channel 16: decode socks5 debug2: channel 16: socks5 auth done debug2: channel 16: pre_dynamic: need more debug2: channel 16: pre_dynamic: have 0 debug2: channel 16: pre_dynamic: have 20 debug2: channel 16: decode socks5 debug2: channel 16: socks5 post auth debug2: channel 16: dynamic request: socks5 host www.google.fr port 443 command 1
一些请求后,控制台被冻结,我看不到任何其他的debugging日志。
任何想法来解决这个问题?