Questions tagged «socks»

1
为什么浏览器会忽略SOCKS代理后面的/ etc / hosts?
我办公室里的MacBook没有上网功能。所以我通过SSH建立了一个即时的SOCKS代理来上网。 但是,当我尝试添加条目时/etc/hosts,浏览器不会转到我期望的网站... 我的MacBook的WIFI已关闭并连接到公司LAN: IP address: 192.168.8.250 Subnet mask: 255.255.255.0 Router: 192.168.8.1 DNS server: 8.8.8.8 默认情况下,没有互联网访问权限。 有一个Linux开发盒(192.168.12.128)可以访问互联网,所以我设置了一个即时的SOCKS代理来获取我的MacBook的互联网访问: ssh -fND localhost:30000 ohho@192.168.12.128 然后在我的MacBook的系统偏好设置>网络>代理中 (Enable) SOCKS Proxy SOCKS Proxy sever: 127.0.0.1:30000 Bypass proxy settings for these Hosts & Domains: *.local, 169.254/16, 127.0.0.1 现在我可以上网了,到目前为止一切都很好。 为了开发,我/etc/hosts为虚拟主机设置了一些条目: 127.0.0.1 air.company.com 在bash: $ ping air.company.com PING air.ohho.es (127.0.0.1): …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.