Recently We saw a post by Nate True explaining how to use your 3G iPhone into a Laptop, PC Modem and use the 3G Network to surf the net in your PC.最近,我们看到后真由奈特解释如何使用的3G iPhone成一个笔记本电脑,电脑调制解调器,并使用3G网络来上网的电脑。 We gave it a try and it work flawlessly here is how we did it我们赋予它一种尝试,它完美的工作是如何在这里我们做到了
1. 1 。 Jailbreak your iPhone 3G (or first gen iPhone running the 2.0 software).越狱的iPhone的3G (或第一根iPhone运行2.0软件) 。 Install OpenSSH via Cydia.安装OpenSSH通过苹果蠹。 (OpenSSH gives you command line access to your device; Here’s its full user guide.) ( OpenSSH让您的命令行访问您的设备;这里完全用户指南。 )
2. 2 。 Create an ad-hoc network on your computer.创建一个Ad - hoc网络在计算机上。 On Macs, just click on the Wi-Fi icon in the menubar and select “Create Network.” On Windows, set up internet connection sharing.在Mac上,只要按一下Wi - Fi的图标菜单,并选择“创建网络。 ”在Windows环境下,建立了Internet连接共享。
3. 3 。 Join the iPhone to this network via Wi-Fi as usual. iPhone的加入这个网络通过Wi - Fi一如往常。
4. 4 。 On the iPhone, under Settings->Wi-Fi, select the network you have joined to view connection details.在iPhone上,根据设置, “ Wi - Fi的,选择你的网络已经加入,以查看有关详情。 Write down its IP address.记下其IP地址。
5. 5 。 From the Mac’s Terminal, run the following command:从Mac的终端,运行下面的命令:
ssh -ND 9999 root@IPHONE_IPADDR的SSH ,北达科他9999根@ IPHONE_IPADDR
but replace IPHONE_IPADDR with the IP you wrote down in step 4.但取代IPHONE_IPADDR的IP写下你在第4步。 Login.注册。 The default root password is alpine; you should really login normally over SSH and change this.默认root密码是高山,你确实应该超过正常登录SSH和改变这一点。
Windows users: the free SSH client Putty will allow you to accomplish this same step. Windows用户:免费的SSH客户端腻子将允许您做到这一点相同的一步。 Don’t install Cygwin OpenSSH as some suggest, that’s massive overkill.不要安装Cygwin OpenSSH的一些建议,这是大规模的原因。
6. 6 。 Configure your browser to use a SOCKS5 proxy server at localhost:9999.配置您的浏览器使用SOCKS5代理服务器在本地: 9999 。 Here’s more on setting up a SOCKS proxy in Firefox; Adam did it on his Mac in Safari.以下是更多的建立一个SOCKS代理在Firefox ;亚当没有他苹果的Safari 。
7. 7 。 Surf.冲浪。 I’ve successfully done web browsing and IRC, anything that supports SOCKS4/5 should work.我已经成功地进行网页浏览和IRC ,任何支持SOCKS4 / 5应工作。 Haven’t yet had success with my Citrix client尚未有成功与我的Citrix客户端 
For the curious: The iPhone is joining your Wi-Fi network, but with no internet access on this network it falls back to using 3G for outgoing packets.对于好奇: iPhone是加入您的Wi - Fi网络,但由于没有互联网接入服务,这个网络就后退到使用3G的即将离任的包。 ssh -ND creates a local proxy server that relays packets from the loopback address on your pc to the iPhone, which dutifully proxies them out the cellular connection.的SSH ,北达科他创建了一个本地代理服务器继电器封包从环回地址在您的PC到iPhone ,它忠实地代理他们的蜂窝连接。
Browsing is surprisingly fast, 3G really shows its potential here.浏览是令人惊讶的快, 3G的真正体现出它的潜力在这里。 It’s zippier than doing it directly on the iphone, which I put down to rendering delay.这是zippier这样做比直接在iPhone上,我放下来渲染拖延。
A more ideal solution of course would be to get the iPhone showing up as a regular access point.更理想的解决办法当然是将获得iPhone的出现作为一个经常性的接入点。 I see no reason why this wouldn’t be possible, and will be doing some research myself, mostly observing what Unix processes handle this on desktop OS X, and see if they can be compiled from source for the iPhone.我实在看不出为何这将是不可能的,并会尽自己的一些研究,主要是观察什么的Unix程序处理这个桌面OS X的,再看看他们是否可以从源代码编译为iPhone 。 In the meantime, the steps to accomplish this are not bad and will definitely serve in a pinch.与此同时,步骤,做到这一点并不坏,一定会服务于一小撮。