码迷,mamicode.com
首页 > 系统相关 > 详细

iphone使用mac上的SOCKS代理

时间:2015-05-19 18:16:14      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:

Step 1. Make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it.

ssh -N -g -D 1080 user@domain.com

Step 2. Create a text file and insert the following code:

function FindProxyForURL(url, host)
{ 
     return "SOCKS 192.168.xx.xx:yyyy";
}

Replace the x‘s with your IP and the y‘s with the port you used after the -D in your SSH command

Step 3. Save the text file as a Proxy Auto-Config (PAC) file to a web accessible place with a .pac extension.

If you‘re reading this chances are you know how to serve a file over HTTP on your work LAN, so I won‘t delve into that.

Step 4. Finally, on your iPhone/iPod Touch, go to Settings>Wifi and click the blue arrow to the right of your work network. Scroll to the bottom, click Auto and type in the address to your PAC file (e.g. http://192.168.xx.xx/mysupersecretproxy.pac).

iphone使用mac上的SOCKS代理

标签:

原文地址:http://www.cnblogs.com/bandy/p/4514798.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!